public class AccessKeyMetadata extends Object implements Serializable, Cloneable
Contains information about an AWS access key, without its secret key.
This data type is used as a response element in the ListAccessKeys action.
| Constructor and Description |
|---|
AccessKeyMetadata()
Default constructor for a new AccessKeyMetadata object.
|
| Modifier and Type | Method and Description |
|---|---|
AccessKeyMetadata |
clone() |
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()
The name of the IAM user that 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)
The name of the IAM user that 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)
The name of the IAM user that the key is associated with.
|
public AccessKeyMetadata()
public String getUserName()
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
public void setUserName(String userName)
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
userName - The name of the IAM user that the key is associated with.public AccessKeyMetadata withUserName(String userName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
userName - The name of the IAM user that the key is associated with.public String getAccessKeyId()
Constraints:
Length: 16 - 32
Pattern: [\w]+
public void setAccessKeyId(String accessKeyId)
Constraints:
Length: 16 - 32
Pattern: [\w]+
accessKeyId - The ID for this access key.public AccessKeyMetadata 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 ID for this access key.public String getStatus()
Active means the key is
valid for API calls; Inactive means it is not.
Constraints:
Allowed Values: Active, Inactive
Active means the key is
valid for API calls; Inactive means it is not.StatusTypepublic void setStatus(String status)
Active means the key is
valid for API calls; Inactive means it is not.
Constraints:
Allowed Values: Active, Inactive
status - The status of the access key. Active means the key is
valid for API calls; Inactive means it is not.StatusTypepublic AccessKeyMetadata withStatus(String status)
Active means the key is
valid for API calls; Inactive means it is not.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Active, Inactive
status - The status of the access key. Active means the key is
valid for API calls; Inactive means it is not.StatusTypepublic void setStatus(StatusType status)
Active means the key is
valid for API calls; Inactive means it is not.
Constraints:
Allowed Values: Active, Inactive
status - The status of the access key. Active means the key is
valid for API calls; Inactive means it is not.StatusTypepublic AccessKeyMetadata withStatus(StatusType status)
Active means the key is
valid for API calls; Inactive means it is not.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Active, Inactive
status - The status of the access key. Active means the key is
valid for API calls; Inactive means it is not.StatusTypepublic Date getCreateDate()
public void setCreateDate(Date createDate)
createDate - The date when the access key was created.public AccessKeyMetadata withCreateDate(Date createDate)
Returns a reference to this object so that method calls can be chained together.
createDate - The date when the access key was created.public String toString()
toString in class ObjectObject.toString()public AccessKeyMetadata clone()
Copyright © 2015. All rights reserved.