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:
  • 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

      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 Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public MFADevice clone()
      Overrides:
      clone in class Object