public class DeleteAccessKeyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
DeleteAccessKey operation
.
Deletes the access key associated with the specified user.
If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.
NOOP
Constructor and Description |
---|
DeleteAccessKeyRequest()
Default constructor for a new DeleteAccessKeyRequest object.
|
DeleteAccessKeyRequest(String userName,
String accessKeyId)
Constructs a new DeleteAccessKeyRequest object.
|
Modifier and Type | Method and Description |
---|---|
DeleteAccessKeyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getAccessKeyId()
The access key ID for the access key ID and secret access key you want
to delete.
|
String |
getUserName()
The name of the user whose key you want to delete.
|
int |
hashCode() |
void |
setAccessKeyId(String accessKeyId)
The access key ID for the access key ID and secret access key you want
to delete.
|
void |
setUserName(String userName)
The name of the user whose key you want to delete.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteAccessKeyRequest |
withAccessKeyId(String accessKeyId)
The access key ID for the access key ID and secret access key you want
to delete.
|
DeleteAccessKeyRequest |
withUserName(String userName)
The name of the user whose key you want to delete.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public DeleteAccessKeyRequest()
public DeleteAccessKeyRequest(String userName, String accessKeyId)
userName
- The name of the user whose key you want to delete.accessKeyId
- The access key ID for the access key ID and secret
access key you want 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 whose key you want to delete.public DeleteAccessKeyRequest 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 whose key you want to delete.public String getAccessKeyId()
Constraints:
Length: 16 - 32
Pattern: [\w]+
public void setAccessKeyId(String accessKeyId)
Constraints:
Length: 16 - 32
Pattern: [\w]+
accessKeyId
- The access key ID for the access key ID and secret access key you want
to delete.public DeleteAccessKeyRequest withAccessKeyId(String accessKeyId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 16 - 32
Pattern: [\w]+
accessKeyId
- The access key ID for the access key ID and secret access key you want
to delete.public String toString()
toString
in class Object
Object.toString()
public DeleteAccessKeyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.