Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.identitymanagement.model
Class CreateVirtualMFADeviceRequest

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

public class CreateVirtualMFADeviceRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the CreateVirtualMFADevice operation.

Creates a new virtual MFA device for the AWS account. After creating the virtual MFA, use EnableMFADevice to attach the MFA device to an IAM user. For more information about creating and working with virtual MFA devices, go to Using a Virtual MFA Device in Using AWS Identity and Access Management .

For information about limits on the number of MFA devices you can create, see Limitations on Entities in Using AWS Identity and Access Management .

IMPORTANT:The seed information contained in the QR code and the Base32 string should be treated like any other secret access information, such as your AWS access keys or your passwords. After you provision your virtual device, you should ensure that the information is destroyed following secure procedures.

See Also:
AmazonIdentityManagement.createVirtualMFADevice(CreateVirtualMFADeviceRequest), Serialized Form

Constructor Summary
CreateVirtualMFADeviceRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getPath()
          The path for the virtual MFA device.
 String getVirtualMFADeviceName()
          The name of the virtual MFA device.
 int hashCode()
           
 void setPath(String path)
          The path for the virtual MFA device.
 void setVirtualMFADeviceName(String virtualMFADeviceName)
          The name of the virtual MFA device.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateVirtualMFADeviceRequest withPath(String path)
          The path for the virtual MFA device.
 CreateVirtualMFADeviceRequest withVirtualMFADeviceName(String virtualMFADeviceName)
          The name of the virtual MFA device.
 
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

CreateVirtualMFADeviceRequest

public CreateVirtualMFADeviceRequest()
Method Detail

getPath

public String getPath()
The path for the virtual MFA device. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

This parameter is optional. If it is not included, it defaults to a slash (/).

Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)

Returns:
The path for the virtual MFA device. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

This parameter is optional. If it is not included, it defaults to a slash (/).


setPath

public void setPath(String path)
The path for the virtual MFA device. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

This parameter is optional. If it is not included, it defaults to a slash (/).

Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)

Parameters:
path - The path for the virtual MFA device. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

This parameter is optional. If it is not included, it defaults to a slash (/).


withPath

public CreateVirtualMFADeviceRequest withPath(String path)
The path for the virtual MFA device. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

This parameter is optional. If it is not included, it defaults to a slash (/).

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

Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)

Parameters:
path - The path for the virtual MFA device. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

This parameter is optional. If it is not included, it defaults to a slash (/).

Returns:
A reference to this updated object so that method calls can be chained together.

getVirtualMFADeviceName

public String getVirtualMFADeviceName()
The name of the virtual MFA device. Use with path to uniquely identify a virtual MFA device.

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

Returns:
The name of the virtual MFA device. Use with path to uniquely identify a virtual MFA device.

setVirtualMFADeviceName

public void setVirtualMFADeviceName(String virtualMFADeviceName)
The name of the virtual MFA device. Use with path to uniquely identify a virtual MFA device.

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

Parameters:
virtualMFADeviceName - The name of the virtual MFA device. Use with path to uniquely identify a virtual MFA device.

withVirtualMFADeviceName

public CreateVirtualMFADeviceRequest withVirtualMFADeviceName(String virtualMFADeviceName)
The name of the virtual MFA device. Use with path to uniquely identify a virtual MFA device.

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

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

Parameters:
virtualMFADeviceName - The name of the virtual MFA device. Use with path to uniquely identify a virtual MFA device.
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.