public class EnableMFADeviceRequest extends AmazonWebServiceRequest implements java.io.Serializable
EnableMFADevice operation.
Enables the specified MFA device and associates it with the specified user name. When enabled, the MFA device is required for every subsequent login by the user name associated with the device.
| コンストラクタと説明 |
|---|
EnableMFADeviceRequest()
Default constructor for a new EnableMFADeviceRequest object.
|
EnableMFADeviceRequest(java.lang.String userName,
java.lang.String serialNumber,
java.lang.String authenticationCode1,
java.lang.String authenticationCode2)
Constructs a new EnableMFADeviceRequest object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAuthenticationCode1()
An authentication code emitted by the device.
|
java.lang.String |
getAuthenticationCode2()
A subsequent authentication code emitted by the device.
|
java.lang.String |
getSerialNumber()
The serial number that uniquely identifies the MFA device.
|
java.lang.String |
getUserName()
Name of the user for whom you want to enable the MFA device.
|
int |
hashCode() |
void |
setAuthenticationCode1(java.lang.String authenticationCode1)
An authentication code emitted by the device.
|
void |
setAuthenticationCode2(java.lang.String authenticationCode2)
A subsequent authentication code emitted by the device.
|
void |
setSerialNumber(java.lang.String serialNumber)
The serial number that uniquely identifies the MFA device.
|
void |
setUserName(java.lang.String userName)
Name of the user for whom you want to enable the MFA device.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EnableMFADeviceRequest |
withAuthenticationCode1(java.lang.String authenticationCode1)
An authentication code emitted by the device.
|
EnableMFADeviceRequest |
withAuthenticationCode2(java.lang.String authenticationCode2)
A subsequent authentication code emitted by the device.
|
EnableMFADeviceRequest |
withSerialNumber(java.lang.String serialNumber)
The serial number that uniquely identifies the MFA device.
|
EnableMFADeviceRequest |
withUserName(java.lang.String userName)
Name of the user for whom you want to enable the MFA device.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic EnableMFADeviceRequest()
public EnableMFADeviceRequest(java.lang.String userName,
java.lang.String serialNumber,
java.lang.String authenticationCode1,
java.lang.String authenticationCode2)
userName - Name of the user for whom you want to enable the MFA
device.serialNumber - The serial number that uniquely identifies the MFA
device. For virtual MFA devices, the serial number is the device ARN.authenticationCode1 - An authentication code emitted by the
device.authenticationCode2 - A subsequent authentication code emitted by
the device.public java.lang.String getUserName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
public void setUserName(java.lang.String userName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
userName - Name of the user for whom you want to enable the MFA device.public EnableMFADeviceRequest withUserName(java.lang.String userName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
userName - Name of the user for whom you want to enable the MFA device.public java.lang.String getSerialNumber()
Constraints:
Length: 9 - 256
Pattern: [\w+=/:,.@-]*
public void setSerialNumber(java.lang.String serialNumber)
Constraints:
Length: 9 - 256
Pattern: [\w+=/:,.@-]*
serialNumber - The serial number that uniquely identifies the MFA device. For virtual
MFA devices, the serial number is the device ARN.public EnableMFADeviceRequest withSerialNumber(java.lang.String serialNumber)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 9 - 256
Pattern: [\w+=/:,.@-]*
serialNumber - The serial number that uniquely identifies the MFA device. For virtual
MFA devices, the serial number is the device ARN.public java.lang.String getAuthenticationCode1()
Constraints:
Length: 6 - 6
Pattern: [\d]*
public void setAuthenticationCode1(java.lang.String authenticationCode1)
Constraints:
Length: 6 - 6
Pattern: [\d]*
authenticationCode1 - An authentication code emitted by the device.public EnableMFADeviceRequest withAuthenticationCode1(java.lang.String authenticationCode1)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 6 - 6
Pattern: [\d]*
authenticationCode1 - An authentication code emitted by the device.public java.lang.String getAuthenticationCode2()
Constraints:
Length: 6 - 6
Pattern: [\d]*
public void setAuthenticationCode2(java.lang.String authenticationCode2)
Constraints:
Length: 6 - 6
Pattern: [\d]*
authenticationCode2 - A subsequent authentication code emitted by the device.public EnableMFADeviceRequest withAuthenticationCode2(java.lang.String authenticationCode2)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 6 - 6
Pattern: [\d]*
authenticationCode2 - A subsequent authentication code emitted by the device.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object