@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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() |
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 void setUserName(String userName)
The name of the IAM user that the key is associated with.
userName
- The name of the IAM user that the key is associated with.public String getUserName()
The name of the IAM user that the key is associated with.
public AccessKeyMetadata withUserName(String userName)
The name of the IAM user that the key is associated with.
userName
- The name of the IAM user that the key is associated with.public void setAccessKeyId(String accessKeyId)
The ID for this access key.
accessKeyId
- The ID for this access key.public String getAccessKeyId()
The ID for this access key.
public AccessKeyMetadata withAccessKeyId(String accessKeyId)
The ID for this access key.
accessKeyId
- The ID for this access key.public void setStatus(String status)
The status of the access key. Active
means the key is valid for API calls; Inactive
means it is not.
status
- The status of the access key. Active
means the key is valid for API calls;
Inactive
means it is not.StatusType
public String getStatus()
The status of the access key. Active
means the key is valid for API calls; Inactive
means it is not.
Active
means the key is valid for API calls;
Inactive
means it is not.StatusType
public AccessKeyMetadata withStatus(String status)
The status of the access key. Active
means the key is valid for API calls; Inactive
means it is not.
status
- The status of the access key. Active
means the key is valid for API calls;
Inactive
means it is not.StatusType
public void setStatus(StatusType status)
The status of the access key. Active
means the key is valid for API calls; Inactive
means it is not.
status
- The status of the access key. Active
means the key is valid for API calls;
Inactive
means it is not.StatusType
public AccessKeyMetadata withStatus(StatusType status)
The status of the access key. Active
means the key is valid for API calls; Inactive
means it is not.
status
- The status of the access key. Active
means the key is valid for API calls;
Inactive
means it is not.StatusType
public void setCreateDate(Date createDate)
The date when the access key was created.
createDate
- The date when the access key was created.public Date getCreateDate()
The date when the access key was created.
public AccessKeyMetadata withCreateDate(Date createDate)
The date when the access key was created.
createDate
- The date when the access key was created.public String toString()
toString
in class Object
Object.toString()
public AccessKeyMetadata clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.