@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() |
boolean |
equals(Object obj) |
String |
getPolicyName()
The name of the policy to attach.
|
String |
getTarget()
The identity to which the policy is attached.
|
int |
hashCode() |
void |
setPolicyName(String policyName)
The name of the policy to attach.
|
void |
setTarget(String target)
The identity to which the policy is attached.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
AttachPolicyRequest |
withPolicyName(String policyName)
The name of the policy to attach.
|
AttachPolicyRequest |
withTarget(String target)
The identity to which the policy is attached.
|
addHandlerContext, copyBaseTo, 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 setPolicyName(String policyName)
The name of the policy to attach.
policyName
- The name of the policy to attach.public String getPolicyName()
The name of the policy to attach.
public AttachPolicyRequest withPolicyName(String policyName)
The name of the policy to attach.
policyName
- The name of the policy to attach.public void setTarget(String target)
The identity to which the policy is attached.
target
- The identity to which the policy is attached.public String getTarget()
The identity to which the policy is attached.
public AttachPolicyRequest withTarget(String target)
The identity to which the policy is attached.
target
- The identity to which the policy is attached.public String toString()
toString
in class Object
Object.toString()
public AttachPolicyRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2018. All rights reserved.