Class MFADevice
- java.lang.Object
-
- com.amazonaws.services.identitymanagement.model.MFADevice
-
- All Implemented Interfaces:
Serializable
,Cloneable
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.
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
MFADevice
public MFADevice()
Default constructor for MFADevice object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
MFADevice
public MFADevice(String userName, String serialNumber, Date enableDate)
Constructs a new MFADevice object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
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.
-
-
Method Detail
-
setUserName
public void setUserName(String userName)
The user with whom the MFA device is associated.
- Parameters:
userName
- The user with whom the MFA device is associated.
-
getUserName
public String getUserName()
The user with whom the MFA device is associated.
- Returns:
- The user with whom the MFA device is associated.
-
withUserName
public MFADevice withUserName(String userName)
The user with whom the MFA device is associated.
- Parameters:
userName
- The user with whom the MFA device is associated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSerialNumber
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.
- Parameters:
serialNumber
- The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
-
getSerialNumber
public String getSerialNumber()
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
- Returns:
- The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
-
withSerialNumber
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.
- Parameters:
serialNumber
- The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEnableDate
public void setEnableDate(Date enableDate)
The date when the MFA device was enabled for the user.
- Parameters:
enableDate
- The date when the MFA device was enabled for the user.
-
getEnableDate
public Date getEnableDate()
The date when the MFA device was enabled for the user.
- Returns:
- The date when the MFA device was enabled for the user.
-
withEnableDate
public MFADevice withEnableDate(Date enableDate)
The date when the MFA device was enabled for the user.
- Parameters:
enableDate
- The date when the MFA device was enabled for the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-