@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 instance to restore.
|
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 instance to restore.
|
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.
|
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 instance to restore.
|
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 instance to restore. Valid values must be specified in the following format:
^([cm][34]|t2).*
For example, m5.large
. Valid values are m5.large
,
r5.xlarge
, and r5.2xlarge
. If you do not specify this parameter, RestoreServer uses the
instance type from the specified backup.
instanceType
- The type of instance to restore. Valid values must be specified in the following format:
^([cm][34]|t2).*
For example, m5.large
. Valid values are m5.large
,
r5.xlarge
, and r5.2xlarge
. If you do not specify this parameter, RestoreServer
uses the instance type from the specified backup.public String getInstanceType()
The type of instance to restore. Valid values must be specified in the following format:
^([cm][34]|t2).*
For example, m5.large
. Valid values are m5.large
,
r5.xlarge
, and r5.2xlarge
. If you do not specify this parameter, RestoreServer uses the
instance type from the specified backup.
^([cm][34]|t2).*
For example, m5.large
. Valid values are m5.large
,
r5.xlarge
, and r5.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 instance to restore. Valid values must be specified in the following format:
^([cm][34]|t2).*
For example, m5.large
. Valid values are m5.large
,
r5.xlarge
, and r5.2xlarge
. If you do not specify this parameter, RestoreServer uses the
instance type from the specified backup.
instanceType
- The type of instance to restore. Valid values must be specified in the following format:
^([cm][34]|t2).*
For example, m5.large
. Valid values are m5.large
,
r5.xlarge
, and r5.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()