CopyableBuilder<RestoreServerRequest.Builder,RestoreServerRequest>
, SdkBuilder<RestoreServerRequest.Builder,RestoreServerRequest>
public static interface RestoreServerRequest.Builder extends CopyableBuilder<RestoreServerRequest.Builder,RestoreServerRequest>
Modifier and Type | Method | Description |
---|---|---|
RestoreServerRequest.Builder |
backupId(String backupId) |
The ID of the backup that you want to use to restore a server.
|
RestoreServerRequest.Builder |
instanceType(String instanceType) |
The type of the instance to create.
|
RestoreServerRequest.Builder |
keyPair(String keyPair) |
The name of the key pair to set on the new EC2 instance.
|
RestoreServerRequest.Builder |
serverName(String serverName) |
The name of the server that you want to restore.
|
copy
apply, build
RestoreServerRequest.Builder backupId(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.RestoreServerRequest.Builder serverName(String serverName)
The name of the server that you want to restore.
serverName
- The name of the server that you want to restore.RestoreServerRequest.Builder instanceType(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.RestoreServerRequest.Builder keyPair(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.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.