@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PolicyAttachment extends Object implements Serializable, Cloneable, StructuredPojo
Contains the PolicyType, PolicyId, and the ObjectIdentifier to which it is
attached. For more information, see Policies.
| Constructor and Description |
|---|
PolicyAttachment() |
| Modifier and Type | Method and Description |
|---|---|
PolicyAttachment |
clone() |
boolean |
equals(Object obj) |
String |
getObjectIdentifier()
The
ObjectIdentifier that is associated with PolicyAttachment. |
String |
getPolicyId()
The ID of
PolicyAttachment. |
String |
getPolicyType()
The type of policy that can be associated with
PolicyAttachment. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setObjectIdentifier(String objectIdentifier)
The
ObjectIdentifier that is associated with PolicyAttachment. |
void |
setPolicyId(String policyId)
The ID of
PolicyAttachment. |
void |
setPolicyType(String policyType)
The type of policy that can be associated with
PolicyAttachment. |
String |
toString()
Returns a string representation of this object.
|
PolicyAttachment |
withObjectIdentifier(String objectIdentifier)
The
ObjectIdentifier that is associated with PolicyAttachment. |
PolicyAttachment |
withPolicyId(String policyId)
The ID of
PolicyAttachment. |
PolicyAttachment |
withPolicyType(String policyType)
The type of policy that can be associated with
PolicyAttachment. |
public void setPolicyId(String policyId)
The ID of PolicyAttachment.
policyId - The ID of PolicyAttachment.public String getPolicyId()
The ID of PolicyAttachment.
PolicyAttachment.public PolicyAttachment withPolicyId(String policyId)
The ID of PolicyAttachment.
policyId - The ID of PolicyAttachment.public void setObjectIdentifier(String objectIdentifier)
The ObjectIdentifier that is associated with PolicyAttachment.
objectIdentifier - The ObjectIdentifier that is associated with PolicyAttachment.public String getObjectIdentifier()
The ObjectIdentifier that is associated with PolicyAttachment.
ObjectIdentifier that is associated with PolicyAttachment.public PolicyAttachment withObjectIdentifier(String objectIdentifier)
The ObjectIdentifier that is associated with PolicyAttachment.
objectIdentifier - The ObjectIdentifier that is associated with PolicyAttachment.public void setPolicyType(String policyType)
The type of policy that can be associated with PolicyAttachment.
policyType - The type of policy that can be associated with PolicyAttachment.public String getPolicyType()
The type of policy that can be associated with PolicyAttachment.
PolicyAttachment.public PolicyAttachment withPolicyType(String policyType)
The type of policy that can be associated with PolicyAttachment.
policyType - The type of policy that can be associated with PolicyAttachment.public String toString()
toString in class ObjectObject.toString()public PolicyAttachment clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.