Interface RestoreServerRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<RestoreServerRequest.Builder,,RestoreServerRequest> OpsWorksCmRequest.Builder,SdkBuilder<RestoreServerRequest.Builder,,RestoreServerRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
RestoreServerRequest
public static interface RestoreServerRequest.Builder
extends OpsWorksCmRequest.Builder, SdkPojo, CopyableBuilder<RestoreServerRequest.Builder,RestoreServerRequest>
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the backup that you want to use to restore a server.instanceType(String instanceType) The type of instance to restore.The name of the key pair to set on the new EC2 instance.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.serverName(String serverName) The name of the server that you want to restore.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.opsworkscm.model.OpsWorksCmRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
backupId
The ID of the backup that you want to use to restore a server.
- Parameters:
backupId- The ID of the backup that you want to use to restore a server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverName
The name of the server that you want to restore.
- Parameters:
serverName- The name of the server that you want to restore.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 arem5.large,r5.xlarge, andr5.2xlarge. If you do not specify this parameter, RestoreServer uses the instance type from the specified backup.- Parameters:
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 arem5.large,r5.xlarge, andr5.2xlarge. If you do not specify this parameter, RestoreServer uses the instance type from the specified backup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
RestoreServerRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
RestoreServerRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-