Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.identitymanagement.model
Class DeactivateMFADeviceRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.identitymanagement.model.DeactivateMFADeviceRequest
All Implemented Interfaces:
Serializable

public class DeactivateMFADeviceRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the DeactivateMFADevice operation.

Deactivates the specified MFA device and removes it from association with the user name for which it was originally enabled.

See Also:
AmazonIdentityManagement.deactivateMFADevice(DeactivateMFADeviceRequest), Serialized Form

Constructor Summary
DeactivateMFADeviceRequest()
          Default constructor for a new DeactivateMFADeviceRequest object.
DeactivateMFADeviceRequest(String userName, String serialNumber)
          Constructs a new DeactivateMFADeviceRequest object.
 
Method Summary
 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeactivateMFADeviceRequest

public DeactivateMFADeviceRequest()
Default constructor for a new DeactivateMFADeviceRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


DeactivateMFADeviceRequest

public DeactivateMFADeviceRequest(String userName,
                                  String serialNumber)
Constructs a new DeactivateMFADeviceRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
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.
Method Detail

getUserName

public String getUserName()
Name of the user whose MFA device you want to deactivate.

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Returns:
Name of the user whose MFA device you want to deactivate.

setUserName

public void setUserName(String userName)
Name of the user whose MFA device you want to deactivate.

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Parameters:
userName - Name of the user whose MFA device you want to deactivate.

withUserName

public DeactivateMFADeviceRequest withUserName(String userName)
Name of the user whose MFA device you want to deactivate.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Parameters:
userName - Name of the user whose MFA device you want to deactivate.
Returns:
A reference to this updated object so that method calls can be chained together.

getSerialNumber

public String getSerialNumber()
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.

Constraints:
Length: 9 - 256
Pattern: [\w+=/:,.@-]*

Returns:
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.

setSerialNumber

public void setSerialNumber(String serialNumber)
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.

Constraints:
Length: 9 - 256
Pattern: [\w+=/:,.@-]*

Parameters:
serialNumber - The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.

withSerialNumber

public DeactivateMFADeviceRequest withSerialNumber(String serialNumber)
The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 9 - 256
Pattern: [\w+=/:,.@-]*

Parameters:
serialNumber - The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.