Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.identitymanagement.model
Class MFADevice

java.lang.Object
  extended by com.amazonaws.services.identitymanagement.model.MFADevice
All Implemented Interfaces:
Serializable

public class MFADevice
extends Object
implements Serializable

The MFADevice data type contains information about an MFA device.

This data type is used as a response element in the action ListMFADevices.

See Also:
Serialized Form

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

MFADevice

public MFADevice()
Default constructor for a new MFADevice object. Callers should use the setter or fluent setter (with...) methods to initialize this 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

getUserName

public String getUserName()
The user with whom the MFA device is associated.

Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*

Returns:
The user with whom the MFA device is associated.

setUserName

public void setUserName(String userName)
The user with whom the MFA device is associated.

Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*

Parameters:
userName - The user with whom the MFA device is associated.

withUserName

public MFADevice withUserName(String userName)
The user with whom the MFA device is associated.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*

Parameters:
userName - The user with whom the MFA device is associated.
Returns:
A reference to this updated object so that method calls can be chained together.

getSerialNumber

public String getSerialNumber()
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.

Constraints:
Length: 9 - 256
Pattern: [\w+=/:,.@-]*

Returns:
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.

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.

Constraints:
Length: 9 - 256
Pattern: [\w+=/:,.@-]*

Parameters:
serialNumber - 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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 9 - 256
Pattern: [\w+=/:,.@-]*

Parameters:
serialNumber - The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
Returns:
A reference to this updated object so that method calls can be chained together.

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.

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.

withEnableDate

public MFADevice withEnableDate(Date enableDate)
The date when the MFA device was enabled for the user.

Returns a reference to this object so that method calls can be chained together.

Parameters:
enableDate - The date when the MFA device was enabled for the user.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.