@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StaticPolicyDefinition extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about a static policy.
This data type is used as a field that is part of the PolicyDefinitionDetail type.
| Constructor and Description |
|---|
StaticPolicyDefinition() |
| Modifier and Type | Method and Description |
|---|---|
StaticPolicyDefinition |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
The description of the static policy.
|
String |
getStatement()
The policy content of the static policy, written in the Cedar policy language.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setDescription(String description)
The description of the static policy.
|
void |
setStatement(String statement)
The policy content of the static policy, written in the Cedar policy language.
|
String |
toString()
Returns a string representation of this object.
|
StaticPolicyDefinition |
withDescription(String description)
The description of the static policy.
|
StaticPolicyDefinition |
withStatement(String statement)
The policy content of the static policy, written in the Cedar policy language.
|
public void setDescription(String description)
The description of the static policy.
description - The description of the static policy.public String getDescription()
The description of the static policy.
public StaticPolicyDefinition withDescription(String description)
The description of the static policy.
description - The description of the static policy.public void setStatement(String statement)
The policy content of the static policy, written in the Cedar policy language.
statement - The policy content of the static policy, written in the Cedar policy language.public String getStatement()
The policy content of the static policy, written in the Cedar policy language.
public StaticPolicyDefinition withStatement(String statement)
The policy content of the static policy, written in the Cedar policy language.
statement - The policy content of the static policy, written in the Cedar policy language.public String toString()
toString in class ObjectObject.toString()public StaticPolicyDefinition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.