@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TemplateLinkedPolicyDefinition extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about a policy created by instantiating a policy template.
| Constructor and Description |
|---|
TemplateLinkedPolicyDefinition() |
| Modifier and Type | Method and Description |
|---|---|
TemplateLinkedPolicyDefinition |
clone() |
boolean |
equals(Object obj) |
String |
getPolicyTemplateId()
The unique identifier of the policy template used to create this policy.
|
EntityIdentifier |
getPrincipal()
The principal associated with this template-linked policy.
|
EntityIdentifier |
getResource()
The resource associated with this template-linked policy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setPolicyTemplateId(String policyTemplateId)
The unique identifier of the policy template used to create this policy.
|
void |
setPrincipal(EntityIdentifier principal)
The principal associated with this template-linked policy.
|
void |
setResource(EntityIdentifier resource)
The resource associated with this template-linked policy.
|
String |
toString()
Returns a string representation of this object.
|
TemplateLinkedPolicyDefinition |
withPolicyTemplateId(String policyTemplateId)
The unique identifier of the policy template used to create this policy.
|
TemplateLinkedPolicyDefinition |
withPrincipal(EntityIdentifier principal)
The principal associated with this template-linked policy.
|
TemplateLinkedPolicyDefinition |
withResource(EntityIdentifier resource)
The resource associated with this template-linked policy.
|
public void setPolicyTemplateId(String policyTemplateId)
The unique identifier of the policy template used to create this policy.
policyTemplateId - The unique identifier of the policy template used to create this policy.public String getPolicyTemplateId()
The unique identifier of the policy template used to create this policy.
public TemplateLinkedPolicyDefinition withPolicyTemplateId(String policyTemplateId)
The unique identifier of the policy template used to create this policy.
policyTemplateId - The unique identifier of the policy template used to create this policy.public void setPrincipal(EntityIdentifier principal)
The principal associated with this template-linked policy. Verified Permissions substitutes this principal for
the ?principal placeholder in the policy template when it evaluates an authorization request.
principal - The principal associated with this template-linked policy. Verified Permissions substitutes this principal
for the ?principal placeholder in the policy template when it evaluates an authorization
request.public EntityIdentifier getPrincipal()
The principal associated with this template-linked policy. Verified Permissions substitutes this principal for
the ?principal placeholder in the policy template when it evaluates an authorization request.
?principal placeholder in the policy template when it evaluates an
authorization request.public TemplateLinkedPolicyDefinition withPrincipal(EntityIdentifier principal)
The principal associated with this template-linked policy. Verified Permissions substitutes this principal for
the ?principal placeholder in the policy template when it evaluates an authorization request.
principal - The principal associated with this template-linked policy. Verified Permissions substitutes this principal
for the ?principal placeholder in the policy template when it evaluates an authorization
request.public void setResource(EntityIdentifier resource)
The resource associated with this template-linked policy. Verified Permissions substitutes this resource for the
?resource placeholder in the policy template when it evaluates an authorization request.
resource - The resource associated with this template-linked policy. Verified Permissions substitutes this resource
for the ?resource placeholder in the policy template when it evaluates an authorization
request.public EntityIdentifier getResource()
The resource associated with this template-linked policy. Verified Permissions substitutes this resource for the
?resource placeholder in the policy template when it evaluates an authorization request.
?resource placeholder in the policy template when it evaluates an authorization
request.public TemplateLinkedPolicyDefinition withResource(EntityIdentifier resource)
The resource associated with this template-linked policy. Verified Permissions substitutes this resource for the
?resource placeholder in the policy template when it evaluates an authorization request.
resource - The resource associated with this template-linked policy. Verified Permissions substitutes this resource
for the ?resource placeholder in the policy template when it evaluates an authorization
request.public String toString()
toString in class ObjectObject.toString()public TemplateLinkedPolicyDefinition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.