public class DeactivateMFADeviceRequest extends AmazonWebServiceRequest implements Serializable
DeactivateMFADevice operation
.
Deactivates the specified MFA device and removes it from association with the user name for which it was originally enabled.
Constructor and Description |
---|
DeactivateMFADeviceRequest()
Default constructor for a new DeactivateMFADeviceRequest object.
|
DeactivateMFADeviceRequest(String userName,
String serialNumber)
Constructs a new DeactivateMFADeviceRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getSerialNumber()
The serial number that uniquely identifies the MFA device.
|
String |
getUserName()
Name of the user whose MFA device you want to deactivate.
|
int |
hashCode() |
void |
setSerialNumber(String serialNumber)
The serial number that uniquely identifies the MFA device.
|
void |
setUserName(String userName)
Name of the user whose MFA device you want to deactivate.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeactivateMFADeviceRequest |
withSerialNumber(String serialNumber)
The serial number that uniquely identifies the MFA device.
|
DeactivateMFADeviceRequest |
withUserName(String userName)
Name of the user whose MFA device you want to deactivate.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public DeactivateMFADeviceRequest()
public DeactivateMFADeviceRequest(String userName, String serialNumber)
userName
- Name of the user whose MFA device you want to
deactivate.serialNumber
- The serial number that uniquely identifies the MFA
device. For virtual MFA devices, the serial number is the device ARN.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 whose MFA device you want to deactivate.public DeactivateMFADeviceRequest 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 whose MFA device you want to deactivate.public String getSerialNumber()
Constraints:
Length: 9 - 256
Pattern: [\w+=/:,.@-]*
public void setSerialNumber(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 DeactivateMFADeviceRequest withSerialNumber(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 String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.