com.amazonaws.services.identitymanagement.model

## クラス MFADevice

- java.lang.Object
- - com.amazonaws.services.identitymanagement.model.MFADevice

- すべての実装されたインタフェース:
    java.io.Serializable

      public class MFADevice
      extends java.lang.Object
      implements java.io.Serializable

  The `MFADevice` data type contains information about an MFA device.

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

  関連項目:
    直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `MFADevice()` Default constructor for a new MFADevice object.
    `MFADevice(java.lang.String userName, java.lang.String serialNumber, java.util.Date enableDate)` Constructs a new MFADevice object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.util.Date` | `getEnableDate()` The date when the MFA device was enabled for the user.
    `java.lang.String` | `getSerialNumber()` The serial number that uniquely identifies the MFA device.
    `java.lang.String` | `getUserName()` The user with whom the MFA device is associated.
    `int` | `hashCode()`
    `void` | `setEnableDate(java.util.Date enableDate)` The date when the MFA device was enabled for the user.
    `void` | `setSerialNumber(java.lang.String serialNumber)` The serial number that uniquely identifies the MFA device.
    `void` | `setUserName(java.lang.String userName)` The user with whom the MFA device is associated.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `MFADevice` | `withEnableDate(java.util.Date enableDate)` The date when the MFA device was enabled for the user.
    `MFADevice` | `withSerialNumber(java.lang.String serialNumber)` The serial number that uniquely identifies the MFA device.
    `MFADevice` | `withUserName(java.lang.String userName)` The user with whom the MFA device is associated.

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### 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(java.lang.String userName,
                   java.lang.String serialNumber,
                   java.util.Date enableDate)

      Constructs a new MFADevice object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `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.

  - ### メソッドの詳細

    - #### getUserName

          public java.lang.String getUserName()

      The user with whom the MFA device is associated.

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

      戻り値:
        The user with whom the MFA device is associated.

    - #### setUserName

          public void setUserName(java.lang.String userName)

      The user with whom the MFA device is associated.

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

      パラメータ:
        `userName` - The user with whom the MFA device is associated.

    - #### withUserName

          public MFADevice withUserName(java.lang.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+=,.@-]*

      パラメータ:
        `userName` - The user with whom the MFA device is associated.

    - #### getSerialNumber

          public java.lang.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+=/:,.@-]*

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

    - #### setSerialNumber

          public void setSerialNumber(java.lang.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+=/:,.@-]*

      パラメータ:
        `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(java.lang.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+=/:,.@-]*

      パラメータ:
        `serialNumber` - The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.

    - #### getEnableDate

          public java.util.Date getEnableDate()

      The date when the MFA device was enabled for the user.
      戻り値:
        The date when the MFA device was enabled for the user.

    - #### setEnableDate

          public void setEnableDate(java.util.Date enableDate)

      The date when the MFA device was enabled for the user.
      パラメータ:
        `enableDate` - The date when the MFA device was enabled for the user.

    - #### withEnableDate

          public MFADevice withEnableDate(java.util.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.

      パラメータ:
        `enableDate` - The date when the MFA device was enabled for the user.

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`