Class MFADevice
- All Implemented Interfaces:
Serializable
,Cloneable
Contains information about an MFA device.
This data type is used as a response element in the ListMFADevices action.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The date when the MFA device was enabled for the user.The serial number that uniquely identifies the MFA device.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.toString()
Returns a string representation of this object; useful for testing and debugging.withEnableDate
(Date enableDate) The date when the MFA device was enabled for the user.withSerialNumber
(String serialNumber) The serial number that uniquely identifies the MFA device.withUserName
(String userName) The user with whom the MFA device is associated.
-
Constructor Details
-
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
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 Details
-
setUserName
The user with whom the MFA device is associated.
- Parameters:
userName
- The user with whom the MFA device is associated.
-
getUserName
The user with whom the MFA device is associated.
- Returns:
- The user with whom the MFA device is associated.
-
withUserName
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
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
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
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
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
The date when the MFA device was enabled for the user.
- Returns:
- The date when the MFA device was enabled for the user.
-
withEnableDate
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-