public static interface RestoreServerRequest.Builder extends OpsWorksCmRequest.Builder, SdkPojo, CopyableBuilder<RestoreServerRequest.Builder,RestoreServerRequest>
Modifier and Type | Method and 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 |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
RestoreServerRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
RestoreServerRequest.Builder |
serverName(String serverName)
The name of the server that you want to restore.
|
build
overrideConfiguration
copy
applyMutation, 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.RestoreServerRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.RestoreServerRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.