public class DetachUserPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
DetachUserPolicy operation
.
Removes the specified managed policy from the specified user.
A user can also have inline policies embedded with it. To delete an inline policy, use the DeleteUserPolicy API. For information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.
NOOP
Constructor and Description |
---|
DetachUserPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
DetachUserPolicyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getPolicyArn()
The Amazon Resource Name (ARN).
|
String |
getUserName()
The name (friendly name, not ARN) of the user to detach the policy
from.
|
int |
hashCode() |
void |
setPolicyArn(String policyArn)
The Amazon Resource Name (ARN).
|
void |
setUserName(String userName)
The name (friendly name, not ARN) of the user to detach the policy
from.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DetachUserPolicyRequest |
withPolicyArn(String policyArn)
The Amazon Resource Name (ARN).
|
DetachUserPolicyRequest |
withUserName(String userName)
The name (friendly name, not ARN) of the user to detach the policy
from.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getUserName()
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
public void setUserName(String userName)
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
userName
- The name (friendly name, not ARN) of the user to detach the policy
from.public DetachUserPolicyRequest withUserName(String userName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
userName
- The name (friendly name, not ARN) of the user to detach the policy
from.public String getPolicyArn()
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Constraints:
Length: 20 - 2048
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public void setPolicyArn(String policyArn)
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Constraints:
Length: 20 - 2048
policyArn
- The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS
resources. For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public DetachUserPolicyRequest withPolicyArn(String policyArn)
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
policyArn
- The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS
resources. For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public String toString()
toString
in class Object
Object.toString()
public DetachUserPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.