Cloneable
, ReadLimitInfo
, ToCopyableBuilder<EnableMFADeviceRequest.Builder,EnableMFADeviceRequest>
@Generated("software.amazon.awssdk:codegen") public class EnableMFADeviceRequest extends AmazonWebServiceRequest implements ToCopyableBuilder<EnableMFADeviceRequest.Builder,EnableMFADeviceRequest>
Modifier and Type | Class | Description |
---|---|---|
static interface |
EnableMFADeviceRequest.Builder |
NOOP
Modifier and Type | Method | Description |
---|---|---|
String |
authenticationCode1() |
An authentication code emitted by the device.
|
String |
authenticationCode2() |
A subsequent authentication code emitted by the device.
|
static EnableMFADeviceRequest.Builder |
builder() |
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
static Class<? extends EnableMFADeviceRequest.Builder> |
serializableBuilderClass() |
|
String |
serialNumber() |
The serial number that uniquely identifies the MFA device.
|
EnableMFADeviceRequest.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
|
String |
userName() |
The name of the IAM user for whom you want to enable the MFA device.
|
clone, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout
public String userName()
The name of the IAM user for whom you want to enable the MFA device.
This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
public String serialNumber()
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@:/-
This parameter allows (per its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@:/-
public String authenticationCode1()
An authentication code emitted by the device.
The format for this parameter is a string of 6 digits.
Submit your request immediately after generating the authentication codes. If you generate the codes and then wait too long to submit the request, the MFA device successfully associates with the user but the MFA device becomes out of sync. This happens because time-based one-time passwords (TOTP) expire after a short period of time. If this happens, you can resync the device.
The format for this parameter is a string of 6 digits.
Submit your request immediately after generating the authentication codes. If you generate the codes and then wait too long to submit the request, the MFA device successfully associates with the user but the MFA device becomes out of sync. This happens because time-based one-time passwords (TOTP) expire after a short period of time. If this happens, you can resync the device.
public String authenticationCode2()
A subsequent authentication code emitted by the device.
The format for this parameter is a string of 6 digits.
Submit your request immediately after generating the authentication codes. If you generate the codes and then wait too long to submit the request, the MFA device successfully associates with the user but the MFA device becomes out of sync. This happens because time-based one-time passwords (TOTP) expire after a short period of time. If this happens, you can resync the device.
The format for this parameter is a string of 6 digits.
Submit your request immediately after generating the authentication codes. If you generate the codes and then wait too long to submit the request, the MFA device successfully associates with the user but the MFA device becomes out of sync. This happens because time-based one-time passwords (TOTP) expire after a short period of time. If this happens, you can resync the device.
public EnableMFADeviceRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<EnableMFADeviceRequest.Builder,EnableMFADeviceRequest>
public static EnableMFADeviceRequest.Builder builder()
public static Class<? extends EnableMFADeviceRequest.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.