@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Policy extends Object implements Serializable, Cloneable, StructuredPojo
Contains rules to be applied to the affected accounts. Policies can be attached directly to accounts, or to roots and OUs to affect all accounts in those hierarchies.
Constructor and Description |
---|
Policy() |
Modifier and Type | Method and Description |
---|---|
Policy |
clone() |
boolean |
equals(Object obj) |
String |
getContent()
The text content of the policy.
|
PolicySummary |
getPolicySummary()
A structure that contains additional details about the policy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContent(String content)
The text content of the policy.
|
void |
setPolicySummary(PolicySummary policySummary)
A structure that contains additional details about the policy.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Policy |
withContent(String content)
The text content of the policy.
|
Policy |
withPolicySummary(PolicySummary policySummary)
A structure that contains additional details about the policy.
|
public void setPolicySummary(PolicySummary policySummary)
A structure that contains additional details about the policy.
policySummary
- A structure that contains additional details about the policy.public PolicySummary getPolicySummary()
A structure that contains additional details about the policy.
public Policy withPolicySummary(PolicySummary policySummary)
A structure that contains additional details about the policy.
policySummary
- A structure that contains additional details about the policy.public void setContent(String content)
The text content of the policy.
content
- The text content of the policy.public String getContent()
The text content of the policy.
public Policy withContent(String content)
The text content of the policy.
content
- The text content of the policy.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.