@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AttachPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
AttachPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
AttachPolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDirectoryArn()
The Amazon Resource Name (ARN) that is associated with the Directory where both objects reside.
|
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 |
setDirectoryArn(String directoryArn)
The Amazon Resource Name (ARN) that is associated with the Directory where both objects reside.
|
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.
|
AttachPolicyRequest |
withDirectoryArn(String directoryArn)
The Amazon Resource Name (ARN) that is associated with the Directory where both objects reside.
|
AttachPolicyRequest |
withObjectReference(ObjectReference objectReference)
The reference that identifies the object to which the policy will be attached.
|
AttachPolicyRequest |
withPolicyReference(ObjectReference policyReference)
The reference that is associated with the policy object.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setDirectoryArn(String directoryArn)
public String getDirectoryArn()
public AttachPolicyRequest withDirectoryArn(String directoryArn)
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 AttachPolicyRequest 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 AttachPolicyRequest 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 AttachPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()