@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreatePolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
CreatePolicyResult() |
Modifier and Type | Method and Description |
---|---|
CreatePolicyResult |
clone() |
boolean |
equals(Object obj) |
List<ActionIdentifier> |
getActions()
The action that a policy permits or forbids.
|
Date |
getCreatedDate()
The date and time 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 the policy was last updated.
|
String |
getPolicyId()
The unique ID of the new policy.
|
String |
getPolicyStoreId()
The ID of the policy store that contains the new policy.
|
String |
getPolicyType()
The policy type of the new policy.
|
EntityIdentifier |
getPrincipal()
The principal specified in the new policy's scope.
|
EntityIdentifier |
getResource()
The resource specified in the new 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 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 the policy was last updated.
|
void |
setPolicyId(String policyId)
The unique ID of the new policy.
|
void |
setPolicyStoreId(String policyStoreId)
The ID of the policy store that contains the new policy.
|
void |
setPolicyType(String policyType)
The policy type of the new policy.
|
void |
setPrincipal(EntityIdentifier principal)
The principal specified in the new policy's scope.
|
void |
setResource(EntityIdentifier resource)
The resource specified in the new policy's scope.
|
String |
toString()
Returns a string representation of this object.
|
CreatePolicyResult |
withActions(ActionIdentifier... actions)
The action that a policy permits or forbids.
|
CreatePolicyResult |
withActions(Collection<ActionIdentifier> actions)
The action that a policy permits or forbids.
|
CreatePolicyResult |
withCreatedDate(Date createdDate)
The date and time the policy was originally created.
|
CreatePolicyResult |
withEffect(PolicyEffect effect)
The effect of the decision that a policy returns to an authorization request.
|
CreatePolicyResult |
withEffect(String effect)
The effect of the decision that a policy returns to an authorization request.
|
CreatePolicyResult |
withLastUpdatedDate(Date lastUpdatedDate)
The date and time the policy was last updated.
|
CreatePolicyResult |
withPolicyId(String policyId)
The unique ID of the new policy.
|
CreatePolicyResult |
withPolicyStoreId(String policyStoreId)
The ID of the policy store that contains the new policy.
|
CreatePolicyResult |
withPolicyType(PolicyType policyType)
The policy type of the new policy.
|
CreatePolicyResult |
withPolicyType(String policyType)
The policy type of the new policy.
|
CreatePolicyResult |
withPrincipal(EntityIdentifier principal)
The principal specified in the new policy's scope.
|
CreatePolicyResult |
withResource(EntityIdentifier resource)
The resource specified in the new policy's scope.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setPolicyStoreId(String policyStoreId)
The ID of the policy store that contains the new policy.
policyStoreId
- The ID of the policy store that contains the new policy.public String getPolicyStoreId()
The ID of the policy store that contains the new policy.
public CreatePolicyResult withPolicyStoreId(String policyStoreId)
The ID of the policy store that contains the new policy.
policyStoreId
- The ID of the policy store that contains the new policy.public void setPolicyId(String policyId)
The unique ID of the new policy.
policyId
- The unique ID of the new policy.public String getPolicyId()
The unique ID of the new policy.
public CreatePolicyResult withPolicyId(String policyId)
The unique ID of the new policy.
policyId
- The unique ID of the new policy.public void setPolicyType(String policyType)
The policy type of the new policy.
policyType
- The policy type of the new policy.PolicyType
public String getPolicyType()
The policy type of the new policy.
PolicyType
public CreatePolicyResult withPolicyType(String policyType)
The policy type of the new policy.
policyType
- The policy type of the new policy.PolicyType
public CreatePolicyResult withPolicyType(PolicyType policyType)
The policy type of the new policy.
policyType
- The policy type of the new policy.PolicyType
public void setPrincipal(EntityIdentifier principal)
The principal specified in the new policy's scope. This response element isn't present when
principal
isn't specified in the policy content.
principal
- The principal specified in the new policy's scope. This response element isn't present when
principal
isn't specified in the policy content.public EntityIdentifier getPrincipal()
The principal specified in the new policy's scope. This response element isn't present when
principal
isn't specified in the policy content.
principal
isn't specified in the policy content.public CreatePolicyResult withPrincipal(EntityIdentifier principal)
The principal specified in the new policy's scope. This response element isn't present when
principal
isn't specified in the policy content.
principal
- The principal specified in the new policy's scope. This response element isn't present when
principal
isn't specified in the policy content.public void setResource(EntityIdentifier resource)
The resource specified in the new policy's scope. This response element isn't present when the
resource
isn't specified in the policy content.
resource
- The resource specified in the new policy's scope. This response element isn't present when the
resource
isn't specified in the policy content.public EntityIdentifier getResource()
The resource specified in the new policy's scope. This response element isn't present when the
resource
isn't specified in the policy content.
resource
isn't specified in the policy content.public CreatePolicyResult withResource(EntityIdentifier resource)
The resource specified in the new policy's scope. This response element isn't present when the
resource
isn't specified in the policy content.
resource
- The resource specified in the new policy's scope. This response element isn't present when the
resource
isn't specified 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 CreatePolicyResult 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 CreatePolicyResult 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 the policy was originally created.
createdDate
- The date and time the policy was originally created.public Date getCreatedDate()
The date and time the policy was originally created.
public CreatePolicyResult withCreatedDate(Date createdDate)
The date and time the policy was originally created.
createdDate
- The date and time the policy was originally created.public void setLastUpdatedDate(Date lastUpdatedDate)
The date and time the policy was last updated.
lastUpdatedDate
- The date and time the policy was last updated.public Date getLastUpdatedDate()
The date and time the policy was last updated.
public CreatePolicyResult withLastUpdatedDate(Date lastUpdatedDate)
The date and time the policy was last updated.
lastUpdatedDate
- The date and time 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 CreatePolicyResult 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 CreatePolicyResult 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 CreatePolicyResult clone()