public class DeleteUserPolicyRequest extends AmazonWebServiceRequest implements Serializable
DeleteUserPolicy operation.
Deletes the specified policy associated with the specified user.
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 |
|---|---|
boolean |
equals(Object obj) |
String |
getPolicyName()
Name of the policy document to delete.
|
String |
getUserName()
Name of the user the policy is associated with.
|
int |
hashCode() |
void |
setPolicyName(String policyName)
Name of the policy document to delete.
|
void |
setUserName(String userName)
Name of the user the policy is associated with.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteUserPolicyRequest |
withPolicyName(String policyName)
Name of the policy document to delete.
|
DeleteUserPolicyRequest |
withUserName(String userName)
Name of the user the policy is associated with.
|
copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic DeleteUserPolicyRequest()
public DeleteUserPolicyRequest(String userName, String policyName)
userName - Name of the user the policy is associated with.policyName - Name of 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 - Name of the user the policy is associated with.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 - Name of the user the policy is associated with.public String getPolicyName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
public void setPolicyName(String policyName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
policyName - Name of 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 - Name of the policy document to delete.public String toString()
toString in class ObjectObject.toString()Copyright © 2014. All rights reserved.