public class DetachPolicyRequest extends AmazonWebServiceRequest implements java.io.Serializable
Detaches a policy from the specified target.
Constructor and Description |
---|
DetachPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPolicyName()
The policy to detach.
|
java.lang.String |
getTarget()
The target from which the policy will be detached.
|
int |
hashCode() |
void |
setPolicyName(java.lang.String policyName)
The policy to detach.
|
void |
setTarget(java.lang.String target)
The target from which the policy will be detached.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DetachPolicyRequest |
withPolicyName(java.lang.String policyName)
The policy to detach.
|
DetachPolicyRequest |
withTarget(java.lang.String target)
The target from which the policy will be detached.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getPolicyName()
The policy to detach.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
The policy to detach.
public void setPolicyName(java.lang.String policyName)
The policy to detach.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
policyName
- The policy to detach.
public DetachPolicyRequest withPolicyName(java.lang.String policyName)
The policy to detach.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
policyName
- The policy to detach.
public java.lang.String getTarget()
The target from which the policy will be detached.
The target from which the policy will be detached.
public void setTarget(java.lang.String target)
The target from which the policy will be detached.
target
- The target from which the policy will be detached.
public DetachPolicyRequest withTarget(java.lang.String target)
The target from which the policy will be detached.
Returns a reference to this object so that method calls can be chained together.
target
- The target from which the policy will be detached.
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.