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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RestoreServerRequest.BuilderbackupId(String backupId)The ID of the backup that you want to use to restore a server.RestoreServerRequest.BuilderinstanceType(String instanceType)The type of instance to restore.RestoreServerRequest.BuilderkeyPair(String keyPair)The name of the key pair to set on the new EC2 instance.RestoreServerRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)RestoreServerRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)RestoreServerRequest.BuilderserverName(String serverName)The name of the server that you want to restore.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.opsworkscm.model.OpsWorksCmRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
backupId
RestoreServerRequest.Builder backupId(String 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
RestoreServerRequest.Builder serverName(String 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
RestoreServerRequest.Builder instanceType(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 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
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.
- 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
RestoreServerRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-