@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateStaticPolicyDefinition extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about an update to a static policy.
Constructor and Description |
---|
UpdateStaticPolicyDefinition() |
Modifier and Type | Method and Description |
---|---|
UpdateStaticPolicyDefinition |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
Specifies the description to be added to or replaced on the static policy.
|
String |
getStatement()
Specifies the Cedar policy language text to be added to or replaced on the static policy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDescription(String description)
Specifies the description to be added to or replaced on the static policy.
|
void |
setStatement(String statement)
Specifies the Cedar policy language text to be added to or replaced on the static policy.
|
String |
toString()
Returns a string representation of this object.
|
UpdateStaticPolicyDefinition |
withDescription(String description)
Specifies the description to be added to or replaced on the static policy.
|
UpdateStaticPolicyDefinition |
withStatement(String statement)
Specifies the Cedar policy language text to be added to or replaced on the static policy.
|
public void setDescription(String description)
Specifies the description to be added to or replaced on the static policy.
description
- Specifies the description to be added to or replaced on the static policy.public String getDescription()
Specifies the description to be added to or replaced on the static policy.
public UpdateStaticPolicyDefinition withDescription(String description)
Specifies the description to be added to or replaced on the static policy.
description
- Specifies the description to be added to or replaced on the static policy.public void setStatement(String statement)
Specifies the Cedar policy language text to be added to or replaced on the static policy.
You can change only the following elements from the original content:
The action
referenced by the policy.
Any conditional clauses, such as when
or unless
clauses.
You can't change the following elements:
Changing from StaticPolicy
to TemplateLinkedPolicy
.
The effect (permit
or forbid
) of the policy.
The principal
referenced by the policy.
The resource
referenced by the policy.
statement
- Specifies the Cedar policy language text to be added to or replaced on the static policy. You can change only the following elements from the original content:
The action
referenced by the policy.
Any conditional clauses, such as when
or unless
clauses.
You can't change the following elements:
Changing from StaticPolicy
to TemplateLinkedPolicy
.
The effect (permit
or forbid
) of the policy.
The principal
referenced by the policy.
The resource
referenced by the policy.
public String getStatement()
Specifies the Cedar policy language text to be added to or replaced on the static policy.
You can change only the following elements from the original content:
The action
referenced by the policy.
Any conditional clauses, such as when
or unless
clauses.
You can't change the following elements:
Changing from StaticPolicy
to TemplateLinkedPolicy
.
The effect (permit
or forbid
) of the policy.
The principal
referenced by the policy.
The resource
referenced by the policy.
You can change only the following elements from the original content:
The action
referenced by the policy.
Any conditional clauses, such as when
or unless
clauses.
You can't change the following elements:
Changing from StaticPolicy
to TemplateLinkedPolicy
.
The effect (permit
or forbid
) of the policy.
The principal
referenced by the policy.
The resource
referenced by the policy.
public UpdateStaticPolicyDefinition withStatement(String statement)
Specifies the Cedar policy language text to be added to or replaced on the static policy.
You can change only the following elements from the original content:
The action
referenced by the policy.
Any conditional clauses, such as when
or unless
clauses.
You can't change the following elements:
Changing from StaticPolicy
to TemplateLinkedPolicy
.
The effect (permit
or forbid
) of the policy.
The principal
referenced by the policy.
The resource
referenced by the policy.
statement
- Specifies the Cedar policy language text to be added to or replaced on the static policy. You can change only the following elements from the original content:
The action
referenced by the policy.
Any conditional clauses, such as when
or unless
clauses.
You can't change the following elements:
Changing from StaticPolicy
to TemplateLinkedPolicy
.
The effect (permit
or forbid
) of the policy.
The principal
referenced by the policy.
The resource
referenced by the policy.
public String toString()
toString
in class Object
Object.toString()
public UpdateStaticPolicyDefinition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.