public class AttachPolicyRequest extends AmazonWebServiceRequest implements java.io.Serializable
Attaches a policy to the specified target.
Constructor and Description |
---|
AttachPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPolicyName()
The name of the policy to attach.
|
java.lang.String |
getTarget()
The identity to which the policy is attached.
|
int |
hashCode() |
void |
setPolicyName(java.lang.String policyName)
The name of the policy to attach.
|
void |
setTarget(java.lang.String target)
The identity to which the policy is attached.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttachPolicyRequest |
withPolicyName(java.lang.String policyName)
The name of the policy to attach.
|
AttachPolicyRequest |
withTarget(java.lang.String target)
The identity to which the policy is attached.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.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(java.lang.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(java.lang.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 java.lang.String getTarget()
The identity to which the policy is attached.
The identity to which the policy is attached.
public void setTarget(java.lang.String target)
The identity to which the policy is attached.
target
- The identity to which the policy is attached.
public AttachPolicyRequest withTarget(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.