com.amazonaws.services.redshift.model

## クラス CopyClusterSnapshotRequest

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

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

      public class CopyClusterSnapshotRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `CopyClusterSnapshot operation`.

  Copies the specified automated cluster snapshot to a new manual cluster snapshot. The source must be an automated snapshot and it must be in the available state.

  When you delete a cluster, Amazon Redshift deletes any automated snapshots of the cluster. Also, when the retention period of the snapshot expires, Amazon Redshift automatically deletes it. If you want to keep an automated snapshot for a longer period, you can make a manual copy of the snapshot. Manual snapshots are retained until you delete them.

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

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getSourceSnapshotIdentifier()` The identifier for the source snapshot.
    `java.lang.String` | `getTargetSnapshotIdentifier()` The identifier given to the new manual snapshot.
    `int` | `hashCode()`
    `void` | `setSourceSnapshotIdentifier(java.lang.String sourceSnapshotIdentifier)` The identifier for the source snapshot.
    `void` | `setTargetSnapshotIdentifier(java.lang.String targetSnapshotIdentifier)` The identifier given to the new manual snapshot.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `CopyClusterSnapshotRequest` | `withSourceSnapshotIdentifier(java.lang.String sourceSnapshotIdentifier)` The identifier for the source snapshot.
    `CopyClusterSnapshotRequest` | `withTargetSnapshotIdentifier(java.lang.String targetSnapshotIdentifier)` The identifier given to the new manual snapshot.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### CopyClusterSnapshotRequest

          public CopyClusterSnapshotRequest()

  - ### メソッドの詳細

    - #### getSourceSnapshotIdentifier

          public java.lang.String getSourceSnapshotIdentifier()

      The identifier for the source snapshot.

      Constraints:

      - Must be the identifier for a valid automated snapshot whose state is "available".
      戻り値:
        The identifier for the source snapshot.

        Constraints:

        - Must be the identifier for a valid automated snapshot whose state is "available".

    - #### setSourceSnapshotIdentifier

          public void setSourceSnapshotIdentifier(java.lang.String sourceSnapshotIdentifier)

      The identifier for the source snapshot.

      Constraints:

      - Must be the identifier for a valid automated snapshot whose state is "available".
      パラメータ:
        `sourceSnapshotIdentifier` - The identifier for the source snapshot.

        Constraints:

        - Must be the identifier for a valid automated snapshot whose state is "available".

    - #### withSourceSnapshotIdentifier

          public CopyClusterSnapshotRequest withSourceSnapshotIdentifier(java.lang.String sourceSnapshotIdentifier)

      The identifier for the source snapshot.

      Constraints:

      - Must be the identifier for a valid automated snapshot whose state is "available".

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

      パラメータ:
        `sourceSnapshotIdentifier` - The identifier for the source snapshot.

        Constraints:

        - Must be the identifier for a valid automated snapshot whose state is "available".

    - #### getTargetSnapshotIdentifier

          public java.lang.String getTargetSnapshotIdentifier()

      The identifier given to the new manual snapshot.

      Constraints:

      - Cannot be null, empty, or blank.
      - Must contain from 1 to 255 alphanumeric characters or hyphens.
      - First character must be a letter.
      - Cannot end with a hyphen or contain two consecutive hyphens.
      - Must be unique for the AWS account that is making the request.
      戻り値:
        The identifier given to the new manual snapshot.

        Constraints:

        - Cannot be null, empty, or blank.
        - Must contain from 1 to 255 alphanumeric characters or hyphens.
        - First character must be a letter.
        - Cannot end with a hyphen or contain two consecutive hyphens.
        - Must be unique for the AWS account that is making the request.

    - #### setTargetSnapshotIdentifier

          public void setTargetSnapshotIdentifier(java.lang.String targetSnapshotIdentifier)

      The identifier given to the new manual snapshot.

      Constraints:

      - Cannot be null, empty, or blank.
      - Must contain from 1 to 255 alphanumeric characters or hyphens.
      - First character must be a letter.
      - Cannot end with a hyphen or contain two consecutive hyphens.
      - Must be unique for the AWS account that is making the request.
      パラメータ:
        `targetSnapshotIdentifier` - The identifier given to the new manual snapshot.

        Constraints:

        - Cannot be null, empty, or blank.
        - Must contain from 1 to 255 alphanumeric characters or hyphens.
        - First character must be a letter.
        - Cannot end with a hyphen or contain two consecutive hyphens.
        - Must be unique for the AWS account that is making the request.

    - #### withTargetSnapshotIdentifier

          public CopyClusterSnapshotRequest withTargetSnapshotIdentifier(java.lang.String targetSnapshotIdentifier)

      The identifier given to the new manual snapshot.

      Constraints:

      - Cannot be null, empty, or blank.
      - Must contain from 1 to 255 alphanumeric characters or hyphens.
      - First character must be a letter.
      - Cannot end with a hyphen or contain two consecutive hyphens.
      - Must be unique for the AWS account that is making the request.

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

      パラメータ:
        `targetSnapshotIdentifier` - The identifier given to the new manual snapshot.

        Constraints:

        - Cannot be null, empty, or blank.
        - Must contain from 1 to 255 alphanumeric characters or hyphens.
        - First character must be a letter.
        - Cannot end with a hyphen or contain two consecutive hyphens.
        - Must be unique for the AWS account that is making the request.

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