public class AttachPolicyRequest extends AmazonWebServiceRequest implements Serializable
Attaches a policy to the specified target.
| Constructor and Description |
|---|
AttachPolicyRequest() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getPolicyName()
The name of the policy to attach.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
The name of the policy to attach.
public void setPolicyName(String policyName)
The name of the policy to attach.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
policyName - The name of the policy to attach.
public AttachPolicyRequest withPolicyName(String policyName)
The name of the policy to attach.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
policyName - The name of the policy to attach.
public String getTarget()
The identity to which the policy is attached.
The identity to which the policy is attached.
public void setTarget(String target)
The identity to which the policy is attached.
target - The identity to which the policy is attached.
public AttachPolicyRequest withTarget(String target)
The identity to which the policy is attached.
Returns a reference to this object so that method calls can be chained together.
target - The identity to which the policy is attached.
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.