Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.identitymanagement.model
Class DeleteUserPolicyRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.identitymanagement.model.DeleteUserPolicyRequest
All Implemented Interfaces:
Serializable

public class DeleteUserPolicyRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the DeleteUserPolicy operation.

Deletes the specified policy associated with the specified user.

See Also:
AmazonIdentityManagement.deleteUserPolicy(DeleteUserPolicyRequest), Serialized Form

Constructor Summary
DeleteUserPolicyRequest()
          Default constructor for a new DeleteUserPolicyRequest object.
DeleteUserPolicyRequest(String userName, String policyName)
          Constructs a new DeleteUserPolicyRequest object.
 
Method Summary
 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeleteUserPolicyRequest

public DeleteUserPolicyRequest()
Default constructor for a new DeleteUserPolicyRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


DeleteUserPolicyRequest

public DeleteUserPolicyRequest(String userName,
                               String policyName)
Constructs a new DeleteUserPolicyRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
userName - Name of the user the policy is associated with.
policyName - Name of the policy document to delete.
Method Detail

getUserName

public String getUserName()
Name of the user the policy is associated with.

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Returns:
Name of the user the policy is associated with.

setUserName

public void setUserName(String userName)
Name of the user the policy is associated with.

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Parameters:
userName - Name of the user the policy is associated with.

withUserName

public DeleteUserPolicyRequest withUserName(String userName)
Name of the user the policy is associated with.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Parameters:
userName - Name of the user the policy is associated with.
Returns:
A reference to this updated object so that method calls can be chained together.

getPolicyName

public String getPolicyName()
Name of the policy document to delete.

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Returns:
Name of the policy document to delete.

setPolicyName

public void setPolicyName(String policyName)
Name of the policy document to delete.

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Parameters:
policyName - Name of the policy document to delete.

withPolicyName

public DeleteUserPolicyRequest withPolicyName(String policyName)
Name of the policy document to delete.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Parameters:
policyName - Name of the policy document to delete.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.