@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.EffectivePolicyType
public String getPolicyType()
The policy type.
EffectivePolicyType
public EffectivePolicy withPolicyType(String policyType)
The policy type.
policyType
- The policy type.EffectivePolicyType
public EffectivePolicy withPolicyType(EffectivePolicyType policyType)
The policy type.
policyType
- The policy type.EffectivePolicyType
public String toString()
toString
in class Object
Object.toString()
public EffectivePolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.