@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PolicyDefinitionItem extends Object implements Serializable, Cloneable, StructuredPojo
A structure that describes a PolicyDefinintion. It will always have either an StaticPolicy
or a
TemplateLinkedPolicy
element.
This data type is used as a response parameter for the CreatePolicy and ListPolicies operations.
Constructor and Description |
---|
PolicyDefinitionItem() |
Modifier and Type | Method and Description |
---|---|
PolicyDefinitionItem |
clone() |
boolean |
equals(Object obj) |
StaticPolicyDefinitionItem |
getStatic()
Information about a static policy that wasn't created with a policy template.
|
TemplateLinkedPolicyDefinitionItem |
getTemplateLinked()
Information about a template-linked policy that was created by instantiating a policy template.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setStatic(StaticPolicyDefinitionItem staticValue)
Information about a static policy that wasn't created with a policy template.
|
void |
setTemplateLinked(TemplateLinkedPolicyDefinitionItem templateLinked)
Information about a template-linked policy that was created by instantiating a policy template.
|
String |
toString()
Returns a string representation of this object.
|
PolicyDefinitionItem |
withStatic(StaticPolicyDefinitionItem staticValue)
Information about a static policy that wasn't created with a policy template.
|
PolicyDefinitionItem |
withTemplateLinked(TemplateLinkedPolicyDefinitionItem templateLinked)
Information about a template-linked policy that was created by instantiating a policy template.
|
public void setStatic(StaticPolicyDefinitionItem staticValue)
Information about a static policy that wasn't created with a policy template.
staticValue
- Information about a static policy that wasn't created with a policy template.public StaticPolicyDefinitionItem getStatic()
Information about a static policy that wasn't created with a policy template.
public PolicyDefinitionItem withStatic(StaticPolicyDefinitionItem staticValue)
Information about a static policy that wasn't created with a policy template.
staticValue
- Information about a static policy that wasn't created with a policy template.public void setTemplateLinked(TemplateLinkedPolicyDefinitionItem templateLinked)
Information about a template-linked policy that was created by instantiating a policy template.
templateLinked
- Information about a template-linked policy that was created by instantiating a policy template.public TemplateLinkedPolicyDefinitionItem getTemplateLinked()
Information about a template-linked policy that was created by instantiating a policy template.
public PolicyDefinitionItem withTemplateLinked(TemplateLinkedPolicyDefinitionItem templateLinked)
Information about a template-linked policy that was created by instantiating a policy template.
templateLinked
- Information about a template-linked policy that was created by instantiating a policy template.public String toString()
toString
in class Object
Object.toString()
public PolicyDefinitionItem clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.