@Generated(value="software.amazon.awssdk:codegen") public class VirtualMFADevice extends Object implements ToCopyableBuilder<VirtualMFADevice.Builder,VirtualMFADevice>
Contains information about a virtual MFA device.
Modifier and Type | Class and Description |
---|---|
static interface |
VirtualMFADevice.Builder |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
base32StringSeed()
The Base32 seed defined as specified in RFC3548.
|
static VirtualMFADevice.Builder |
builder() |
Instant |
enableDate()
The date and time on which the virtual MFA device was enabled.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
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. |
static Class<? extends VirtualMFADevice.Builder> |
serializableBuilderClass() |
String |
serialNumber()
The serial number associated with
VirtualMFADevice . |
VirtualMFADevice.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
User |
user()
The IAM user associated with this virtual MFA device.
|
copy
public String serialNumber()
The serial number associated with VirtualMFADevice
.
VirtualMFADevice
.public ByteBuffer base32StringSeed()
The Base32 seed defined as specified in RFC3548. The
Base32StringSeed
is Base64-encoded.
This method will return a new read-only ByteBuffer
each time it is invoked.
Base32StringSeed
is Base64-encoded.public 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.
This method will return a new read-only ByteBuffer
each time it is invoked.
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.public User user()
The IAM user associated with this virtual MFA device.
public Instant enableDate()
The date and time on which the virtual MFA device was enabled.
public VirtualMFADevice.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<VirtualMFADevice.Builder,VirtualMFADevice>
public static VirtualMFADevice.Builder builder()
public static Class<? extends VirtualMFADevice.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.