public class AccessKey
extends java.lang.Object
implements java.io.Serializable
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.
| コンストラクタと説明 |
|---|
AccessKey()
Default constructor for a new AccessKey object.
|
AccessKey(java.lang.String userName,
java.lang.String accessKeyId,
StatusType status,
java.lang.String secretAccessKey)
Constructs 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.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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 |
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.
|
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 |
setSecretAccessKey(java.lang.String secretAccessKey)
The secret key used to sign requests.
|
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)
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(StatusType status)
The status of the access key.
|
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.
|
public AccessKey()
public AccessKey(java.lang.String userName,
java.lang.String accessKeyId,
java.lang.String status,
java.lang.String secretAccessKey)
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.public AccessKey(java.lang.String userName,
java.lang.String accessKeyId,
StatusType status,
java.lang.String secretAccessKey)
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.public java.lang.String getUserName()
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*
public void setUserName(java.lang.String userName)
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*
userName - Name of the user the key is associated with.public AccessKey withUserName(java.lang.String userName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*
userName - Name of the user the key is associated with.public java.lang.String getAccessKeyId()
Constraints:
Length: 16 - 32
Pattern: [\w]*
public void setAccessKeyId(java.lang.String accessKeyId)
Constraints:
Length: 16 - 32
Pattern: [\w]*
accessKeyId - The ID for this access key.public AccessKey withAccessKeyId(java.lang.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 java.lang.String getStatus()
Active means the key is
valid for API calls, while Inactive means it is not.
Constraints:
Allowed Values: Active, Inactive
Active means the key is
valid for API calls, while Inactive means it is not.StatusTypepublic void setStatus(java.lang.String status)
Active means the key is
valid for API calls, while 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, while Inactive means it is not.StatusTypepublic AccessKey withStatus(java.lang.String status)
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
status - The status of the access key. Active means the key is
valid for API calls, while Inactive means it is not.StatusTypepublic void setStatus(StatusType status)
Active means the key is
valid for API calls, while 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, while Inactive means it is not.StatusTypepublic AccessKey withStatus(StatusType status)
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
status - The status of the access key. Active means the key is
valid for API calls, while Inactive means it is not.StatusTypepublic java.lang.String getSecretAccessKey()
public void setSecretAccessKey(java.lang.String secretAccessKey)
secretAccessKey - The secret key used to sign requests.public AccessKey withSecretAccessKey(java.lang.String secretAccessKey)
Returns a reference to this object so that method calls can be chained together.
secretAccessKey - The secret key used to sign requests.public java.util.Date getCreateDate()
public void setCreateDate(java.util.Date createDate)
createDate - The date when the access key was created.public AccessKey withCreateDate(java.util.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 java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object