public class AccessKeyMetadata
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
accessKeyId
The ID for this access key.
|
private java.util.Date |
createDate
The date when the access key was created.
|
private java.lang.String |
status
The status of the access key.
|
private java.lang.String |
userName
The name of the IAM user that the key is associated with.
|
Constructor and Description |
---|
AccessKeyMetadata() |
Modifier and Type | Method and Description |
---|---|
AccessKeyMetadata |
clone() |
boolean |
equals(java.lang.Object obj) |
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 |
getStatus()
The status of the access key.
|
java.lang.String |
getUserName()
The name of the IAM user that the key is associated with.
|
int |
hashCode() |
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 |
setStatus(StatusType status)
The status of the access key.
|
void |
setStatus(java.lang.String status)
The status of the access key.
|
void |
setUserName(java.lang.String userName)
The name of the IAM user that the key is associated with.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AccessKeyMetadata |
withAccessKeyId(java.lang.String accessKeyId)
The ID for this access key.
|
AccessKeyMetadata |
withCreateDate(java.util.Date createDate)
The date when the access key was created.
|
AccessKeyMetadata |
withStatus(StatusType status)
The status of the access key.
|
AccessKeyMetadata |
withStatus(java.lang.String status)
The status of the access key.
|
AccessKeyMetadata |
withUserName(java.lang.String userName)
The name of the IAM user that the key is associated with.
|
private java.lang.String userName
The name of the IAM user that the key is associated with.
private java.lang.String accessKeyId
The ID for this access key.
private java.lang.String status
The status of the access key. Active
means the key is valid
for API calls; Inactive
means it is not.
private java.util.Date createDate
The date when the access key was created.
public void setUserName(java.lang.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 java.lang.String getUserName()
The name of the IAM user that the key is associated with.
public AccessKeyMetadata withUserName(java.lang.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(java.lang.String accessKeyId)
The ID for this access key.
accessKeyId
- The ID for this access key.public java.lang.String getAccessKeyId()
The ID for this access key.
public AccessKeyMetadata withAccessKeyId(java.lang.String accessKeyId)
The ID for this access key.
accessKeyId
- The ID for this access key.public void setStatus(java.lang.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 java.lang.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(java.lang.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(java.util.Date createDate)
The date when the access key was created.
createDate
- The date when the access key was created.public java.util.Date getCreateDate()
The date when the access key was created.
public AccessKeyMetadata withCreateDate(java.util.Date createDate)
The date when the access key was created.
createDate
- The date when the access key was created.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AccessKeyMetadata clone()
clone
in class java.lang.Object