com.amazonaws.services.identitymanagement.model
Class AccessKey

java.lang.Object
  extended by com.amazonaws.services.identitymanagement.model.AccessKey

public class AccessKey
extends java.lang.Object

The AccessKey data type contains information about an AWS access key.

This data type is used as a response element in the actions CreateAccessKey and ListAccessKeys.


Constructor Summary
AccessKey()
          Default constructor for a new AccessKey object.
AccessKey(java.lang.String userName, java.lang.String accessKeyId, java.lang.String status, java.lang.String secretAccessKey)
          Constructs a new AccessKey object.
 
Method Summary
 java.lang.String getAccessKeyId()
          The ID for this access key.
 java.util.Date getCreateDate()
          The date when the access key was created.
 java.lang.String getSecretAccessKey()
          The secret key used to sign requests.
 java.lang.String getStatus()
          The status of the access key.
 java.lang.String getUserName()
          Name of the User the key is associated with.
 void setAccessKeyId(java.lang.String accessKeyId)
          The ID for this access key.
 void setCreateDate(java.util.Date createDate)
          The date when the access key was created.
 void setSecretAccessKey(java.lang.String secretAccessKey)
          The secret key used to sign requests.
 void setStatus(java.lang.String status)
          The status of the access key.
 void setUserName(java.lang.String userName)
          Name of the User the key is associated with.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AccessKey withAccessKeyId(java.lang.String accessKeyId)
          The ID for this access key.
 AccessKey withCreateDate(java.util.Date createDate)
          The date when the access key was created.
 AccessKey withSecretAccessKey(java.lang.String secretAccessKey)
          The secret key used to sign requests.
 AccessKey withStatus(java.lang.String status)
          The status of the access key.
 AccessKey withUserName(java.lang.String userName)
          Name of the User the key is associated with.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AccessKey

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


AccessKey

public AccessKey(java.lang.String userName,
                 java.lang.String accessKeyId,
                 java.lang.String status,
                 java.lang.String secretAccessKey)
Constructs a new AccessKey object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
userName - Name of the User the key is associated with.
accessKeyId - The ID for this access key.
status - The status of the access key. Active means the key is valid for API calls, while Inactive means it is not.
secretAccessKey - The secret key used to sign requests.
Method Detail

getUserName

public java.lang.String getUserName()
Name of the User the key is associated with.

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

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

setUserName

public void setUserName(java.lang.String userName)
Name of the User the key is associated with.

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

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

withUserName

public AccessKey withUserName(java.lang.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 - 128
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 java.lang.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(java.lang.String accessKeyId)
The ID for this access key.

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

Parameters:
accessKeyId - The ID for this access key.

withAccessKeyId

public AccessKey withAccessKeyId(java.lang.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 java.lang.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(java.lang.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 AccessKey withStatus(java.lang.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

getSecretAccessKey

public java.lang.String getSecretAccessKey()
The secret key used to sign requests.

Returns:
The secret key used to sign requests.

setSecretAccessKey

public void setSecretAccessKey(java.lang.String secretAccessKey)
The secret key used to sign requests.

Parameters:
secretAccessKey - The secret key used to sign requests.

withSecretAccessKey

public AccessKey withSecretAccessKey(java.lang.String secretAccessKey)
The secret key used to sign requests.

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

Parameters:
secretAccessKey - The secret key used to sign requests.
Returns:
A reference to this updated object so that method calls can be chained together.

getCreateDate

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

Returns:
The date when the access key was created.

setCreateDate

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

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

withCreateDate

public AccessKey withCreateDate(java.util.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 java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.