@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdatePolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
UpdatePolicyResult() |
Modifier and Type | Method and Description |
---|---|
UpdatePolicyResult |
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.
|
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 most recently updated.
|
String |
getPolicyId()
The ID of the policy that was updated.
|
String |
getPolicyStoreId()
The ID of the policy store that contains the policy that was updated.
|
String |
getPolicyType()
The type of the policy that was updated.
|
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 |
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 most recently updated.
|
void |
setPolicyId(String policyId)
The ID of the policy that was updated.
|
void |
setPolicyStoreId(String policyStoreId)
The ID of the policy store that contains the policy that was updated.
|
void |
setPolicyType(String policyType)
The type of the policy that was updated.
|
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.
|
UpdatePolicyResult |
withActions(ActionIdentifier... actions)
The action that a policy permits or forbids.
|
UpdatePolicyResult |
withActions(Collection<ActionIdentifier> actions)
The action that a policy permits or forbids.
|
UpdatePolicyResult |
withCreatedDate(Date createdDate)
The date and time that the policy was originally created.
|
UpdatePolicyResult |
withEffect(PolicyEffect effect)
The effect of the decision that a policy returns to an authorization request.
|
UpdatePolicyResult |
withEffect(String effect)
The effect of the decision that a policy returns to an authorization request.
|
UpdatePolicyResult |
withLastUpdatedDate(Date lastUpdatedDate)
The date and time that the policy was most recently updated.
|
UpdatePolicyResult |
withPolicyId(String policyId)
The ID of the policy that was updated.
|
UpdatePolicyResult |
withPolicyStoreId(String policyStoreId)
The ID of the policy store that contains the policy that was updated.
|
UpdatePolicyResult |
withPolicyType(PolicyType policyType)
The type of the policy that was updated.
|
UpdatePolicyResult |
withPolicyType(String policyType)
The type of the policy that was updated.
|
UpdatePolicyResult |
withPrincipal(EntityIdentifier principal)
The principal specified in the policy's scope.
|
UpdatePolicyResult |
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 was updated.
policyStoreId
- The ID of the policy store that contains the policy that was updated.public String getPolicyStoreId()
The ID of the policy store that contains the policy that was updated.
public UpdatePolicyResult withPolicyStoreId(String policyStoreId)
The ID of the policy store that contains the policy that was updated.
policyStoreId
- The ID of the policy store that contains the policy that was updated.public void setPolicyId(String policyId)
The ID of the policy that was updated.
policyId
- The ID of the policy that was updated.public String getPolicyId()
The ID of the policy that was updated.
public UpdatePolicyResult withPolicyId(String policyId)
The ID of the policy that was updated.
policyId
- The ID of the policy that was updated.public void setPolicyType(String policyType)
The type of the policy that was updated.
policyType
- The type of the policy that was updated.PolicyType
public String getPolicyType()
The type of the policy that was updated.
PolicyType
public UpdatePolicyResult withPolicyType(String policyType)
The type of the policy that was updated.
policyType
- The type of the policy that was updated.PolicyType
public UpdatePolicyResult withPolicyType(PolicyType policyType)
The type of the policy that was updated.
policyType
- The type of the policy that was updated.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 UpdatePolicyResult 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 UpdatePolicyResult 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 UpdatePolicyResult 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 UpdatePolicyResult 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 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 UpdatePolicyResult 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 most recently updated.
lastUpdatedDate
- The date and time that the policy was most recently updated.public Date getLastUpdatedDate()
The date and time that the policy was most recently updated.
public UpdatePolicyResult withLastUpdatedDate(Date lastUpdatedDate)
The date and time that the policy was most recently updated.
lastUpdatedDate
- The date and time that the policy was most recently 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 UpdatePolicyResult 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 UpdatePolicyResult 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 UpdatePolicyResult clone()