com.amazonaws.services.s3.model

## クラス MultiFactorAuthentication

- java.lang.Object
- - com.amazonaws.services.s3.model.MultiFactorAuthentication

-     public class MultiFactorAuthentication
      extends java.lang.Object

  Contains Multi-Factor Authentication (MFA) information to be included in Amazon S3 requests, consisting of the serial number of the MFA device associated with your AWS account and the current, unique MFA token generated by that device.

  Each unique token generated by an MFA device can only be used in one request. It is not valid to reuse the same token in additional requests.

  For more information about uses of Multi-Factor Authentication in S3 operations, see `BucketVersioningConfiguration` and the explanation of the MFA Delete functionality.

  For more information on AWS Multi-Factor Authentication, including how to get a device and associate it with an AWS account, see http://aws.amazon.com/mfa

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

    コンストラクタ
    コンストラクタと説明
    `MultiFactorAuthentication(java.lang.String deviceSerialNumber, java.lang.String token)` Constructs a new `MultiFactorAuthentication` object for use in any Amazonn S3 operation that accepts requests with Multi-Factor Authentication (MFA).

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `java.lang.String` | `getDeviceSerialNumber()` Gets the Multi-Factor Authentication device serial number.
    `java.lang.String` | `getToken()` Gets the Multi-Factor Authentication token.
    `void` | `setDeviceSerialNumber(java.lang.String deviceSerialNumber)` Sets the serial number of the Multi-Factor Authentication device associated with the caller's AWS account.
    `void` | `setToken(java.lang.String token)` Sets the current unique Multi-Factor Authentication token generated by the device associated with the caller's AWS account.
    `MultiFactorAuthentication` | `withDeviceSerialNumber(java.lang.String deviceSerialNumber)` Sets the Multi-Factor Authentication device serial number to include with this request.
    `MultiFactorAuthentication` | `withToken(java.lang.String token)` Sets the current, unique Multi-Factor Authentication token generated by the device associated with the caller's AWS account.

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

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

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

    - #### MultiFactorAuthentication

          public MultiFactorAuthentication(java.lang.String deviceSerialNumber,
                                   java.lang.String token)

      Constructs a new `MultiFactorAuthentication` object for use in any Amazonn S3 operation that accepts requests with Multi-Factor Authentication (MFA).
      パラメータ:
        `deviceSerialNumber` - The serial number identifying the MFA device associated with the caller's AWS account.
        `token` - The current unique token generated by the MFA device.

  - ### メソッドの詳細

    - #### getDeviceSerialNumber

          public java.lang.String getDeviceSerialNumber()

      Gets the Multi-Factor Authentication device serial number.
      戻り値:
        The Multi-Factor Authentication device serial number.
      関連項目:
        `setDeviceSerialNumber(String)`, `withDeviceSerialNumber(String)`

    - #### setDeviceSerialNumber

          public void setDeviceSerialNumber(java.lang.String deviceSerialNumber)

      Sets the serial number of the Multi-Factor Authentication device associated with the caller's AWS account.
      パラメータ:
        `deviceSerialNumber` - The Multi-Factor Authentication device serial number for the device associated with the caller's AWS account.
      関連項目:
        `getDeviceSerialNumber()`, `withDeviceSerialNumber(String)`

    - #### withDeviceSerialNumber

          public MultiFactorAuthentication withDeviceSerialNumber(java.lang.String deviceSerialNumber)

      Sets the Multi-Factor Authentication device serial number to include with this request. Returns this `MultiFactorAuthentication`, enabling additional method calls to be chained together.
      パラメータ:
        `deviceSerialNumber` - The serial number of the Multi-Factor Authentication device associated with the caller's AWS account.
      戻り値:
        This `MultiFactorAuthentication`, enabling additional method calls to be chained together.
      関連項目:
        `getDeviceSerialNumber()`, `setDeviceSerialNumber(String)`

    - #### getToken

          public java.lang.String getToken()

      Gets the Multi-Factor Authentication token.
      戻り値:
        The Multi-Factor Authentication token.
      関連項目:
        `setToken(String)`, `withToken(String)`

    - #### setToken

          public void setToken(java.lang.String token)

      Sets the current unique Multi-Factor Authentication token generated by the device associated with the caller's AWS account.
      パラメータ:
        `token` - The current, unique Multi-Factor Authentication token generated by the device associated with the caller's AWS account.
      関連項目:
        `getToken()`, `withToken(String)`

    - #### withToken

          public MultiFactorAuthentication withToken(java.lang.String token)

      Sets the current, unique Multi-Factor Authentication token generated by the device associated with the caller's AWS account. Returns this `MultiFactorAuthentication`, enabling additional method calls to be chained together.
      パラメータ:
        `token` - The current, unique Multi-Factor Authentication token generated by the device associated with the caller's AWS account.
      戻り値:
        This `MultiFactorAuthentication`, enabling additional method calls to be chained together.
      関連項目:
        `getToken()`, `setToken(String)`