@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StaticPolicyDefinitionDetail extends Object implements Serializable, Cloneable, StructuredPojo
A structure that contains details about a static policy. It includes the description and policy body.
This data type is used within a PolicyDefinition structure as part of a request parameter for the CreatePolicy operation.
Constructor and Description |
---|
StaticPolicyDefinitionDetail() |
Modifier and Type | Method and Description |
---|---|
StaticPolicyDefinitionDetail |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
A description of the static policy.
|
String |
getStatement()
The 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)
A description of the static policy.
|
void |
setStatement(String statement)
The content of the static policy written in the Cedar policy language.
|
String |
toString()
Returns a string representation of this object.
|
StaticPolicyDefinitionDetail |
withDescription(String description)
A description of the static policy.
|
StaticPolicyDefinitionDetail |
withStatement(String statement)
The content of the static policy written in the Cedar policy language.
|
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 StaticPolicyDefinitionDetail withDescription(String description)
A description of the static policy.
description
- A description of the static policy.public void setStatement(String statement)
The content of the static policy written in the Cedar policy language.
statement
- The content of the static policy written in the Cedar policy language.public String getStatement()
The content of the static policy written in the Cedar policy language.
public StaticPolicyDefinitionDetail withStatement(String statement)
The content of the static policy written in the Cedar policy language.
statement
- The content of the static policy written in the Cedar policy language.public String toString()
toString
in class Object
Object.toString()
public StaticPolicyDefinitionDetail clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.