@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BatchAttachPolicy extends Object implements Serializable, Cloneable, StructuredPojo
Attaches a policy object to a regular object inside a BatchRead operation. For more information, see AttachPolicy and BatchReadRequest$Operations.
Constructor and Description |
---|
BatchAttachPolicy() |
Modifier and Type | Method and Description |
---|---|
BatchAttachPolicy |
clone() |
boolean |
equals(Object obj) |
ObjectReference |
getObjectReference()
The reference that identifies the object to which the policy will be attached.
|
ObjectReference |
getPolicyReference()
The reference that is associated with the policy object.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setObjectReference(ObjectReference objectReference)
The reference that identifies the object to which the policy will be attached.
|
void |
setPolicyReference(ObjectReference policyReference)
The reference that is associated with the policy object.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
BatchAttachPolicy |
withObjectReference(ObjectReference objectReference)
The reference that identifies the object to which the policy will be attached.
|
BatchAttachPolicy |
withPolicyReference(ObjectReference policyReference)
The reference that is associated with the policy object.
|
public void setPolicyReference(ObjectReference policyReference)
The reference that is associated with the policy object.
policyReference
- The reference that is associated with the policy object.public ObjectReference getPolicyReference()
The reference that is associated with the policy object.
public BatchAttachPolicy withPolicyReference(ObjectReference policyReference)
The reference that is associated with the policy object.
policyReference
- The reference that is associated with the policy object.public void setObjectReference(ObjectReference objectReference)
The reference that identifies the object to which the policy will be attached.
objectReference
- The reference that identifies the object to which the policy will be attached.public ObjectReference getObjectReference()
The reference that identifies the object to which the policy will be attached.
public BatchAttachPolicy withObjectReference(ObjectReference objectReference)
The reference that identifies the object to which the policy will be attached.
objectReference
- The reference that identifies the object to which the policy will be attached.public String toString()
toString
in class Object
Object.toString()
public BatchAttachPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.