@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetPolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetPolicyResult() |
Modifier and Type | Method and Description |
---|---|
GetPolicyResult |
clone() |
boolean |
equals(Object obj) |
List<ActionIdentifier> |
getActions()
The action that a policy permits or forbids.
|
Date |
getCreatedDate()
The date and time that the policy was originally created.
|
PolicyDefinitionDetail |
getDefinition()
The definition of the requested policy.
|
String |
getEffect()
The effect of the decision that a policy returns to an authorization request.
|
Date |
getLastUpdatedDate()
The date and time that the policy was last updated.
|
String |
getPolicyId()
The unique ID of the policy that you want information about.
|
String |
getPolicyStoreId()
The ID of the policy store that contains the policy that you want information about.
|
String |
getPolicyType()
The type of the policy.
|
EntityIdentifier |
getPrincipal()
The principal specified in the policy's scope.
|
EntityIdentifier |
getResource()
The resource specified in the policy's scope.
|
int |
hashCode() |
void |
setActions(Collection<ActionIdentifier> actions)
The action that a policy permits or forbids.
|
void |
setCreatedDate(Date createdDate)
The date and time that the policy was originally created.
|
void |
setDefinition(PolicyDefinitionDetail definition)
The definition of the requested policy.
|
void |
setEffect(String effect)
The effect of the decision that a policy returns to an authorization request.
|
void |
setLastUpdatedDate(Date lastUpdatedDate)
The date and time that the policy was last updated.
|
void |
setPolicyId(String policyId)
The unique ID of the policy that you want information about.
|
void |
setPolicyStoreId(String policyStoreId)
The ID of the policy store that contains the policy that you want information about.
|
void |
setPolicyType(String policyType)
The type of the policy.
|
void |
setPrincipal(EntityIdentifier principal)
The principal specified in the policy's scope.
|
void |
setResource(EntityIdentifier resource)
The resource specified in the policy's scope.
|
String |
toString()
Returns a string representation of this object.
|
GetPolicyResult |
withActions(ActionIdentifier... actions)
The action that a policy permits or forbids.
|
GetPolicyResult |
withActions(Collection<ActionIdentifier> actions)
The action that a policy permits or forbids.
|
GetPolicyResult |
withCreatedDate(Date createdDate)
The date and time that the policy was originally created.
|
GetPolicyResult |
withDefinition(PolicyDefinitionDetail definition)
The definition of the requested policy.
|
GetPolicyResult |
withEffect(PolicyEffect effect)
The effect of the decision that a policy returns to an authorization request.
|
GetPolicyResult |
withEffect(String effect)
The effect of the decision that a policy returns to an authorization request.
|
GetPolicyResult |
withLastUpdatedDate(Date lastUpdatedDate)
The date and time that the policy was last updated.
|
GetPolicyResult |
withPolicyId(String policyId)
The unique ID of the policy that you want information about.
|
GetPolicyResult |
withPolicyStoreId(String policyStoreId)
The ID of the policy store that contains the policy that you want information about.
|
GetPolicyResult |
withPolicyType(PolicyType policyType)
The type of the policy.
|
GetPolicyResult |
withPolicyType(String policyType)
The type of the policy.
|
GetPolicyResult |
withPrincipal(EntityIdentifier principal)
The principal specified in the policy's scope.
|
GetPolicyResult |
withResource(EntityIdentifier resource)
The resource specified in the policy's scope.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setPolicyStoreId(String policyStoreId)
The ID of the policy store that contains the policy that you want information about.
policyStoreId
- The ID of the policy store that contains the policy that you want information about.public String getPolicyStoreId()
The ID of the policy store that contains the policy that you want information about.
public GetPolicyResult withPolicyStoreId(String policyStoreId)
The ID of the policy store that contains the policy that you want information about.
policyStoreId
- The ID of the policy store that contains the policy that you want information about.public void setPolicyId(String policyId)
The unique ID of the policy that you want information about.
policyId
- The unique ID of the policy that you want information about.public String getPolicyId()
The unique ID of the policy that you want information about.
public GetPolicyResult withPolicyId(String policyId)
The unique ID of the policy that you want information about.
policyId
- The unique ID of the policy that you want information about.public void setPolicyType(String policyType)
The type of the policy.
policyType
- The type of the policy.PolicyType
public String getPolicyType()
The type of the policy.
PolicyType
public GetPolicyResult withPolicyType(String policyType)
The type of the policy.
policyType
- The type of the policy.PolicyType
public GetPolicyResult withPolicyType(PolicyType policyType)
The type of the policy.
policyType
- The type of the policy.PolicyType
public void setPrincipal(EntityIdentifier principal)
The principal specified in the policy's scope. This element isn't included in the response when
Principal
isn't present in the policy content.
principal
- The principal specified in the policy's scope. This element isn't included in the response when
Principal
isn't present in the policy content.public EntityIdentifier getPrincipal()
The principal specified in the policy's scope. This element isn't included in the response when
Principal
isn't present in the policy content.
Principal
isn't present in the policy content.public GetPolicyResult withPrincipal(EntityIdentifier principal)
The principal specified in the policy's scope. This element isn't included in the response when
Principal
isn't present in the policy content.
principal
- The principal specified in the policy's scope. This element isn't included in the response when
Principal
isn't present in the policy content.public void setResource(EntityIdentifier resource)
The resource specified in the policy's scope. This element isn't included in the response when
Resource
isn't present in the policy content.
resource
- The resource specified in the policy's scope. This element isn't included in the response when
Resource
isn't present in the policy content.public EntityIdentifier getResource()
The resource specified in the policy's scope. This element isn't included in the response when
Resource
isn't present in the policy content.
Resource
isn't present in the policy content.public GetPolicyResult withResource(EntityIdentifier resource)
The resource specified in the policy's scope. This element isn't included in the response when
Resource
isn't present in the policy content.
resource
- The resource specified in the policy's scope. This element isn't included in the response when
Resource
isn't present in the policy content.public List<ActionIdentifier> getActions()
The action that a policy permits or forbids. For example,
{"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]}
.
{"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]}
.public void setActions(Collection<ActionIdentifier> actions)
The action that a policy permits or forbids. For example,
{"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]}
.
actions
- The action that a policy permits or forbids. For example,
{"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]}
.public GetPolicyResult withActions(ActionIdentifier... actions)
The action that a policy permits or forbids. For example,
{"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]}
.
NOTE: This method appends the values to the existing list (if any). Use
setActions(java.util.Collection)
or withActions(java.util.Collection)
if you want to override
the existing values.
actions
- The action that a policy permits or forbids. For example,
{"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]}
.public GetPolicyResult withActions(Collection<ActionIdentifier> actions)
The action that a policy permits or forbids. For example,
{"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]}
.
actions
- The action that a policy permits or forbids. For example,
{"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]}
.public void setDefinition(PolicyDefinitionDetail definition)
The definition of the requested policy.
definition
- The definition of the requested policy.public PolicyDefinitionDetail getDefinition()
The definition of the requested policy.
public GetPolicyResult withDefinition(PolicyDefinitionDetail definition)
The definition of the requested policy.
definition
- The definition of the requested policy.public void setCreatedDate(Date createdDate)
The date and time that the policy was originally created.
createdDate
- The date and time that the policy was originally created.public Date getCreatedDate()
The date and time that the policy was originally created.
public GetPolicyResult withCreatedDate(Date createdDate)
The date and time that the policy was originally created.
createdDate
- The date and time that the policy was originally created.public void setLastUpdatedDate(Date lastUpdatedDate)
The date and time that the policy was last updated.
lastUpdatedDate
- The date and time that the policy was last updated.public Date getLastUpdatedDate()
The date and time that the policy was last updated.
public GetPolicyResult withLastUpdatedDate(Date lastUpdatedDate)
The date and time that the policy was last updated.
lastUpdatedDate
- The date and time that the policy was last updated.public void setEffect(String effect)
The effect of the decision that a policy returns to an authorization request. For example,
"effect": "Permit"
.
effect
- The effect of the decision that a policy returns to an authorization request. For example,
"effect": "Permit"
.PolicyEffect
public String getEffect()
The effect of the decision that a policy returns to an authorization request. For example,
"effect": "Permit"
.
"effect": "Permit"
.PolicyEffect
public GetPolicyResult withEffect(String effect)
The effect of the decision that a policy returns to an authorization request. For example,
"effect": "Permit"
.
effect
- The effect of the decision that a policy returns to an authorization request. For example,
"effect": "Permit"
.PolicyEffect
public GetPolicyResult withEffect(PolicyEffect effect)
The effect of the decision that a policy returns to an authorization request. For example,
"effect": "Permit"
.
effect
- The effect of the decision that a policy returns to an authorization request. For example,
"effect": "Permit"
.PolicyEffect
public String toString()
toString
in class Object
Object.toString()
public GetPolicyResult clone()