public class DeleteAccessKeyRequest extends AmazonWebServiceRequest implements Serializable
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 API to manage root credentials even if the AWS account has no associated users.
Constructor and Description |
---|
DeleteAccessKeyRequest()
Default constructor for a new DeleteAccessKeyRequest object.
|
DeleteAccessKeyRequest(String accessKeyId)
Constructs a new DeleteAccessKeyRequest object.
|
Modifier and Type | Method and Description |
---|---|
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()
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)
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)
Name of the user whose key you want to delete.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public DeleteAccessKeyRequest()
public DeleteAccessKeyRequest(String accessKeyId)
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
- 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
- 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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.