public class DeactivateMFADeviceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
DeactivateMFADevice operation
.
Deactivates the specified MFA device and removes it from association with the user name for which it was originally enabled.
For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in the Using IAM guide.
NOOP
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 |
---|---|
DeactivateMFADeviceRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getSerialNumber()
The serial number that uniquely identifies the MFA device.
|
String |
getUserName()
The 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)
The 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)
The name of the user whose MFA device you want to deactivate.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public DeactivateMFADeviceRequest()
public DeactivateMFADeviceRequest(String userName, String serialNumber)
userName
- The 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
- The 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
- The 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()
public DeactivateMFADeviceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.