Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.identitymanagement.model
Class DeleteUserRequest

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

public class DeleteUserRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the DeleteUser operation.

Deletes the specified user. The user must not belong to any groups, have any keys or signing certificates, or have any attached policies.

See Also:
AmazonIdentityManagement.deleteUser(DeleteUserRequest), Serialized Form

Constructor Summary
DeleteUserRequest()
          Default constructor for a new DeleteUserRequest object.
DeleteUserRequest(String userName)
          Constructs a new DeleteUserRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getUserName()
          Name of the user to delete.
 int hashCode()
           
 void setUserName(String userName)
          Name of the user to delete.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DeleteUserRequest withUserName(String userName)
          Name of the user to delete.
 
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

DeleteUserRequest

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


DeleteUserRequest

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

Parameters:
userName - Name of the user to delete.
Method Detail

getUserName

public String getUserName()
Name of the user to delete.

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

Returns:
Name of the user to delete.

setUserName

public void setUserName(String userName)
Name of the user to delete.

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

Parameters:
userName - Name of the user to delete.

withUserName

public DeleteUserRequest withUserName(String userName)
Name of the user to delete.

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 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.