public class MFADevice extends Object implements Serializable, Cloneable
Contains information about an MFA device.
This data type is used as a response element in the ListMFADevices action.
| Constructor and Description |
|---|
MFADevice()
Default constructor for a new MFADevice object.
|
MFADevice(String userName,
String serialNumber,
Date enableDate)
Constructs a new MFADevice object.
|
| Modifier and Type | Method and Description |
|---|---|
MFADevice |
clone() |
boolean |
equals(Object obj) |
Date |
getEnableDate()
The date when the MFA device was enabled for the user.
|
String |
getSerialNumber()
The serial number that uniquely identifies the MFA device.
|
String |
getUserName()
The user with whom the MFA device is associated.
|
int |
hashCode() |
void |
setEnableDate(Date enableDate)
The date when the MFA device was enabled for the user.
|
void |
setSerialNumber(String serialNumber)
The serial number that uniquely identifies the MFA device.
|
void |
setUserName(String userName)
The user with whom the MFA device is associated.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MFADevice |
withEnableDate(Date enableDate)
The date when the MFA device was enabled for the user.
|
MFADevice |
withSerialNumber(String serialNumber)
The serial number that uniquely identifies the MFA device.
|
MFADevice |
withUserName(String userName)
The user with whom the MFA device is associated.
|
public MFADevice()
public MFADevice(String userName, String serialNumber, 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 String getUserName()
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
public void setUserName(String userName)
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
userName - The user with whom the MFA device is associated.public MFADevice withUserName(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 String getSerialNumber()
Constraints:
Length: 9 - 256
Pattern: [\w+=/:,.@-]+
public void setSerialNumber(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(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 Date getEnableDate()
public void setEnableDate(Date enableDate)
enableDate - The date when the MFA device was enabled for the user.public MFADevice withEnableDate(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 String toString()
toString in class ObjectObject.toString()Copyright © 2015. All rights reserved.