Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.identitymanagement.model
Class AccessKeyMetadata

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

public class AccessKeyMetadata
extends Object
implements Serializable

The AccessKey data type contains information about an AWS access key, without its secret key.

This data type is used as a response element in the action ListAccessKeys.

See Also:
Serialized Form

Constructor Summary
AccessKeyMetadata()
          Default constructor for a new AccessKeyMetadata object.
 
Method Summary
 boolean equals(Object obj)
           
 String getAccessKeyId()
          The ID for this access key.
 Date getCreateDate()
          The date when the access key was created.
 String getStatus()
          The status of the access key.
 String getUserName()
          Name of the user the key is associated with.
 int hashCode()
           
 void setAccessKeyId(String accessKeyId)
          The ID for this access key.
 void setCreateDate(Date createDate)
          The date when the access key was created.
 void setStatus(StatusType status)
          The status of the access key.
 void setStatus(String status)
          The status of the access key.
 void setUserName(String userName)
          Name of the user the key is associated with.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AccessKeyMetadata withAccessKeyId(String accessKeyId)
          The ID for this access key.
 AccessKeyMetadata withCreateDate(Date createDate)
          The date when the access key was created.
 AccessKeyMetadata withStatus(StatusType status)
          The status of the access key.
 AccessKeyMetadata withStatus(String status)
          The status of the access key.
 AccessKeyMetadata withUserName(String userName)
          Name of the user the key is associated with.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AccessKeyMetadata

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

Method Detail

getUserName

public String getUserName()
Name of the user the key is associated with.

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

Returns:
Name of the user the key is associated with.

setUserName

public void setUserName(String userName)
Name of the user the key is associated with.

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

Parameters:
userName - Name of the user the key is associated with.

withUserName

public AccessKeyMetadata withUserName(String userName)
Name of the user the key is associated with.

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

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

Parameters:
userName - Name of the user the key is associated with.
Returns:
A reference to this updated object so that method calls can be chained together.

getAccessKeyId

public String getAccessKeyId()
The ID for this access key.

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

Returns:
The ID for this access key.

setAccessKeyId

public void setAccessKeyId(String accessKeyId)
The ID for this access key.

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

Parameters:
accessKeyId - The ID for this access key.

withAccessKeyId

public AccessKeyMetadata withAccessKeyId(String accessKeyId)
The ID for this access key.

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

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

Parameters:
accessKeyId - The ID for this access key.
Returns:
A reference to this updated object so that method calls can be chained together.

getStatus

public String getStatus()
The status of the access key. Active means the key is valid for API calls, while Inactive means it is not.

Constraints:
Allowed Values: Active, Inactive

Returns:
The status of the access key. Active means the key is valid for API calls, while Inactive means it is not.
See Also:
StatusType

setStatus

public void setStatus(String status)
The status of the access key. Active means the key is valid for API calls, while Inactive means it is not.

Constraints:
Allowed Values: Active, Inactive

Parameters:
status - The status of the access key. Active means the key is valid for API calls, while Inactive means it is not.
See Also:
StatusType

withStatus

public AccessKeyMetadata withStatus(String status)
The status of the access key. Active means the key is valid for API calls, while Inactive means it is not.

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

Constraints:
Allowed Values: Active, Inactive

Parameters:
status - The status of the access key. Active means the key is valid for API calls, while Inactive means it is not.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
StatusType

setStatus

public void setStatus(StatusType status)
The status of the access key. Active means the key is valid for API calls, while Inactive means it is not.

Constraints:
Allowed Values: Active, Inactive

Parameters:
status - The status of the access key. Active means the key is valid for API calls, while Inactive means it is not.
See Also:
StatusType

withStatus

public AccessKeyMetadata withStatus(StatusType status)
The status of the access key. Active means the key is valid for API calls, while Inactive means it is not.

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

Constraints:
Allowed Values: Active, Inactive

Parameters:
status - The status of the access key. Active means the key is valid for API calls, while Inactive means it is not.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
StatusType

getCreateDate

public Date getCreateDate()
The date when the access key was created.

Returns:
The date when the access key was created.

setCreateDate

public void setCreateDate(Date createDate)
The date when the access key was created.

Parameters:
createDate - The date when the access key was created.

withCreateDate

public AccessKeyMetadata withCreateDate(Date createDate)
The date when the access key was created.

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

Parameters:
createDate - The date when the access key was created.
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.