@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PolicyDefinition extends Object implements Serializable, Cloneable, StructuredPojo
A structure that contains the details for a Cedar policy definition. It includes the policy type, a description, and a policy body. This is a top level data type used to create a policy.
This data type is used as a request parameter for the CreatePolicy
operation. This structure must always have either an static
or a templateLinked
element.
Constructor and Description |
---|
PolicyDefinition() |
Modifier and Type | Method and Description |
---|---|
PolicyDefinition |
clone() |
boolean |
equals(Object obj) |
StaticPolicyDefinition |
getStatic()
A structure that describes a static policy.
|
TemplateLinkedPolicyDefinition |
getTemplateLinked()
A structure that describes a policy that was instantiated from a template.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setStatic(StaticPolicyDefinition staticValue)
A structure that describes a static policy.
|
void |
setTemplateLinked(TemplateLinkedPolicyDefinition templateLinked)
A structure that describes a policy that was instantiated from a template.
|
String |
toString()
Returns a string representation of this object.
|
PolicyDefinition |
withStatic(StaticPolicyDefinition staticValue)
A structure that describes a static policy.
|
PolicyDefinition |
withTemplateLinked(TemplateLinkedPolicyDefinition templateLinked)
A structure that describes a policy that was instantiated from a template.
|
public void setStatic(StaticPolicyDefinition staticValue)
A structure that describes a static policy. An static policy doesn't use a template or allow placeholders for entities.
staticValue
- A structure that describes a static policy. An static policy doesn't use a template or allow placeholders
for entities.public StaticPolicyDefinition getStatic()
A structure that describes a static policy. An static policy doesn't use a template or allow placeholders for entities.
public PolicyDefinition withStatic(StaticPolicyDefinition staticValue)
A structure that describes a static policy. An static policy doesn't use a template or allow placeholders for entities.
staticValue
- A structure that describes a static policy. An static policy doesn't use a template or allow placeholders
for entities.public void setTemplateLinked(TemplateLinkedPolicyDefinition templateLinked)
A structure that describes a policy that was instantiated from a template. The template can specify placeholders
for principal
and resource
. When you use CreatePolicy
to create a policy from a template, you specify the exact principal and resource to use for the instantiated
policy.
templateLinked
- A structure that describes a policy that was instantiated from a template. The template can specify
placeholders for principal
and resource
. When you use CreatePolicy to create a policy from a template, you specify the exact principal and resource to use
for the instantiated policy.public TemplateLinkedPolicyDefinition getTemplateLinked()
A structure that describes a policy that was instantiated from a template. The template can specify placeholders
for principal
and resource
. When you use CreatePolicy
to create a policy from a template, you specify the exact principal and resource to use for the instantiated
policy.
principal
and resource
. When you use CreatePolicy to create a policy from a template, you specify the exact principal and resource to use
for the instantiated policy.public PolicyDefinition withTemplateLinked(TemplateLinkedPolicyDefinition templateLinked)
A structure that describes a policy that was instantiated from a template. The template can specify placeholders
for principal
and resource
. When you use CreatePolicy
to create a policy from a template, you specify the exact principal and resource to use for the instantiated
policy.
templateLinked
- A structure that describes a policy that was instantiated from a template. The template can specify
placeholders for principal
and resource
. When you use CreatePolicy to create a policy from a template, you specify the exact principal and resource to use
for the instantiated policy.public String toString()
toString
in class Object
Object.toString()
public PolicyDefinition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.