Interface VirtualMFADevice.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<VirtualMFADevice.Builder,VirtualMFADevice>,SdkBuilder<VirtualMFADevice.Builder,VirtualMFADevice>,SdkPojo
- Enclosing class:
- VirtualMFADevice
public static interface VirtualMFADevice.Builder extends SdkPojo, CopyableBuilder<VirtualMFADevice.Builder,VirtualMFADevice>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description VirtualMFADevice.Builderbase32StringSeed(SdkBytes base32StringSeed)The base32 seed defined as specified in RFC3548.VirtualMFADevice.BuilderenableDate(Instant enableDate)The date and time on which the virtual MFA device was enabled.VirtualMFADevice.BuilderqrCodePNG(SdkBytes qrCodePNG)A QR code PNG image that encodesotpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32Stringwhere$virtualMFADeviceNameis one of the create call arguments.VirtualMFADevice.BuilderserialNumber(String serialNumber)The serial number associated withVirtualMFADevice.VirtualMFADevice.Buildertags(Collection<Tag> tags)A list of tags that are attached to the virtual MFA device.VirtualMFADevice.Buildertags(Consumer<Tag.Builder>... tags)A list of tags that are attached to the virtual MFA device.VirtualMFADevice.Buildertags(Tag... tags)A list of tags that are attached to the virtual MFA device.default VirtualMFADevice.Builderuser(Consumer<User.Builder> user)The IAM user associated with this virtual MFA device.VirtualMFADevice.Builderuser(User user)The IAM user associated with this virtual MFA device.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
serialNumber
VirtualMFADevice.Builder serialNumber(String serialNumber)
The serial number associated with
VirtualMFADevice.- Parameters:
serialNumber- The serial number associated withVirtualMFADevice.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
base32StringSeed
VirtualMFADevice.Builder base32StringSeed(SdkBytes base32StringSeed)
The base32 seed defined as specified in RFC3548. The
Base32StringSeedis base32-encoded.- Parameters:
base32StringSeed- The base32 seed defined as specified in RFC3548. TheBase32StringSeedis base32-encoded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
qrCodePNG
VirtualMFADevice.Builder qrCodePNG(SdkBytes qrCodePNG)
A QR code PNG image that encodes
otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32Stringwhere$virtualMFADeviceNameis one of the create call arguments.AccountNameis the user name if set (otherwise, the account ID otherwise), andBase32Stringis the seed in base32 format. TheBase32Stringvalue is base64-encoded.- Parameters:
qrCodePNG- A QR code PNG image that encodesotpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32Stringwhere$virtualMFADeviceNameis one of the create call arguments.AccountNameis the user name if set (otherwise, the account ID otherwise), andBase32Stringis the seed in base32 format. TheBase32Stringvalue is base64-encoded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
user
VirtualMFADevice.Builder user(User user)
The IAM user associated with this virtual MFA device.
- Parameters:
user- The IAM user associated with this virtual MFA device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
user
default VirtualMFADevice.Builder user(Consumer<User.Builder> user)
The IAM user associated with this virtual MFA device.
This is a convenience method that creates an instance of theUser.Builderavoiding the need to create one manually viaUser.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed touser(User).- Parameters:
user- a consumer that will call methods onUser.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
user(User)
-
enableDate
VirtualMFADevice.Builder enableDate(Instant 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.
-
tags
VirtualMFADevice.Builder tags(Collection<Tag> tags)
A list of tags that are attached to the virtual MFA device. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
- Parameters:
tags- A list of tags that are attached to the virtual MFA device. For more information about tagging, see Tagging IAM resources in the IAM User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
VirtualMFADevice.Builder tags(Tag... tags)
A list of tags that are attached to the virtual MFA device. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
- Parameters:
tags- A list of tags that are attached to the virtual MFA device. For more information about tagging, see Tagging IAM resources in the IAM User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
VirtualMFADevice.Builder tags(Consumer<Tag.Builder>... tags)
A list of tags that are attached to the virtual MFA device. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
-