Class RestoreServerRequest

    • Method Detail

      • backupId

        public final String backupId()

        The ID of the backup that you want to use to restore a server.

        Returns:
        The ID of the backup that you want to use to restore a server.
      • serverName

        public final String serverName()

        The name of the server that you want to restore.

        Returns:
        The name of the server that you want to restore.
      • instanceType

        public final 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.

        Returns:
        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.
      • keyPair

        public final 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.

        Returns:
        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.
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object