public class DeleteUserPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
DeleteUserPolicy operation
.
Deletes the specified inline policy that is embedded in the specified user.
A user can also have managed policies attached to it. To detach a managed policy from a user, use DetachUserPolicy. For more information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.
NOOP
Constructor and Description |
---|
DeleteUserPolicyRequest()
Default constructor for a new DeleteUserPolicyRequest object.
|
DeleteUserPolicyRequest(String userName,
String policyName)
Constructs a new DeleteUserPolicyRequest object.
|
Modifier and Type | Method and Description |
---|---|
DeleteUserPolicyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getPolicyName()
The name identifying the policy document to delete.
|
String |
getUserName()
The name (friendly name, not ARN) identifying the user that the policy
is embedded in.
|
int |
hashCode() |
void |
setPolicyName(String policyName)
The name identifying the policy document to delete.
|
void |
setUserName(String userName)
The name (friendly name, not ARN) identifying the user that the policy
is embedded in.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteUserPolicyRequest |
withPolicyName(String policyName)
The name identifying the policy document to delete.
|
DeleteUserPolicyRequest |
withUserName(String userName)
The name (friendly name, not ARN) identifying the user that the policy
is embedded in.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public DeleteUserPolicyRequest()
public DeleteUserPolicyRequest(String userName, String policyName)
userName
- The name (friendly name, not ARN) identifying the user
that the policy is embedded in.policyName
- The name identifying the policy document to delete.public String getUserName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
public void setUserName(String userName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
userName
- The name (friendly name, not ARN) identifying the user that the policy
is embedded in.public DeleteUserPolicyRequest withUserName(String userName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
userName
- The name (friendly name, not ARN) identifying the user that the policy
is embedded in.public String getPolicyName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
public void setPolicyName(String policyName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
policyName
- The name identifying the policy document to delete.public DeleteUserPolicyRequest withPolicyName(String policyName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
policyName
- The name identifying the policy document to delete.public String toString()
toString
in class Object
Object.toString()
public DeleteUserPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.