com.amazonaws.services.glacier.model

## クラス UploadMultipartPartRequest

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

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

      public class UploadMultipartPartRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `UploadMultipartPart operation`.

  This operation uploads a part of an archive. You can upload archive parts in any order. You can also upload them in parallel. You can upload up to 10,000 parts for a multipart upload.

  Amazon Glacier rejects your upload part request if any of the following conditions is true:

  - SHA256 tree hash does not match To ensure that part data is not corrupted in transmission, you compute a SHA256 tree hash of the part and include it in your request. Upon receiving the part data, Amazon Glacier also computes a SHA256 tree hash. If these hash values don't match, the operation fails. For information about computing a SHA256 tree hash, see Computing Checksums .

  - Part size does not match The size of each part except the last must match the size specified in the corresponding InitiateMultipartUpload request. The size of the last part must be the same size as, or smaller than, the specified size.

    NOTE: If you upload a part whose size is smaller than the part size you specified in your initiate multipart upload request and that part is not the last part, then the upload part request will succeed. However, the subsequent Complete Multipart Upload request will fail.

  - Range does not align The byte range value in the request does not align with the part size specified in the corresponding initiate request. For example, if you specify a part size of 4194304 bytes (4 MB), then 0 to 4194303 bytes (4 MB - 1) and 4194304 (4 MB) to 8388607 (8 MB - 1) are valid part ranges. However, if you set a range value of 2 MB to 6 MB, the range does not align with the part size and the upload will fail.

  This operation is idempotent. If you upload the same part multiple times, the data included in the most recent request overwrites the previously uploaded data.

  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 Upload Part in the Amazon Glacier Developer Guide .

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

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getAccountId()` The `AccountId` is the AWS Account ID.
    `java.io.InputStream` | `getBody()` The data to upload.
    `java.lang.String` | `getChecksum()` The SHA256 tree hash of the data being uploaded.
    `java.lang.String` | `getRange()` Identifies the range of bytes in the assembled archive that will be uploaded in this part.
    `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` | `setBody(java.io.InputStream body)` The data to upload.
    `void` | `setChecksum(java.lang.String checksum)` The SHA256 tree hash of the data being uploaded.
    `void` | `setRange(java.lang.String range)` Identifies the range of bytes in the assembled archive that will be uploaded in this part.
    `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.
    `UploadMultipartPartRequest` | `withAccountId(java.lang.String accountId)` The `AccountId` is the AWS Account ID.
    `UploadMultipartPartRequest` | `withBody(java.io.InputStream body)` The data to upload.
    `UploadMultipartPartRequest` | `withChecksum(java.lang.String checksum)` The SHA256 tree hash of the data being uploaded.
    `UploadMultipartPartRequest` | `withRange(java.lang.String range)` Identifies the range of bytes in the assembled archive that will be uploaded in this part.
    `UploadMultipartPartRequest` | `withUploadId(java.lang.String uploadId)` The upload ID of the multipart upload.
    `UploadMultipartPartRequest` | `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`

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

    - #### UploadMultipartPartRequest

          public UploadMultipartPartRequest()

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

    - #### UploadMultipartPartRequest

          public UploadMultipartPartRequest(java.lang.String vaultName,
                                    java.lang.String uploadId,
                                    java.lang.String checksum,
                                    java.lang.String range,
                                    java.io.InputStream body)

      Constructs a new UploadMultipartPartRequest 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.
        `checksum` - The SHA256 tree hash of the data being uploaded.
        `range` - Identifies the range of bytes in the assembled archive that will be uploaded in this part. Amazon Glacier uses this information to assemble the archive in the proper sequence. The format of this header follows RFC 2616. An example header is Content-Range:bytes 0-4194303/*.
        `body` - The data to upload.

    - #### UploadMultipartPartRequest

          public UploadMultipartPartRequest(java.lang.String accountId,
                                    java.lang.String vaultName,
                                    java.lang.String uploadId,
                                    java.lang.String checksum,
                                    java.lang.String range,
                                    java.io.InputStream body)

      Constructs a new UploadMultipartPartRequest 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.
        `checksum` - The SHA256 tree hash of the data being uploaded.
        `range` - Identifies the range of bytes in the assembled archive that will be uploaded in this part. Amazon Glacier uses this information to assemble the archive in the proper sequence. The format of this header follows RFC 2616. An example header is Content-Range:bytes 0-4194303/*.
        `body` - The data to upload.

  - ### メソッドの詳細

    - #### 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 UploadMultipartPartRequest 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 UploadMultipartPartRequest 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 UploadMultipartPartRequest 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.

    - #### getChecksum

          public java.lang.String getChecksum()

      The SHA256 tree hash of the data being uploaded.
      戻り値:
        The SHA256 tree hash of the data being uploaded.

    - #### setChecksum

          public void setChecksum(java.lang.String checksum)

      The SHA256 tree hash of the data being uploaded.
      パラメータ:
        `checksum` - The SHA256 tree hash of the data being uploaded.

    - #### withChecksum

          public UploadMultipartPartRequest withChecksum(java.lang.String checksum)

      The SHA256 tree hash of the data being uploaded.

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

      パラメータ:
        `checksum` - The SHA256 tree hash of the data being uploaded.

    - #### getRange

          public java.lang.String getRange()

      Identifies the range of bytes in the assembled archive that will be uploaded in this part. Amazon Glacier uses this information to assemble the archive in the proper sequence. The format of this header follows RFC 2616. An example header is Content-Range:bytes 0-4194303/*.
      戻り値:
        Identifies the range of bytes in the assembled archive that will be uploaded in this part. Amazon Glacier uses this information to assemble the archive in the proper sequence. The format of this header follows RFC 2616. An example header is Content-Range:bytes 0-4194303/*.

    - #### setRange

          public void setRange(java.lang.String range)

      Identifies the range of bytes in the assembled archive that will be uploaded in this part. Amazon Glacier uses this information to assemble the archive in the proper sequence. The format of this header follows RFC 2616. An example header is Content-Range:bytes 0-4194303/*.
      パラメータ:
        `range` - Identifies the range of bytes in the assembled archive that will be uploaded in this part. Amazon Glacier uses this information to assemble the archive in the proper sequence. The format of this header follows RFC 2616. An example header is Content-Range:bytes 0-4194303/*.

    - #### withRange

          public UploadMultipartPartRequest withRange(java.lang.String range)

      Identifies the range of bytes in the assembled archive that will be uploaded in this part. Amazon Glacier uses this information to assemble the archive in the proper sequence. The format of this header follows RFC 2616. An example header is Content-Range:bytes 0-4194303/*.

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

      パラメータ:
        `range` - Identifies the range of bytes in the assembled archive that will be uploaded in this part. Amazon Glacier uses this information to assemble the archive in the proper sequence. The format of this header follows RFC 2616. An example header is Content-Range:bytes 0-4194303/*.

    - #### getBody

          public java.io.InputStream getBody()

      The data to upload.
      戻り値:
        The data to upload.

    - #### setBody

          public void setBody(java.io.InputStream body)

      The data to upload.
      パラメータ:
        `body` - The data to upload.

    - #### withBody

          public UploadMultipartPartRequest withBody(java.io.InputStream body)

      The data to upload.

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

      パラメータ:
        `body` - The data to upload.

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