public class DeleteUserRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
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.
NOOP
Constructor and Description |
---|
DeleteUserRequest()
Default constructor for a new DeleteUserRequest object.
|
DeleteUserRequest(String userName)
Constructs a new DeleteUserRequest object.
|
Modifier and Type | Method and Description |
---|---|
DeleteUserRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getUserName()
The name of the user to delete.
|
int |
hashCode() |
void |
setUserName(String userName)
The name of the user to delete.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteUserRequest |
withUserName(String userName)
The name of the user to delete.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public DeleteUserRequest()
public DeleteUserRequest(String userName)
userName
- The name of the user 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 of the user to delete.public DeleteUserRequest 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 of the user to delete.public String toString()
toString
in class Object
Object.toString()
public DeleteUserRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.