public class CreateVirtualMFADeviceRequest extends AmazonWebServiceRequest implements Serializable
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 the Using IAM guide.
For information about limits on the number of MFA devices you can create, see Limitations on Entities in the Using IAM guide.
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.
NOOP
Constructor and Description |
---|
CreateVirtualMFADeviceRequest() |
Modifier and Type | Method and Description |
---|---|
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.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getPath()
This parameter is optional. If it is not included, it defaults to a slash (/).
Constraints:
Length: 1 - 512
Pattern: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
This parameter is optional. If it is not included, it defaults to a slash (/).
public void setPath(String path)
This parameter is optional. If it is not included, it defaults to a slash (/).
Constraints:
Length: 1 - 512
Pattern: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
path
- The path for the virtual MFA device. For more information about paths,
see Identifiers
for IAM Entities in the Using IAM guide. This parameter is optional. If it is not included, it defaults to a slash (/).
public CreateVirtualMFADeviceRequest withPath(String path)
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: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
path
- The path for the virtual MFA device. For more information about paths,
see Identifiers
for IAM Entities in the Using IAM guide. This parameter is optional. If it is not included, it defaults to a slash (/).
public String getVirtualMFADeviceName()
Constraints:
Length: 1 -
Pattern: [\w+=,.@-]*
public void setVirtualMFADeviceName(String virtualMFADeviceName)
Constraints:
Length: 1 -
Pattern: [\w+=,.@-]*
virtualMFADeviceName
- The name of the virtual MFA device. Use with path to uniquely identify
a virtual MFA device.public CreateVirtualMFADeviceRequest withVirtualMFADeviceName(String virtualMFADeviceName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
Pattern: [\w+=,.@-]*
virtualMFADeviceName
- The name of the virtual MFA device. Use with path to uniquely identify
a virtual MFA device.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.