Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.identitymanagement.model
Class DeleteAccessKeyRequest

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

public class DeleteAccessKeyRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the 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.

See Also:
AmazonIdentityManagement.deleteAccessKey(DeleteAccessKeyRequest), Serialized Form

Constructor Summary
DeleteAccessKeyRequest()
          Default constructor for a new DeleteAccessKeyRequest object.
DeleteAccessKeyRequest(String accessKeyId)
          Constructs a new DeleteAccessKeyRequest object.
 
Method Summary
 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.
 
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

DeleteAccessKeyRequest

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


DeleteAccessKeyRequest

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

Parameters:
accessKeyId - The Access Key ID for the Access Key ID and Secret Access Key you want to delete.
Method Detail

getUserName

public String getUserName()
Name of the user whose key you want to delete.

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

Returns:
Name of the user whose key you want to delete.

setUserName

public void setUserName(String userName)
Name of the user whose key you want to delete.

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

Parameters:
userName - Name of the user whose key you want to delete.

withUserName

public DeleteAccessKeyRequest withUserName(String userName)
Name of the user whose key you want 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 whose key you want to delete.
Returns:
A reference to this updated object so that method calls can be chained together.

getAccessKeyId

public String getAccessKeyId()
The Access Key ID for the Access Key ID and Secret Access Key you want to delete.

Constraints:
Length: 16 - 32
Pattern: [\w]*

Returns:
The Access Key ID for the Access Key ID and Secret Access Key you want to delete.

setAccessKeyId

public void setAccessKeyId(String accessKeyId)
The Access Key ID for the Access Key ID and Secret Access Key you want to delete.

Constraints:
Length: 16 - 32
Pattern: [\w]*

Parameters:
accessKeyId - The Access Key ID for the Access Key ID and Secret Access Key you want to delete.

withAccessKeyId

public DeleteAccessKeyRequest withAccessKeyId(String accessKeyId)
The Access Key ID for the Access Key ID and Secret Access Key you want to delete.

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

Constraints:
Length: 16 - 32
Pattern: [\w]*

Parameters:
accessKeyId - The Access Key ID for the Access Key ID and Secret Access Key you want 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.