com.amazonaws.services.glacier.model

## クラス CompleteMultipartUploadRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.glacier.model.CompleteMultipartUploadRequest

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

      public class CompleteMultipartUploadRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `CompleteMultipartUpload operation`.

  You call this operation to inform Amazon Glacier that all the archive parts have been uploaded and that Amazon Glacier can now assemble the archive from the uploaded parts. After assembling and saving the archive to the vault, Amazon Glacier returns the URI path of the newly created archive resource. Using the URI path, you can then access the archive. After you upload an archive, you should save the archive ID returned to retrieve the archive at a later point. You can also get the vault inventory to obtain a list of archive IDs in a vault. For more information, see InitiateJob.

  In the request, you must include the computed SHA256 tree hash of the entire archive you have uploaded. For information about computing a SHA256 tree hash, see Computing Checksums . On the server side, Amazon Glacier also constructs the SHA256 tree hash of the assembled archive. If the values match, Amazon Glacier saves the archive to the vault; otherwise, it returns an error, and the operation fails. The ListParts operation returns a list of parts uploaded for a specific multipart upload. It includes checksum information for each uploaded part that can be used to debug a bad checksum issue.

  Additionally, Amazon Glacier also checks for any missing content ranges when assembling the archive, if missing content ranges are found, Amazon Glacier returns an error and the operation fails.

  Complete Multipart Upload is an idempotent operation. After your first successful complete multipart upload, if you call the operation again within a short period, the operation will succeed and return the same archive ID. This is useful in the event you experience a network issue that causes an aborted connection or receive a 500 server error, in which case you can repeat your Complete Multipart Upload request and get the same archive ID without creating duplicate archives. Note, however, that after the multipart upload completes, you cannot call the List Parts operation and the multipart upload will not appear in List Multipart Uploads response, even if idempotent complete is possible.

  An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM) .

  For conceptual information and underlying REST API, go to Uploading Large Archives in Parts (Multipart Upload) and Complete Multipart Upload in the Amazon Glacier Developer Guide .

  関連項目:
    `AmazonGlacier.completeMultipartUpload(CompleteMultipartUploadRequest)`, 直列化された形式

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

    コンストラクタ
    コンストラクタと説明
    `CompleteMultipartUploadRequest()` Default constructor for a new CompleteMultipartUploadRequest object.
    `CompleteMultipartUploadRequest(java.lang.String vaultName, java.lang.String uploadId, java.lang.String archiveSize, java.lang.String checksum)` Constructs a new CompleteMultipartUploadRequest object.
    `CompleteMultipartUploadRequest(java.lang.String accountId, java.lang.String vaultName, java.lang.String uploadId, java.lang.String archiveSize, java.lang.String checksum)` Constructs a new CompleteMultipartUploadRequest object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getAccountId()` The `AccountId` is the AWS Account ID.
    `java.lang.String` | `getArchiveSize()` The total size, in bytes, of the entire archive.
    `java.lang.String` | `getChecksum()` The SHA256 tree hash of the entire archive.
    `java.lang.String` | `getUploadId()` The upload ID of the multipart upload.
    `java.lang.String` | `getVaultName()` The name of the vault.
    `int` | `hashCode()`
    `void` | `setAccountId(java.lang.String accountId)` The `AccountId` is the AWS Account ID.
    `void` | `setArchiveSize(java.lang.String archiveSize)` The total size, in bytes, of the entire archive.
    `void` | `setChecksum(java.lang.String checksum)` The SHA256 tree hash of the entire archive.
    `void` | `setUploadId(java.lang.String uploadId)` The upload ID of the multipart upload.
    `void` | `setVaultName(java.lang.String vaultName)` The name of the vault.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `CompleteMultipartUploadRequest` | `withAccountId(java.lang.String accountId)` The `AccountId` is the AWS Account ID.
    `CompleteMultipartUploadRequest` | `withArchiveSize(java.lang.String archiveSize)` The total size, in bytes, of the entire archive.
    `CompleteMultipartUploadRequest` | `withChecksum(java.lang.String checksum)` The SHA256 tree hash of the entire archive.
    `CompleteMultipartUploadRequest` | `withUploadId(java.lang.String uploadId)` The upload ID of the multipart upload.
    `CompleteMultipartUploadRequest` | `withVaultName(java.lang.String vaultName)` The name of the vault.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### CompleteMultipartUploadRequest

          public CompleteMultipartUploadRequest()

      Default constructor for a new CompleteMultipartUploadRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

    - #### CompleteMultipartUploadRequest

          public CompleteMultipartUploadRequest(java.lang.String vaultName,
                                        java.lang.String uploadId,
                                        java.lang.String archiveSize,
                                        java.lang.String checksum)

      Constructs a new CompleteMultipartUploadRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `vaultName` - The name of the vault.
        `uploadId` - The upload ID of the multipart upload.
        `archiveSize` - The total size, in bytes, of the entire archive. This value should be the sum of all the sizes of the individual parts that you uploaded.
        `checksum` - The SHA256 tree hash of the entire archive. It is the tree hash of SHA256 tree hash of the individual parts. If the value you specify in the request does not match the SHA256 tree hash of the final assembled archive as computed by Amazon Glacier, Amazon Glacier returns an error and the request fails.

    - #### CompleteMultipartUploadRequest

          public CompleteMultipartUploadRequest(java.lang.String accountId,
                                        java.lang.String vaultName,
                                        java.lang.String uploadId,
                                        java.lang.String archiveSize,
                                        java.lang.String checksum)

      Constructs a new CompleteMultipartUploadRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `accountId` - The `AccountId` is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
        `vaultName` - The name of the vault.
        `uploadId` - The upload ID of the multipart upload.
        `archiveSize` - The total size, in bytes, of the entire archive. This value should be the sum of all the sizes of the individual parts that you uploaded.
        `checksum` - The SHA256 tree hash of the entire archive. It is the tree hash of SHA256 tree hash of the individual parts. If the value you specify in the request does not match the SHA256 tree hash of the final assembled archive as computed by Amazon Glacier, Amazon Glacier returns an error and the request fails.

  - ### メソッドの詳細

    - #### getAccountId

          public java.lang.String getAccountId()

      The `AccountId` is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
      戻り値:
        The `AccountId` is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.

    - #### setAccountId

          public void setAccountId(java.lang.String accountId)

      The `AccountId` is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.
      パラメータ:
        `accountId` - The `AccountId` is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.

    - #### withAccountId

          public CompleteMultipartUploadRequest withAccountId(java.lang.String accountId)

      The `AccountId` is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.

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

      パラメータ:
        `accountId` - The `AccountId` is the AWS Account ID. You can specify either the AWS Account ID or optionally a '-', in which case Amazon Glacier uses the AWS Account ID associated with the credentials used to sign the request. If you specify your Account ID, do not include hyphens in it.

    - #### getVaultName

          public java.lang.String getVaultName()

      The name of the vault.
      戻り値:
        The name of the vault.

    - #### setVaultName

          public void setVaultName(java.lang.String vaultName)

      The name of the vault.
      パラメータ:
        `vaultName` - The name of the vault.

    - #### withVaultName

          public CompleteMultipartUploadRequest withVaultName(java.lang.String vaultName)

      The name of the vault.

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

      パラメータ:
        `vaultName` - The name of the vault.

    - #### getUploadId

          public java.lang.String getUploadId()

      The upload ID of the multipart upload.
      戻り値:
        The upload ID of the multipart upload.

    - #### setUploadId

          public void setUploadId(java.lang.String uploadId)

      The upload ID of the multipart upload.
      パラメータ:
        `uploadId` - The upload ID of the multipart upload.

    - #### withUploadId

          public CompleteMultipartUploadRequest withUploadId(java.lang.String uploadId)

      The upload ID of the multipart upload.

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

      パラメータ:
        `uploadId` - The upload ID of the multipart upload.

    - #### getArchiveSize

          public java.lang.String getArchiveSize()

      The total size, in bytes, of the entire archive. This value should be the sum of all the sizes of the individual parts that you uploaded.
      戻り値:
        The total size, in bytes, of the entire archive. This value should be the sum of all the sizes of the individual parts that you uploaded.

    - #### setArchiveSize

          public void setArchiveSize(java.lang.String archiveSize)

      The total size, in bytes, of the entire archive. This value should be the sum of all the sizes of the individual parts that you uploaded.
      パラメータ:
        `archiveSize` - The total size, in bytes, of the entire archive. This value should be the sum of all the sizes of the individual parts that you uploaded.

    - #### withArchiveSize

          public CompleteMultipartUploadRequest withArchiveSize(java.lang.String archiveSize)

      The total size, in bytes, of the entire archive. This value should be the sum of all the sizes of the individual parts that you uploaded.

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

      パラメータ:
        `archiveSize` - The total size, in bytes, of the entire archive. This value should be the sum of all the sizes of the individual parts that you uploaded.

    - #### getChecksum

          public java.lang.String getChecksum()

      The SHA256 tree hash of the entire archive. It is the tree hash of SHA256 tree hash of the individual parts. If the value you specify in the request does not match the SHA256 tree hash of the final assembled archive as computed by Amazon Glacier, Amazon Glacier returns an error and the request fails.
      戻り値:
        The SHA256 tree hash of the entire archive. It is the tree hash of SHA256 tree hash of the individual parts. If the value you specify in the request does not match the SHA256 tree hash of the final assembled archive as computed by Amazon Glacier, Amazon Glacier returns an error and the request fails.

    - #### setChecksum

          public void setChecksum(java.lang.String checksum)

      The SHA256 tree hash of the entire archive. It is the tree hash of SHA256 tree hash of the individual parts. If the value you specify in the request does not match the SHA256 tree hash of the final assembled archive as computed by Amazon Glacier, Amazon Glacier returns an error and the request fails.
      パラメータ:
        `checksum` - The SHA256 tree hash of the entire archive. It is the tree hash of SHA256 tree hash of the individual parts. If the value you specify in the request does not match the SHA256 tree hash of the final assembled archive as computed by Amazon Glacier, Amazon Glacier returns an error and the request fails.

    - #### withChecksum

          public CompleteMultipartUploadRequest withChecksum(java.lang.String checksum)

      The SHA256 tree hash of the entire archive. It is the tree hash of SHA256 tree hash of the individual parts. If the value you specify in the request does not match the SHA256 tree hash of the final assembled archive as computed by Amazon Glacier, Amazon Glacier returns an error and the request fails.

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

      パラメータ:
        `checksum` - The SHA256 tree hash of the entire archive. It is the tree hash of SHA256 tree hash of the individual parts. If the value you specify in the request does not match the SHA256 tree hash of the final assembled archive as computed by Amazon Glacier, Amazon Glacier returns an error and the request fails.

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