com.amazonaws.services.redshift.model

## クラス RestoreFromClusterSnapshotRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.redshift.model.RestoreFromClusterSnapshotRequest

- すべての実装されたインタフェース:
    java.io.Serializable

      public class RestoreFromClusterSnapshotRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `RestoreFromClusterSnapshot operation`.

  Creates a new cluster from a snapshot. Amazon Redshift creates the resulting cluster with the same configuration as the original cluster from which the snapshot was created, except that the new cluster is created with the default cluster security and parameter group. After Amazon Redshift creates the cluster you can use the ModifyCluster API to associate a different security group and different parameter group with the restored cluster.

  If a snapshot is taken of a cluster in VPC, you can restore it only in VPC. In this case, you must provide a cluster subnet group where you want the cluster restored. If snapshot is taken of a cluster outside VPC, then you can restore it only outside VPC.

  For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Management Guide .

  関連項目:
    `AmazonRedshift.restoreFromClusterSnapshot(RestoreFromClusterSnapshotRequest)`, 直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `RestoreFromClusterSnapshotRequest()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.Boolean` | `getAllowVersionUpgrade()` If `true`, upgrades can be applied during the maintenance window to the Amazon Redshift engine that is running on the cluster.
    `java.lang.String` | `getAvailabilityZone()` The Amazon EC2 Availability Zone in which to restore the cluster.
    `java.lang.String` | `getClusterIdentifier()` The identifier of the cluster that will be created from restoring the snapshot.
    `java.lang.String` | `getClusterSubnetGroupName()` The name of the subnet group where you want to cluster restored.
    `java.lang.String` | `getOwnerAccount()` The AWS customer account used to create or copy the snapshot.
    `java.lang.Integer` | `getPort()` The port number on which the cluster accepts connections.
    `java.lang.Boolean` | `getPubliclyAccessible()` If `true`, the cluster can be accessed from a public network.
    `java.lang.String` | `getSnapshotIdentifier()` The name of the snapshot from which to create the new cluster.
    `int` | `hashCode()`
    `java.lang.Boolean` | `isAllowVersionUpgrade()` If `true`, upgrades can be applied during the maintenance window to the Amazon Redshift engine that is running on the cluster.
    `java.lang.Boolean` | `isPubliclyAccessible()` If `true`, the cluster can be accessed from a public network.
    `void` | `setAllowVersionUpgrade(java.lang.Boolean allowVersionUpgrade)` If `true`, upgrades can be applied during the maintenance window to the Amazon Redshift engine that is running on the cluster.
    `void` | `setAvailabilityZone(java.lang.String availabilityZone)` The Amazon EC2 Availability Zone in which to restore the cluster.
    `void` | `setClusterIdentifier(java.lang.String clusterIdentifier)` The identifier of the cluster that will be created from restoring the snapshot.
    `void` | `setClusterSubnetGroupName(java.lang.String clusterSubnetGroupName)` The name of the subnet group where you want to cluster restored.
    `void` | `setOwnerAccount(java.lang.String ownerAccount)` The AWS customer account used to create or copy the snapshot.
    `void` | `setPort(java.lang.Integer port)` The port number on which the cluster accepts connections.
    `void` | `setPubliclyAccessible(java.lang.Boolean publiclyAccessible)` If `true`, the cluster can be accessed from a public network.
    `void` | `setSnapshotIdentifier(java.lang.String snapshotIdentifier)` The name of the snapshot from which to create the new cluster.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `RestoreFromClusterSnapshotRequest` | `withAllowVersionUpgrade(java.lang.Boolean allowVersionUpgrade)` If `true`, upgrades can be applied during the maintenance window to the Amazon Redshift engine that is running on the cluster.
    `RestoreFromClusterSnapshotRequest` | `withAvailabilityZone(java.lang.String availabilityZone)` The Amazon EC2 Availability Zone in which to restore the cluster.
    `RestoreFromClusterSnapshotRequest` | `withClusterIdentifier(java.lang.String clusterIdentifier)` The identifier of the cluster that will be created from restoring the snapshot.
    `RestoreFromClusterSnapshotRequest` | `withClusterSubnetGroupName(java.lang.String clusterSubnetGroupName)` The name of the subnet group where you want to cluster restored.
    `RestoreFromClusterSnapshotRequest` | `withOwnerAccount(java.lang.String ownerAccount)` The AWS customer account used to create or copy the snapshot.
    `RestoreFromClusterSnapshotRequest` | `withPort(java.lang.Integer port)` The port number on which the cluster accepts connections.
    `RestoreFromClusterSnapshotRequest` | `withPubliclyAccessible(java.lang.Boolean publiclyAccessible)` If `true`, the cluster can be accessed from a public network.
    `RestoreFromClusterSnapshotRequest` | `withSnapshotIdentifier(java.lang.String snapshotIdentifier)` The name of the snapshot from which to create the new cluster.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### RestoreFromClusterSnapshotRequest

          public RestoreFromClusterSnapshotRequest()

  - ### メソッドの詳細

    - #### getClusterIdentifier

          public java.lang.String getClusterIdentifier()

      The identifier of the cluster that will be created from restoring the snapshot.

      Constraints:

      - Must contain from 1 to 63 alphanumeric characters or hyphens.
      - Alphabetic characters must be lowercase.
      - First character must be a letter.
      - Cannot end with a hyphen or contain two consecutive hyphens.
      - Must be unique for all clusters within an AWS account.
      戻り値:
        The identifier of the cluster that will be created from restoring the snapshot.

        Constraints:

        - Must contain from 1 to 63 alphanumeric characters or hyphens.
        - Alphabetic characters must be lowercase.
        - First character must be a letter.
        - Cannot end with a hyphen or contain two consecutive hyphens.
        - Must be unique for all clusters within an AWS account.

    - #### setClusterIdentifier

          public void setClusterIdentifier(java.lang.String clusterIdentifier)

      The identifier of the cluster that will be created from restoring the snapshot.

      Constraints:

      - Must contain from 1 to 63 alphanumeric characters or hyphens.
      - Alphabetic characters must be lowercase.
      - First character must be a letter.
      - Cannot end with a hyphen or contain two consecutive hyphens.
      - Must be unique for all clusters within an AWS account.
      パラメータ:
        `clusterIdentifier` - The identifier of the cluster that will be created from restoring the snapshot.

        Constraints:

        - Must contain from 1 to 63 alphanumeric characters or hyphens.
        - Alphabetic characters must be lowercase.
        - First character must be a letter.
        - Cannot end with a hyphen or contain two consecutive hyphens.
        - Must be unique for all clusters within an AWS account.

    - #### withClusterIdentifier

          public RestoreFromClusterSnapshotRequest withClusterIdentifier(java.lang.String clusterIdentifier)

      The identifier of the cluster that will be created from restoring the snapshot.

      Constraints:

      - Must contain from 1 to 63 alphanumeric characters or hyphens.
      - Alphabetic characters must be lowercase.
      - First character must be a letter.
      - Cannot end with a hyphen or contain two consecutive hyphens.
      - Must be unique for all clusters within an AWS account.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `clusterIdentifier` - The identifier of the cluster that will be created from restoring the snapshot.

        Constraints:

        - Must contain from 1 to 63 alphanumeric characters or hyphens.
        - Alphabetic characters must be lowercase.
        - First character must be a letter.
        - Cannot end with a hyphen or contain two consecutive hyphens.
        - Must be unique for all clusters within an AWS account.

    - #### getSnapshotIdentifier

          public java.lang.String getSnapshotIdentifier()

      The name of the snapshot from which to create the new cluster. This parameter isn't case sensitive.

      Example: `my-snapshot-id`

      戻り値:
        The name of the snapshot from which to create the new cluster. This parameter isn't case sensitive.

        Example: `my-snapshot-id`

    - #### setSnapshotIdentifier

          public void setSnapshotIdentifier(java.lang.String snapshotIdentifier)

      The name of the snapshot from which to create the new cluster. This parameter isn't case sensitive.

      Example: `my-snapshot-id`

      パラメータ:
        `snapshotIdentifier` - The name of the snapshot from which to create the new cluster. This parameter isn't case sensitive.

        Example: `my-snapshot-id`

    - #### withSnapshotIdentifier

          public RestoreFromClusterSnapshotRequest withSnapshotIdentifier(java.lang.String snapshotIdentifier)

      The name of the snapshot from which to create the new cluster. This parameter isn't case sensitive.

      Example: `my-snapshot-id`

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `snapshotIdentifier` - The name of the snapshot from which to create the new cluster. This parameter isn't case sensitive.

        Example: `my-snapshot-id`

    - #### getPort

          public java.lang.Integer getPort()

      The port number on which the cluster accepts connections.

      Default: The same port as the original cluster.

      Constraints: Must be between `1115` and `65535`.

      戻り値:
        The port number on which the cluster accepts connections.

        Default: The same port as the original cluster.

        Constraints: Must be between `1115` and `65535`.

    - #### setPort

          public void setPort(java.lang.Integer port)

      The port number on which the cluster accepts connections.

      Default: The same port as the original cluster.

      Constraints: Must be between `1115` and `65535`.

      パラメータ:
        `port` - The port number on which the cluster accepts connections.

        Default: The same port as the original cluster.

        Constraints: Must be between `1115` and `65535`.

    - #### withPort

          public RestoreFromClusterSnapshotRequest withPort(java.lang.Integer port)

      The port number on which the cluster accepts connections.

      Default: The same port as the original cluster.

      Constraints: Must be between `1115` and `65535`.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `port` - The port number on which the cluster accepts connections.

        Default: The same port as the original cluster.

        Constraints: Must be between `1115` and `65535`.

    - #### getAvailabilityZone

          public java.lang.String getAvailabilityZone()

      The Amazon EC2 Availability Zone in which to restore the cluster.

      Default: A random, system-chosen Availability Zone.

      Example: `us-east-1a`

      戻り値:
        The Amazon EC2 Availability Zone in which to restore the cluster.

        Default: A random, system-chosen Availability Zone.

        Example: `us-east-1a`

    - #### setAvailabilityZone

          public void setAvailabilityZone(java.lang.String availabilityZone)

      The Amazon EC2 Availability Zone in which to restore the cluster.

      Default: A random, system-chosen Availability Zone.

      Example: `us-east-1a`

      パラメータ:
        `availabilityZone` - The Amazon EC2 Availability Zone in which to restore the cluster.

        Default: A random, system-chosen Availability Zone.

        Example: `us-east-1a`

    - #### withAvailabilityZone

          public RestoreFromClusterSnapshotRequest withAvailabilityZone(java.lang.String availabilityZone)

      The Amazon EC2 Availability Zone in which to restore the cluster.

      Default: A random, system-chosen Availability Zone.

      Example: `us-east-1a`

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `availabilityZone` - The Amazon EC2 Availability Zone in which to restore the cluster.

        Default: A random, system-chosen Availability Zone.

        Example: `us-east-1a`

    - #### isAllowVersionUpgrade

          public java.lang.Boolean isAllowVersionUpgrade()

      If `true`, upgrades can be applied during the maintenance window to the Amazon Redshift engine that is running on the cluster.

      Default: `true`

      戻り値:
        If `true`, upgrades can be applied during the maintenance window to the Amazon Redshift engine that is running on the cluster.

        Default: `true`

    - #### setAllowVersionUpgrade

          public void setAllowVersionUpgrade(java.lang.Boolean allowVersionUpgrade)

      If `true`, upgrades can be applied during the maintenance window to the Amazon Redshift engine that is running on the cluster.

      Default: `true`

      パラメータ:
        `allowVersionUpgrade` - If `true`, upgrades can be applied during the maintenance window to the Amazon Redshift engine that is running on the cluster.

        Default: `true`

    - #### withAllowVersionUpgrade

          public RestoreFromClusterSnapshotRequest withAllowVersionUpgrade(java.lang.Boolean allowVersionUpgrade)

      If `true`, upgrades can be applied during the maintenance window to the Amazon Redshift engine that is running on the cluster.

      Default: `true`

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `allowVersionUpgrade` - If `true`, upgrades can be applied during the maintenance window to the Amazon Redshift engine that is running on the cluster.

        Default: `true`

    - #### getAllowVersionUpgrade

          public java.lang.Boolean getAllowVersionUpgrade()

      If `true`, upgrades can be applied during the maintenance window to the Amazon Redshift engine that is running on the cluster.

      Default: `true`

      戻り値:
        If `true`, upgrades can be applied during the maintenance window to the Amazon Redshift engine that is running on the cluster.

        Default: `true`

    - #### getClusterSubnetGroupName

          public java.lang.String getClusterSubnetGroupName()

      The name of the subnet group where you want to cluster restored.

      A snapshot of cluster in VPC can be restored only in VPC. Therefore, you must provide subnet group name where you want the cluster restored.

      戻り値:
        The name of the subnet group where you want to cluster restored.

        A snapshot of cluster in VPC can be restored only in VPC. Therefore, you must provide subnet group name where you want the cluster restored.

    - #### setClusterSubnetGroupName

          public void setClusterSubnetGroupName(java.lang.String clusterSubnetGroupName)

      The name of the subnet group where you want to cluster restored.

      A snapshot of cluster in VPC can be restored only in VPC. Therefore, you must provide subnet group name where you want the cluster restored.

      パラメータ:
        `clusterSubnetGroupName` - The name of the subnet group where you want to cluster restored.

        A snapshot of cluster in VPC can be restored only in VPC. Therefore, you must provide subnet group name where you want the cluster restored.

    - #### withClusterSubnetGroupName

          public RestoreFromClusterSnapshotRequest withClusterSubnetGroupName(java.lang.String clusterSubnetGroupName)

      The name of the subnet group where you want to cluster restored.

      A snapshot of cluster in VPC can be restored only in VPC. Therefore, you must provide subnet group name where you want the cluster restored.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `clusterSubnetGroupName` - The name of the subnet group where you want to cluster restored.

        A snapshot of cluster in VPC can be restored only in VPC. Therefore, you must provide subnet group name where you want the cluster restored.

    - #### isPubliclyAccessible

          public java.lang.Boolean isPubliclyAccessible()

      If `true`, the cluster can be accessed from a public network.
      戻り値:
        If `true`, the cluster can be accessed from a public network.

    - #### setPubliclyAccessible

          public void setPubliclyAccessible(java.lang.Boolean publiclyAccessible)

      If `true`, the cluster can be accessed from a public network.
      パラメータ:
        `publiclyAccessible` - If `true`, the cluster can be accessed from a public network.

    - #### withPubliclyAccessible

          public RestoreFromClusterSnapshotRequest withPubliclyAccessible(java.lang.Boolean publiclyAccessible)

      If `true`, the cluster can be accessed from a public network.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `publiclyAccessible` - If `true`, the cluster can be accessed from a public network.

    - #### getPubliclyAccessible

          public java.lang.Boolean getPubliclyAccessible()

      If `true`, the cluster can be accessed from a public network.
      戻り値:
        If `true`, the cluster can be accessed from a public network.

    - #### getOwnerAccount

          public java.lang.String getOwnerAccount()

      The AWS customer account used to create or copy the snapshot. Required if you are restoring a snapshot you do not own, optional if you own the snapshot.
      戻り値:
        The AWS customer account used to create or copy the snapshot. Required if you are restoring a snapshot you do not own, optional if you own the snapshot.

    - #### setOwnerAccount

          public void setOwnerAccount(java.lang.String ownerAccount)

      The AWS customer account used to create or copy the snapshot. Required if you are restoring a snapshot you do not own, optional if you own the snapshot.
      パラメータ:
        `ownerAccount` - The AWS customer account used to create or copy the snapshot. Required if you are restoring a snapshot you do not own, optional if you own the snapshot.

    - #### withOwnerAccount

          public RestoreFromClusterSnapshotRequest withOwnerAccount(java.lang.String ownerAccount)

      The AWS customer account used to create or copy the snapshot. Required if you are restoring a snapshot you do not own, optional if you own the snapshot.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `ownerAccount` - The AWS customer account used to create or copy the snapshot. Required if you are restoring a snapshot you do not own, optional if you own the snapshot.

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`