|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.identitymanagement.model.MFADevice
public class MFADevice
The MFADevice
data type contains information about an MFA device.
This data type is used as a response element in the action ListMFADevices.
Constructor Summary | |
---|---|
MFADevice()
Default constructor for a new MFADevice object. |
|
MFADevice(String userName,
String serialNumber,
Date enableDate)
Constructs a new MFADevice object. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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 Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |