@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GeneratedPolicy extends Object implements Serializable, Cloneable, StructuredPojo
Contains the text for the generated policy.
Constructor and Description |
---|
GeneratedPolicy() |
Modifier and Type | Method and Description |
---|---|
GeneratedPolicy |
clone() |
boolean |
equals(Object obj) |
String |
getPolicy()
The text to use as the content for the new policy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPolicy(String policy)
The text to use as the content for the new policy.
|
String |
toString()
Returns a string representation of this object.
|
GeneratedPolicy |
withPolicy(String policy)
The text to use as the content for the new policy.
|
public void setPolicy(String policy)
The text to use as the content for the new policy. The policy is created using the CreatePolicy action.
policy
- The text to use as the content for the new policy. The policy is created using the CreatePolicy action.public String getPolicy()
The text to use as the content for the new policy. The policy is created using the CreatePolicy action.
public GeneratedPolicy withPolicy(String policy)
The text to use as the content for the new policy. The policy is created using the CreatePolicy action.
policy
- The text to use as the content for the new policy. The policy is created using the CreatePolicy action.public String toString()
toString
in class Object
Object.toString()
public GeneratedPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.