@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RestoreServerRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
RestoreServerRequest() |
Modifier and Type | Method and Description |
---|---|
RestoreServerRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getBackupId()
The ID of the backup that you want to use to restore a server.
|
String |
getInstanceType()
The type of the instance to create.
|
String |
getKeyPair()
The name of the key pair to set on the new EC2 instance.
|
String |
getServerName()
The name of the server that you want to restore.
|
int |
hashCode() |
void |
setBackupId(String backupId)
The ID of the backup that you want to use to restore a server.
|
void |
setInstanceType(String instanceType)
The type of the instance to create.
|
void |
setKeyPair(String keyPair)
The name of the key pair to set on the new EC2 instance.
|
void |
setServerName(String serverName)
The name of the server that you want to restore.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
RestoreServerRequest |
withBackupId(String backupId)
The ID of the backup that you want to use to restore a server.
|
RestoreServerRequest |
withInstanceType(String instanceType)
The type of the instance to create.
|
RestoreServerRequest |
withKeyPair(String keyPair)
The name of the key pair to set on the new EC2 instance.
|
RestoreServerRequest |
withServerName(String serverName)
The name of the server that you want to restore.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setBackupId(String backupId)
The ID of the backup that you want to use to restore a server.
backupId
- The ID of the backup that you want to use to restore a server.public String getBackupId()
The ID of the backup that you want to use to restore a server.
public RestoreServerRequest withBackupId(String backupId)
The ID of the backup that you want to use to restore a server.
backupId
- The ID of the backup that you want to use to restore a server.public void setServerName(String serverName)
The name of the server that you want to restore.
serverName
- The name of the server that you want to restore.public String getServerName()
The name of the server that you want to restore.
public RestoreServerRequest withServerName(String serverName)
The name of the server that you want to restore.
serverName
- The name of the server that you want to restore.public void setInstanceType(String instanceType)
The type of the instance to create. Valid values must be specified in the following format:
^([cm][34]|t2).*
For example, m4.large
. Valid values are t2.medium
,
m4.large
, and m4.2xlarge
. If you do not specify this parameter, RestoreServer uses the
instance type from the specified backup.
instanceType
- The type of the instance to create. Valid values must be specified in the following format:
^([cm][34]|t2).*
For example, m4.large
. Valid values are t2.medium
,
m4.large
, and m4.2xlarge
. If you do not specify this parameter, RestoreServer
uses the instance type from the specified backup.public String getInstanceType()
The type of the instance to create. Valid values must be specified in the following format:
^([cm][34]|t2).*
For example, m4.large
. Valid values are t2.medium
,
m4.large
, and m4.2xlarge
. If you do not specify this parameter, RestoreServer uses the
instance type from the specified backup.
^([cm][34]|t2).*
For example, m4.large
. Valid values are t2.medium
, m4.large
, and m4.2xlarge
. If you do not specify this parameter, RestoreServer
uses the instance type from the specified backup.public RestoreServerRequest withInstanceType(String instanceType)
The type of the instance to create. Valid values must be specified in the following format:
^([cm][34]|t2).*
For example, m4.large
. Valid values are t2.medium
,
m4.large
, and m4.2xlarge
. If you do not specify this parameter, RestoreServer uses the
instance type from the specified backup.
instanceType
- The type of the instance to create. Valid values must be specified in the following format:
^([cm][34]|t2).*
For example, m4.large
. Valid values are t2.medium
,
m4.large
, and m4.2xlarge
. If you do not specify this parameter, RestoreServer
uses the instance type from the specified backup.public void setKeyPair(String keyPair)
The name of the key pair to set on the new EC2 instance. This can be helpful if the administrator no longer has the SSH key.
keyPair
- The name of the key pair to set on the new EC2 instance. This can be helpful if the administrator no
longer has the SSH key.public String getKeyPair()
The name of the key pair to set on the new EC2 instance. This can be helpful if the administrator no longer has the SSH key.
public RestoreServerRequest withKeyPair(String keyPair)
The name of the key pair to set on the new EC2 instance. This can be helpful if the administrator no longer has the SSH key.
keyPair
- The name of the key pair to set on the new EC2 instance. This can be helpful if the administrator no
longer has the SSH key.public String toString()
toString
in class Object
Object.toString()
public RestoreServerRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.