public class MFADevice
extends java.lang.Object
implements java.io.Serializable
The MFADevice data type contains information about an MFA device.
This data type is used as a response element in the action ListMFADevices.
| コンストラクタと説明 |
|---|
MFADevice()
Default constructor for a new MFADevice object.
|
MFADevice(java.lang.String userName,
java.lang.String serialNumber,
java.util.Date enableDate)
Constructs a new MFADevice object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getEnableDate()
The date when the MFA device was enabled for the user.
|
java.lang.String |
getSerialNumber()
The serial number that uniquely identifies the MFA device.
|
java.lang.String |
getUserName()
The user with whom the MFA device is associated.
|
int |
hashCode() |
void |
setEnableDate(java.util.Date enableDate)
The date when the MFA device was enabled for the user.
|
void |
setSerialNumber(java.lang.String serialNumber)
The serial number that uniquely identifies the MFA device.
|
void |
setUserName(java.lang.String userName)
The user with whom the MFA device is associated.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MFADevice |
withEnableDate(java.util.Date enableDate)
The date when the MFA device was enabled for the user.
|
MFADevice |
withSerialNumber(java.lang.String serialNumber)
The serial number that uniquely identifies the MFA device.
|
MFADevice |
withUserName(java.lang.String userName)
The user with whom the MFA device is associated.
|
public MFADevice()
public MFADevice(java.lang.String userName,
java.lang.String serialNumber,
java.util.Date enableDate)
userName - The user with whom the MFA device is associated.serialNumber - The serial number that uniquely identifies the MFA
device. For virtual MFA devices, the serial number is the device ARN.enableDate - The date when the MFA device was enabled for the
user.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 - The user with whom the MFA device is associated.public MFADevice 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 - The user with whom the MFA device is associated.public java.lang.String getSerialNumber()
Constraints:
Length: 9 - 256
Pattern: [\w+=/:,.@-]*
public void setSerialNumber(java.lang.String serialNumber)
Constraints:
Length: 9 - 256
Pattern: [\w+=/:,.@-]*
serialNumber - The serial number that uniquely identifies the MFA device. For virtual
MFA devices, the serial number is the device ARN.public MFADevice withSerialNumber(java.lang.String serialNumber)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 9 - 256
Pattern: [\w+=/:,.@-]*
serialNumber - The serial number that uniquely identifies the MFA device. For virtual
MFA devices, the serial number is the device ARN.public java.util.Date getEnableDate()
public void setEnableDate(java.util.Date enableDate)
enableDate - The date when the MFA device was enabled for the user.public MFADevice withEnableDate(java.util.Date enableDate)
Returns a reference to this object so that method calls can be chained together.
enableDate - The date when the MFA device was enabled for the user.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