@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 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 void setUserName(String userName)
The user with whom the MFA device is associated.
userName
- The user with whom the MFA device is associated.public String getUserName()
The user with whom the MFA device is associated.
public MFADevice withUserName(String userName)
The user with whom the MFA device is associated.
userName
- The user with whom the MFA device is associated.public void setSerialNumber(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 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(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(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 Date getEnableDate()
The date when the MFA device was enabled for the user.
public MFADevice withEnableDate(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 String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.