Class VirtualMFADevice

    • Constructor Detail

      • VirtualMFADevice

        public VirtualMFADevice()
    • Method Detail

      • setSerialNumber

        public void setSerialNumber​(String serialNumber)

        The serial number associated with VirtualMFADevice.

        Parameters:
        serialNumber - The serial number associated with VirtualMFADevice.
      • getSerialNumber

        public String getSerialNumber()

        The serial number associated with VirtualMFADevice.

        Returns:
        The serial number associated with VirtualMFADevice.
      • withSerialNumber

        public VirtualMFADevice withSerialNumber​(String serialNumber)

        The serial number associated with VirtualMFADevice.

        Parameters:
        serialNumber - The serial number associated with VirtualMFADevice.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setBase32StringSeed

        public void setBase32StringSeed​(ByteBuffer base32StringSeed)

        The Base32 seed defined as specified in RFC3548. The Base32StringSeed is Base64-encoded.

        AWS SDK for Java performs a Base64 encoding on this field before sending this request to AWS service by default. Users of the SDK should not perform Base64 encoding on this field.

        Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.

        Parameters:
        base32StringSeed - The Base32 seed defined as specified in RFC3548. The Base32StringSeed is Base64-encoded.
      • getBase32StringSeed

        public ByteBuffer getBase32StringSeed()

        The Base32 seed defined as specified in RFC3548. The Base32StringSeed is Base64-encoded.

        ByteBuffers are stateful. Calling their get methods changes their position. We recommend using ByteBuffer.asReadOnlyBuffer() to create a read-only view of the buffer with an independent position, and calling get methods on this rather than directly on the returned ByteBuffer. Doing so will ensure that anyone else using the ByteBuffer will not be affected by changes to the position .

        Returns:
        The Base32 seed defined as specified in RFC3548. The Base32StringSeed is Base64-encoded.
      • withBase32StringSeed

        public VirtualMFADevice withBase32StringSeed​(ByteBuffer base32StringSeed)

        The Base32 seed defined as specified in RFC3548. The Base32StringSeed is Base64-encoded.

        Parameters:
        base32StringSeed - The Base32 seed defined as specified in RFC3548. The Base32StringSeed is Base64-encoded.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setQRCodePNG

        public void setQRCodePNG​(ByteBuffer qRCodePNG)

        A QR code PNG image that encodes otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String where $virtualMFADeviceName is one of the create call arguments, AccountName is the user name if set (otherwise, the account ID otherwise), and Base32String is the seed in Base32 format. The Base32String value is Base64-encoded.

        AWS SDK for Java performs a Base64 encoding on this field before sending this request to AWS service by default. Users of the SDK should not perform Base64 encoding on this field.

        Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.

        Parameters:
        qRCodePNG - A QR code PNG image that encodes otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String where $virtualMFADeviceName is one of the create call arguments, AccountName is the user name if set (otherwise, the account ID otherwise), and Base32String is the seed in Base32 format. The Base32String value is Base64-encoded.
      • getQRCodePNG

        public ByteBuffer getQRCodePNG()

        A QR code PNG image that encodes otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String where $virtualMFADeviceName is one of the create call arguments, AccountName is the user name if set (otherwise, the account ID otherwise), and Base32String is the seed in Base32 format. The Base32String value is Base64-encoded.

        ByteBuffers are stateful. Calling their get methods changes their position. We recommend using ByteBuffer.asReadOnlyBuffer() to create a read-only view of the buffer with an independent position, and calling get methods on this rather than directly on the returned ByteBuffer. Doing so will ensure that anyone else using the ByteBuffer will not be affected by changes to the position .

        Returns:
        A QR code PNG image that encodes otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String where $virtualMFADeviceName is one of the create call arguments, AccountName is the user name if set (otherwise, the account ID otherwise), and Base32String is the seed in Base32 format. The Base32String value is Base64-encoded.
      • withQRCodePNG

        public VirtualMFADevice withQRCodePNG​(ByteBuffer qRCodePNG)

        A QR code PNG image that encodes otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String where $virtualMFADeviceName is one of the create call arguments, AccountName is the user name if set (otherwise, the account ID otherwise), and Base32String is the seed in Base32 format. The Base32String value is Base64-encoded.

        Parameters:
        qRCodePNG - A QR code PNG image that encodes otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String where $virtualMFADeviceName is one of the create call arguments, AccountName is the user name if set (otherwise, the account ID otherwise), and Base32String is the seed in Base32 format. The Base32String value is Base64-encoded.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setUser

        public void setUser​(User user)
        Parameters:
        user -
      • getUser

        public User getUser()
        Returns:
      • withUser

        public VirtualMFADevice withUser​(User user)
        Parameters:
        user -
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setEnableDate

        public void setEnableDate​(Date enableDate)

        The date and time on which the virtual MFA device was enabled.

        Parameters:
        enableDate - The date and time on which the virtual MFA device was enabled.
      • getEnableDate

        public Date getEnableDate()

        The date and time on which the virtual MFA device was enabled.

        Returns:
        The date and time on which the virtual MFA device was enabled.
      • withEnableDate

        public VirtualMFADevice withEnableDate​(Date enableDate)

        The date and time on which the virtual MFA device was enabled.

        Parameters:
        enableDate - The date and time on which the virtual MFA device was enabled.
        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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object