|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.identitymanagement.model.EnableMFADeviceRequest
public class EnableMFADeviceRequest
Container for the parameters to the EnableMFADevice operation
.
Enables the specified MFA device and associates it with the specified User name. Once enabled, the MFA device is required for every subsequent login by the User name associated with the device.
AmazonIdentityManagement.enableMFADevice(EnableMFADeviceRequest)
Constructor Summary | |
---|---|
EnableMFADeviceRequest()
|
Method Summary | |
---|---|
String |
getAuthenticationCode1()
An authentication code emitted by the device. |
String |
getAuthenticationCode2()
A subsequent authentication code emitted by the device. |
String |
getSerialNumber()
The serial number that uniquely identifies the MFA device. |
String |
getUserName()
Name of the User for whom you want to enable the MFA device. |
void |
setAuthenticationCode1(String authenticationCode1)
An authentication code emitted by the device. |
void |
setAuthenticationCode2(String authenticationCode2)
A subsequent authentication code emitted by the device. |
void |
setSerialNumber(String serialNumber)
The serial number that uniquely identifies the MFA device. |
void |
setUserName(String userName)
Name of the User for whom you want to enable the MFA device. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
EnableMFADeviceRequest |
withAuthenticationCode1(String authenticationCode1)
An authentication code emitted by the device. |
EnableMFADeviceRequest |
withAuthenticationCode2(String authenticationCode2)
A subsequent authentication code emitted by the device. |
EnableMFADeviceRequest |
withSerialNumber(String serialNumber)
The serial number that uniquely identifies the MFA device. |
EnableMFADeviceRequest |
withUserName(String userName)
Name of the User for whom you want to enable the MFA device. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EnableMFADeviceRequest()
Method Detail |
---|
public String getUserName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
public void setUserName(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(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 String getSerialNumber()
Constraints:
Length: 9 - 48
Pattern: [\w]*
public void setSerialNumber(String serialNumber)
Constraints:
Length: 9 - 48
Pattern: [\w]*
serialNumber
- The serial number that uniquely identifies the MFA device.public EnableMFADeviceRequest withSerialNumber(String serialNumber)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 9 - 48
Pattern: [\w]*
serialNumber
- The serial number that uniquely identifies the MFA device.
public String getAuthenticationCode1()
Constraints:
Length: 6 - 6
Pattern: [\d]*
public void setAuthenticationCode1(String authenticationCode1)
Constraints:
Length: 6 - 6
Pattern: [\d]*
authenticationCode1
- An authentication code emitted by the device.public EnableMFADeviceRequest withAuthenticationCode1(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 String getAuthenticationCode2()
Constraints:
Length: 6 - 6
Pattern: [\d]*
public void setAuthenticationCode2(String authenticationCode2)
Constraints:
Length: 6 - 6
Pattern: [\d]*
authenticationCode2
- A subsequent authentication code emitted by the device.public EnableMFADeviceRequest withAuthenticationCode2(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 String toString()
toString
in class Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |