Interface RestoreServerRequest.Builder

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

        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.