@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StaticPolicyDefinitionItem extends Object implements Serializable, Cloneable, StructuredPojo
A structure that contains details about a static policy. It includes the description and policy statement.
This data type is used within a PolicyDefinition structure as part of a request parameter for the CreatePolicy operation.
Constructor and Description |
---|
StaticPolicyDefinitionItem() |
Modifier and Type | Method and Description |
---|---|
StaticPolicyDefinitionItem |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
A description of the static policy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDescription(String description)
A description of the static policy.
|
String |
toString()
Returns a string representation of this object.
|
StaticPolicyDefinitionItem |
withDescription(String description)
A description of the static policy.
|
public void setDescription(String description)
A description of the static policy.
description
- A description of the static policy.public String getDescription()
A description of the static policy.
public StaticPolicyDefinitionItem withDescription(String description)
A description of the static policy.
description
- A description of the static policy.public String toString()
toString
in class Object
Object.toString()
public StaticPolicyDefinitionItem clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.