@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PolicyItem extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about a policy.
This data type is used as a response parameter for the ListPolicies operation.
Constructor and Description |
---|
PolicyItem() |
Modifier and Type | Method and Description |
---|---|
PolicyItem |
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 created.
|
PolicyDefinitionItem |
getDefinition()
The policy definition of an item in the list of policies returned.
|
String |
getEffect()
The effect of the decision that a policy returns to an authorization request.
|
Date |
getLastUpdatedDate()
The date and time the policy was most recently updated.
|
String |
getPolicyId()
The identifier of the policy you want information about.
|
String |
getPolicyStoreId()
The identifier of the PolicyStore where the policy you want information about is stored.
|
String |
getPolicyType()
The type of the policy.
|
EntityIdentifier |
getPrincipal()
The principal associated with the policy.
|
EntityIdentifier |
getResource()
The resource associated with the policy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setActions(Collection<ActionIdentifier> actions)
The action that a policy permits or forbids.
|
void |
setCreatedDate(Date createdDate)
The date and time the policy was created.
|
void |
setDefinition(PolicyDefinitionItem definition)
The policy definition of an item in the list of policies returned.
|
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 most recently updated.
|
void |
setPolicyId(String policyId)
The identifier of the policy you want information about.
|
void |
setPolicyStoreId(String policyStoreId)
The identifier of the PolicyStore where the policy you want information about is stored.
|
void |
setPolicyType(String policyType)
The type of the policy.
|
void |
setPrincipal(EntityIdentifier principal)
The principal associated with the policy.
|
void |
setResource(EntityIdentifier resource)
The resource associated with the policy.
|
String |
toString()
Returns a string representation of this object.
|
PolicyItem |
withActions(ActionIdentifier... actions)
The action that a policy permits or forbids.
|
PolicyItem |
withActions(Collection<ActionIdentifier> actions)
The action that a policy permits or forbids.
|
PolicyItem |
withCreatedDate(Date createdDate)
The date and time the policy was created.
|
PolicyItem |
withDefinition(PolicyDefinitionItem definition)
The policy definition of an item in the list of policies returned.
|
PolicyItem |
withEffect(PolicyEffect effect)
The effect of the decision that a policy returns to an authorization request.
|
PolicyItem |
withEffect(String effect)
The effect of the decision that a policy returns to an authorization request.
|
PolicyItem |
withLastUpdatedDate(Date lastUpdatedDate)
The date and time the policy was most recently updated.
|
PolicyItem |
withPolicyId(String policyId)
The identifier of the policy you want information about.
|
PolicyItem |
withPolicyStoreId(String policyStoreId)
The identifier of the PolicyStore where the policy you want information about is stored.
|
PolicyItem |
withPolicyType(PolicyType policyType)
The type of the policy.
|
PolicyItem |
withPolicyType(String policyType)
The type of the policy.
|
PolicyItem |
withPrincipal(EntityIdentifier principal)
The principal associated with the policy.
|
PolicyItem |
withResource(EntityIdentifier resource)
The resource associated with the policy.
|
public void setPolicyStoreId(String policyStoreId)
The identifier of the PolicyStore where the policy you want information about is stored.
policyStoreId
- The identifier of the PolicyStore where the policy you want information about is stored.public String getPolicyStoreId()
The identifier of the PolicyStore where the policy you want information about is stored.
public PolicyItem withPolicyStoreId(String policyStoreId)
The identifier of the PolicyStore where the policy you want information about is stored.
policyStoreId
- The identifier of the PolicyStore where the policy you want information about is stored.public void setPolicyId(String policyId)
The identifier of the policy you want information about.
policyId
- The identifier of the policy you want information about.public String getPolicyId()
The identifier of the policy you want information about.
public PolicyItem withPolicyId(String policyId)
The identifier of the policy you want information about.
policyId
- The identifier of the policy you want information about.public void setPolicyType(String policyType)
The type of the policy. This is one of the following values:
static
templateLinked
policyType
- The type of the policy. This is one of the following values:
static
templateLinked
PolicyType
public String getPolicyType()
The type of the policy. This is one of the following values:
static
templateLinked
static
templateLinked
PolicyType
public PolicyItem withPolicyType(String policyType)
The type of the policy. This is one of the following values:
static
templateLinked
policyType
- The type of the policy. This is one of the following values:
static
templateLinked
PolicyType
public PolicyItem withPolicyType(PolicyType policyType)
The type of the policy. This is one of the following values:
static
templateLinked
policyType
- The type of the policy. This is one of the following values:
static
templateLinked
PolicyType
public void setPrincipal(EntityIdentifier principal)
The principal associated with the policy.
principal
- The principal associated with the policy.public EntityIdentifier getPrincipal()
The principal associated with the policy.
public PolicyItem withPrincipal(EntityIdentifier principal)
The principal associated with the policy.
principal
- The principal associated with the policy.public void setResource(EntityIdentifier resource)
The resource associated with the policy.
resource
- The resource associated with the policy.public EntityIdentifier getResource()
The resource associated with the policy.
public PolicyItem withResource(EntityIdentifier resource)
The resource associated with the policy.
resource
- The resource associated with the policy.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 PolicyItem 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 PolicyItem 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(PolicyDefinitionItem definition)
The policy definition of an item in the list of policies returned.
definition
- The policy definition of an item in the list of policies returned.public PolicyDefinitionItem getDefinition()
The policy definition of an item in the list of policies returned.
public PolicyItem withDefinition(PolicyDefinitionItem definition)
The policy definition of an item in the list of policies returned.
definition
- The policy definition of an item in the list of policies returned.public void setCreatedDate(Date createdDate)
The date and time the policy was created.
createdDate
- The date and time the policy was created.public Date getCreatedDate()
The date and time the policy was created.
public PolicyItem withCreatedDate(Date createdDate)
The date and time the policy was created.
createdDate
- The date and time the policy was created.public void setLastUpdatedDate(Date lastUpdatedDate)
The date and time the policy was most recently updated.
lastUpdatedDate
- The date and time the policy was most recently updated.public Date getLastUpdatedDate()
The date and time the policy was most recently updated.
public PolicyItem withLastUpdatedDate(Date lastUpdatedDate)
The date and time the policy was most recently updated.
lastUpdatedDate
- The date and time 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 PolicyItem 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 PolicyItem 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 PolicyItem clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.