Class AccessKeyMetadata
- java.lang.Object
-
- com.amazonaws.services.identitymanagement.model.AccessKeyMetadata
-
- All Implemented Interfaces:
Serializable
,Cloneable
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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AccessKeyMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
setUserName
public void setUserName(String userName)
The name of the IAM user that the key is associated with.
- Parameters:
userName
- The name of the IAM user that the key is associated with.
-
getUserName
public String getUserName()
The name of the IAM user that the key is associated with.
- Returns:
- The name of the IAM user that the key is associated with.
-
withUserName
public AccessKeyMetadata withUserName(String userName)
The name of the IAM user that the key is associated with.
- Parameters:
userName
- The name of the IAM user that the key is associated with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAccessKeyId
public void setAccessKeyId(String accessKeyId)
The ID for this access key.
- Parameters:
accessKeyId
- The ID for this access key.
-
getAccessKeyId
public String getAccessKeyId()
The ID for this access key.
- Returns:
- The ID for this access key.
-
withAccessKeyId
public AccessKeyMetadata withAccessKeyId(String accessKeyId)
The ID for this access key.
- Parameters:
accessKeyId
- The ID for this access key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
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.- Parameters:
status
- The status of the access key.Active
means the key is valid for API calls;Inactive
means it is not.- See Also:
StatusType
-
getStatus
public String getStatus()
The status of the access key.
Active
means the key is valid for API calls;Inactive
means it is not.- Returns:
- The status of the access key.
Active
means the key is valid for API calls;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;Inactive
means it is not.- Parameters:
status
- The status of the access key.Active
means the key is valid for API calls;Inactive
means it is not.- Returns:
- Returns a reference to this 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;Inactive
means it is not.- Parameters:
status
- The status of the access key.Active
means the key is valid for API calls;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;Inactive
means it is not.- Parameters:
status
- The status of the access key.Active
means the key is valid for API calls;Inactive
means it is not.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StatusType
-
setCreateDate
public void setCreateDate(Date createDate)
The date when the access key was created.
- Parameters:
createDate
- The date when the access key was created.
-
getCreateDate
public Date getCreateDate()
The date when the access key was created.
- Returns:
- The date when the access key was created.
-
withCreateDate
public AccessKeyMetadata withCreateDate(Date createDate)
The date when the access key was created.
- Parameters:
createDate
- The date when the access key was created.- Returns:
- Returns a reference to this 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AccessKeyMetadata clone()
-
-