@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EffectivePolicy extends Object implements Serializable, Cloneable, StructuredPojo
Contains rules to be applied to the affected accounts. The effective policy is the aggregation of any policies the account inherits, plus any policy directly attached to the account.
| Constructor and Description |
|---|
EffectivePolicy() |
| Modifier and Type | Method and Description |
|---|---|
EffectivePolicy |
clone() |
boolean |
equals(Object obj) |
Date |
getLastUpdatedTimestamp()
The time of the last update to this policy.
|
String |
getPolicyContent()
The text content of the policy.
|
String |
getPolicyType()
The policy type.
|
String |
getTargetId()
The account ID of the policy target.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The time of the last update to this policy.
|
void |
setPolicyContent(String policyContent)
The text content of the policy.
|
void |
setPolicyType(String policyType)
The policy type.
|
void |
setTargetId(String targetId)
The account ID of the policy target.
|
String |
toString()
Returns a string representation of this object.
|
EffectivePolicy |
withLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The time of the last update to this policy.
|
EffectivePolicy |
withPolicyContent(String policyContent)
The text content of the policy.
|
EffectivePolicy |
withPolicyType(EffectivePolicyType policyType)
The policy type.
|
EffectivePolicy |
withPolicyType(String policyType)
The policy type.
|
EffectivePolicy |
withTargetId(String targetId)
The account ID of the policy target.
|
public void setPolicyContent(String policyContent)
The text content of the policy.
policyContent - The text content of the policy.public String getPolicyContent()
The text content of the policy.
public EffectivePolicy withPolicyContent(String policyContent)
The text content of the policy.
policyContent - The text content of the policy.public void setLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The time of the last update to this policy.
lastUpdatedTimestamp - The time of the last update to this policy.public Date getLastUpdatedTimestamp()
The time of the last update to this policy.
public EffectivePolicy withLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The time of the last update to this policy.
lastUpdatedTimestamp - The time of the last update to this policy.public void setTargetId(String targetId)
The account ID of the policy target.
targetId - The account ID of the policy target.public String getTargetId()
The account ID of the policy target.
public EffectivePolicy withTargetId(String targetId)
The account ID of the policy target.
targetId - The account ID of the policy target.public void setPolicyType(String policyType)
The policy type.
policyType - The policy type.EffectivePolicyTypepublic String getPolicyType()
The policy type.
EffectivePolicyTypepublic EffectivePolicy withPolicyType(String policyType)
The policy type.
policyType - The policy type.EffectivePolicyTypepublic EffectivePolicy withPolicyType(EffectivePolicyType policyType)
The policy type.
policyType - The policy type.EffectivePolicyTypepublic String toString()
toString in class ObjectObject.toString()public EffectivePolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.