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 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

      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 are m5.large, r5.xlarge, and r5.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 are m5.large, r5.xlarge, and r5.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.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.