com.amazonaws.services.identitymanagement.model

## クラス EnableMFADeviceRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.identitymanagement.model.EnableMFADeviceRequest

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

      public class EnableMFADeviceRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `EnableMFADevice operation`.

  Enables the specified MFA device and associates it with the specified user name. When enabled, the MFA device is required for every subsequent login by the user name associated with the device.

  関連項目:
    `AmazonIdentityManagement.enableMFADevice(EnableMFADeviceRequest)`, 直列化された形式

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

    コンストラクタ
    コンストラクタと説明
    `EnableMFADeviceRequest()` Default constructor for a new EnableMFADeviceRequest object.
    `EnableMFADeviceRequest(java.lang.String userName, java.lang.String serialNumber, java.lang.String authenticationCode1, java.lang.String authenticationCode2)` Constructs a new EnableMFADeviceRequest object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getAuthenticationCode1()` An authentication code emitted by the device.
    `java.lang.String` | `getAuthenticationCode2()` A subsequent authentication code emitted by the device.
    `java.lang.String` | `getSerialNumber()` The serial number that uniquely identifies the MFA device.
    `java.lang.String` | `getUserName()` Name of the user for whom you want to enable the MFA device.
    `int` | `hashCode()`
    `void` | `setAuthenticationCode1(java.lang.String authenticationCode1)` An authentication code emitted by the device.
    `void` | `setAuthenticationCode2(java.lang.String authenticationCode2)` A subsequent authentication code emitted by the device.
    `void` | `setSerialNumber(java.lang.String serialNumber)` The serial number that uniquely identifies the MFA device.
    `void` | `setUserName(java.lang.String userName)` Name of the user for whom you want to enable the MFA device.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `EnableMFADeviceRequest` | `withAuthenticationCode1(java.lang.String authenticationCode1)` An authentication code emitted by the device.
    `EnableMFADeviceRequest` | `withAuthenticationCode2(java.lang.String authenticationCode2)` A subsequent authentication code emitted by the device.
    `EnableMFADeviceRequest` | `withSerialNumber(java.lang.String serialNumber)` The serial number that uniquely identifies the MFA device.
    `EnableMFADeviceRequest` | `withUserName(java.lang.String userName)` Name of the user for whom you want to enable the MFA device.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### EnableMFADeviceRequest

          public EnableMFADeviceRequest()

      Default constructor for a new EnableMFADeviceRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

    - #### EnableMFADeviceRequest

          public EnableMFADeviceRequest(java.lang.String userName,
                                java.lang.String serialNumber,
                                java.lang.String authenticationCode1,
                                java.lang.String authenticationCode2)

      Constructs a new EnableMFADeviceRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `userName` - Name of the user for whom you want to enable the MFA device.
        `serialNumber` - The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
        `authenticationCode1` - An authentication code emitted by the device.
        `authenticationCode2` - A subsequent authentication code emitted by the device.

  - ### メソッドの詳細

    - #### getUserName

          public java.lang.String getUserName()

      Name of the user for whom you want to enable the MFA device.

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

      戻り値:
        Name of the user for whom you want to enable the MFA device.

    - #### setUserName

          public void setUserName(java.lang.String userName)

      Name of the user for whom you want to enable the MFA device.

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

      パラメータ:
        `userName` - Name of the user for whom you want to enable the MFA device.

    - #### withUserName

          public EnableMFADeviceRequest withUserName(java.lang.String userName)

      Name of the user for whom you want to enable the MFA device.

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

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

      パラメータ:
        `userName` - Name of the user for whom you want to enable the MFA device.

    - #### 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 EnableMFADeviceRequest 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.

    - #### getAuthenticationCode1

          public java.lang.String getAuthenticationCode1()

      An authentication code emitted by the device.

      Constraints:
      Length: 6 - 6
      Pattern: [\d]*

      戻り値:
        An authentication code emitted by the device.

    - #### setAuthenticationCode1

          public void setAuthenticationCode1(java.lang.String authenticationCode1)

      An authentication code emitted by the device.

      Constraints:
      Length: 6 - 6
      Pattern: [\d]*

      パラメータ:
        `authenticationCode1` - An authentication code emitted by the device.

    - #### withAuthenticationCode1

          public EnableMFADeviceRequest withAuthenticationCode1(java.lang.String authenticationCode1)

      An authentication code emitted by the device.

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

      Constraints:
      Length: 6 - 6
      Pattern: [\d]*

      パラメータ:
        `authenticationCode1` - An authentication code emitted by the device.

    - #### getAuthenticationCode2

          public java.lang.String getAuthenticationCode2()

      A subsequent authentication code emitted by the device.

      Constraints:
      Length: 6 - 6
      Pattern: [\d]*

      戻り値:
        A subsequent authentication code emitted by the device.

    - #### setAuthenticationCode2

          public void setAuthenticationCode2(java.lang.String authenticationCode2)

      A subsequent authentication code emitted by the device.

      Constraints:
      Length: 6 - 6
      Pattern: [\d]*

      パラメータ:
        `authenticationCode2` - A subsequent authentication code emitted by the device.

    - #### withAuthenticationCode2

          public EnableMFADeviceRequest withAuthenticationCode2(java.lang.String authenticationCode2)

      A subsequent authentication code emitted by the device.

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

      Constraints:
      Length: 6 - 6
      Pattern: [\d]*

      パラメータ:
        `authenticationCode2` - A subsequent authentication code emitted by the device.

    - #### 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`