public class MFADevice
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains information about an MFA device.
This data type is used as a response element in the ListMFADevices action.
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
enableDate
The date when the MFA device was enabled for the user.
|
private java.lang.String |
serialNumber
The serial number that uniquely identifies the MFA device.
|
private java.lang.String |
userName
The user with whom the MFA device is associated.
|
Constructor and Description |
---|
MFADevice()
Default constructor for MFADevice object.
|
MFADevice(java.lang.String userName,
java.lang.String serialNumber,
java.util.Date enableDate)
Constructs a new MFADevice object.
|
Modifier and Type | Method and Description |
---|---|
MFADevice |
clone() |
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.
|
private java.lang.String userName
The user with whom the MFA device is associated.
private java.lang.String serialNumber
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
private java.util.Date enableDate
The date when the MFA device was enabled for the user.
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 void setUserName(java.lang.String userName)
The user with whom the MFA device is associated.
userName
- The user with whom the MFA device is associated.public java.lang.String getUserName()
The user with whom the MFA device is associated.
public MFADevice withUserName(java.lang.String userName)
The user with whom the MFA device is associated.
userName
- The user with whom the MFA device is associated.public void setSerialNumber(java.lang.String serialNumber)
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
serialNumber
- The serial number that uniquely identifies the MFA device. For
virtual MFA devices, the serial number is the device ARN.public java.lang.String getSerialNumber()
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)
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
serialNumber
- The serial number that uniquely identifies the MFA device. For
virtual MFA devices, the serial number is the device ARN.public void setEnableDate(java.util.Date enableDate)
The date when the MFA device was enabled for the user.
enableDate
- The date when the MFA device was enabled for the user.public java.util.Date getEnableDate()
The date when the MFA device was enabled for the user.
public MFADevice withEnableDate(java.util.Date enableDate)
The date when the MFA device was enabled for the user.
enableDate
- The date when the MFA device was enabled for the user.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 MFADevice clone()
clone
in class java.lang.Object