@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 |
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.
|
AttachPolicyRequest |
withPolicyName(String policyName)
The name of the policy to attach.
|
AttachPolicyRequest |
withTarget(String target)
The identity to which the
policy is attached.
|
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 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. For example, a thing group or a certificate.
target
- The identity to
which the policy is attached. For example, a thing group or a certificate.public String getTarget()
The identity to which the policy is attached. For example, a thing group or a certificate.
public AttachPolicyRequest withTarget(String target)
The identity to which the policy is attached. For example, a thing group or a certificate.
target
- The identity to
which the policy is attached. For example, a thing group or a certificate.public String toString()
toString
in class Object
Object.toString()
public AttachPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()