com.amazonaws.services.s3.model

## クラス UploadPartRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.s3.model.UploadPartRequest

-     public class UploadPartRequest
      extends AmazonWebServiceRequest

  Contains the parameters used for the UploadPart operation on Amazon S3.

  Required Parameters: BucketName, Key, UploadId, PartNumber

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `java.lang.String` | `getBucketName()` Returns the name of the bucket containing the existing, initiated multipart upload, with which this new part will be associated.
    `java.io.File` | `getFile()` Returns the file containing the data to upload.
    `long` | `getFileOffset()` Returns the optional offset in the specified file, at which to begin uploading data for this part.
    `java.io.InputStream` | `getInputStream()` Returns the stream containing the data to upload for the new part.
    `java.lang.String` | `getKey()` Returns the key of the initiated multipart upload.
    `java.lang.String` | `getMd5Digest()` Returns the optional, but recommended, MD5 hash of the content of this part.
    `int` | `getPartNumber()` Returns the part number describing this part's position relative to the other parts in the multipart upload.
    `long` | `getPartSize()` Returns the size of this part, in bytes.
    `ProgressListener` | `getProgressListener()` Returns the optional progress listener for receiving updates about object upload status.
    `java.lang.String` | `getUploadId()` Returns the ID of the existing, initiated multipart upload with which this new part will be associated.
    `boolean` | `isLastPart()` Returns true if the creator of this request has indicated this part is the last part being uploaded in a multipart upload.
    `void` | `setBucketName(java.lang.String bucketName)` Sets the name of the bucket containing the existing, initiated multipart upload, with which this new part will be associated.
    `void` | `setFile(java.io.File file)` Sets the file containing the data to upload.
    `void` | `setFileOffset(long fileOffset)` Sets the optional offset in the specified file, at which to begin uploading data for this part.
    `void` | `setInputStream(java.io.InputStream inputStream)` Sets the stream containing the data to upload for the new part.
    `void` | `setKey(java.lang.String key)` Sets the key of the initiated multipart upload.
    `void` | `setLastPart(boolean isLastPart)` Marks this part as the last part being uploaded in a multipart upload.
    `void` | `setMd5Digest(java.lang.String md5Digest)` Sets the optional, but recommended, MD5 hash of the content of this part.
    `void` | `setPartNumber(int partNumber)` Sets the part number describing this part's position relative to the other parts in the multipart upload.
    `void` | `setPartSize(long partSize)` Sets the size of this part, in bytes.
    `void` | `setProgressListener(ProgressListener progressListener)` Sets the optional progress listener for receiving updates about object upload status.
    `void` | `setUploadId(java.lang.String uploadId)` Sets the ID of the existing, initiated multipart upload with which this new part will be associated.
    `UploadPartRequest` | `withBucketName(java.lang.String bucketName)` Sets the name of the bucket containing the existing, initiated multipart upload, with which this new part will be associated, and returns this updated object so that additional method calls can be chained together.
    `UploadPartRequest` | `withFile(java.io.File file)` Sets the file containing the data to upload, and returns this updated UploadPartRequest object so that additional method calls can be chained together.
    `UploadPartRequest` | `withFileOffset(long fileOffset)` Sets the optional offset in the specified file, at which to begin uploading data for this part, and returns this updated UploadPartRequest object so that additional method calls can be chained together.
    `UploadPartRequest` | `withInputStream(java.io.InputStream inputStream)` Sets the stream containing the data to upload for the new part, and returns this updated object so that additional method calls can be chained together.
    `UploadPartRequest` | `withKey(java.lang.String key)` Sets the key of the initiated multipart upload, and returns this updated object so that additional method calls can be chained together.
    `UploadPartRequest` | `withLastPart(boolean isLastPart)` Marks this part as the last part being uploaded in a multipart upload, and returns this updated request object so that additional method calls can be chained together.
    `UploadPartRequest` | `withMD5Digest(java.lang.String md5Digest)` Sets the optional, but recommended, MD5 hash of the content of this part.
    `UploadPartRequest` | `withPartNumber(int partNumber)` Sets the part number describing this part's position relative to the other parts in the multipart upload.
    `UploadPartRequest` | `withPartSize(long partSize)` Sets the size of this part, in bytes, and returns this updated UploadPartRequest object so that additional method calls can be chained together.
    `UploadPartRequest` | `withProgressListener(ProgressListener progressListener)` Sets the optional progress listener for receiving updates about object upload status, and returns this updated object so that additional method calls can be chained together.
    `UploadPartRequest` | `withUploadId(java.lang.String uploadId)` Sets the ID of the existing, initiated multipart upload with which this new part will be associated, and returns this updated UploadPartRequest object so that additional method calls can be chained together.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

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

    - #### UploadPartRequest

          public UploadPartRequest()

  - ### メソッドの詳細

    - #### setInputStream

          public void setInputStream(java.io.InputStream inputStream)

      Sets the stream containing the data to upload for the new part.
      パラメータ:
        `inputStream` - the stream containing the data to upload for the new part.

    - #### getInputStream

          public java.io.InputStream getInputStream()

      Returns the stream containing the data to upload for the new part.
      戻り値:
        the stream containing the data to upload for the new part.

    - #### withInputStream

          public UploadPartRequest withInputStream(java.io.InputStream inputStream)

      Sets the stream containing the data to upload for the new part, and returns this updated object so that additional method calls can be chained together.
      パラメータ:
        `inputStream` - the stream containing the data to upload for the new part.
      戻り値:
        The updated UploadPartRequest object.

    - #### getBucketName

          public java.lang.String getBucketName()

      Returns the name of the bucket containing the existing, initiated multipart upload, with which this new part will be associated.
      戻り値:
        the name of the bucket containing the existing, initiated multipart upload, with which this new part will be associated.

    - #### setBucketName

          public void setBucketName(java.lang.String bucketName)

      Sets the name of the bucket containing the existing, initiated multipart upload, with which this new part will be associated.
      パラメータ:
        `bucketName` - the name of the bucket containing the existing, initiated multipart upload, with which this new part will be associated.

    - #### withBucketName

          public UploadPartRequest withBucketName(java.lang.String bucketName)

      Sets the name of the bucket containing the existing, initiated multipart upload, with which this new part will be associated, and returns this updated object so that additional method calls can be chained together.
      パラメータ:
        `bucketName` - the name of the bucket containing the existing, initiated multipart upload, with which this new part will be associated.
      戻り値:
        This updated UploadPartRequest object.

    - #### getKey

          public java.lang.String getKey()

      Returns the key of the initiated multipart upload.
      戻り値:
        the key of the initiated multipart upload.

    - #### setKey

          public void setKey(java.lang.String key)

      Sets the key of the initiated multipart upload.
      パラメータ:
        `key` - the key of the initiated multipart upload.

    - #### withKey

          public UploadPartRequest withKey(java.lang.String key)

      Sets the key of the initiated multipart upload, and returns this updated object so that additional method calls can be chained together.
      パラメータ:
        `key` - the key of the initiated multipart upload.
      戻り値:
        This updated UploadPartRequest object.

    - #### getUploadId

          public java.lang.String getUploadId()

      Returns the ID of the existing, initiated multipart upload with which this new part will be associated.
      戻り値:
        the ID of the existing, initiated multipart upload with which this new part will be associated.

    - #### setUploadId

          public void setUploadId(java.lang.String uploadId)

      Sets the ID of the existing, initiated multipart upload with which this new part will be associated.
      パラメータ:
        `uploadId` - the ID of the existing, initiated multipart upload with which this new part will be associated.

    - #### withUploadId

          public UploadPartRequest withUploadId(java.lang.String uploadId)

      Sets the ID of the existing, initiated multipart upload with which this new part will be associated, and returns this updated UploadPartRequest object so that additional method calls can be chained together.
      パラメータ:
        `uploadId` - the ID of the existing, initiated multipart upload with which this new part will be associated.
      戻り値:
        This updated UploadPartRequest object.

    - #### getPartNumber

          public int getPartNumber()

      Returns the part number describing this part's position relative to the other parts in the multipart upload. Part number must be between 1 and 10,000 (inclusive).
      戻り値:
        the part number describing this part's position relative to the other parts in the multipart upload. Part number must be between 1 and 10,000 (inclusive).

    - #### setPartNumber

          public void setPartNumber(int partNumber)

      Sets the part number describing this part's position relative to the other parts in the multipart upload. Part number must be between 1 and 10,000 (inclusive).
      パラメータ:
        `partNumber` - the part number describing this part's position relative to the other parts in the multipart upload. Part number must be between 1 and 10,000 (inclusive).

    - #### withPartNumber

          public UploadPartRequest withPartNumber(int partNumber)

      Sets the part number describing this part's position relative to the other parts in the multipart upload. Part number must be between 1 and 10,000 (inclusive).

      Returns this updated UploadPartRequest object so that additional method calls can be chained together.

      パラメータ:
        `partNumber` - the part number describing this part's position relative to the other parts in the multipart upload. Part number must be between 1 and 10,000 (inclusive).
      戻り値:
        This updated UploadPartRequest object.

    - #### getPartSize

          public long getPartSize()

      Returns the size of this part, in bytes.
      戻り値:
        the size of this part, in bytes.

    - #### setPartSize

          public void setPartSize(long partSize)

      Sets the size of this part, in bytes.
      パラメータ:
        `partSize` - the size of this part, in bytes.

    - #### withPartSize

          public UploadPartRequest withPartSize(long partSize)

      Sets the size of this part, in bytes, and returns this updated UploadPartRequest object so that additional method calls can be chained together.
      パラメータ:
        `partSize` - the size of this part, in bytes.
      戻り値:
        This updated UploadPartRequest object.

    - #### getMd5Digest

          public java.lang.String getMd5Digest()

      Returns the optional, but recommended, MD5 hash of the content of this part. If specified, this value will be sent to Amazon S3 to verify the data integrity when the data reaches Amazon S3.
      戻り値:
        The optional, but recommended, MD5 hash of the content of this part. If specified, this value will be sent to Amazon S3 to verify the data integrity when the data reaches Amazon S3.

    - #### setMd5Digest

          public void setMd5Digest(java.lang.String md5Digest)

      Sets the optional, but recommended, MD5 hash of the content of this part. If specified, this value will be sent to Amazon S3 to verify the data integrity when the data reaches Amazon S3.
      パラメータ:
        `md5Digest` - The optional, but recommended, MD5 hash of the content of this part. If specified, this value will be sent to Amazon S3 to verify the data integrity when the data reaches Amazon S3.

    - #### withMD5Digest

          public UploadPartRequest withMD5Digest(java.lang.String md5Digest)

      Sets the optional, but recommended, MD5 hash of the content of this part. If specified, this value will be sent to Amazon S3 to verify the data integrity when the data reaches Amazon S3.

      Returns this updated UploadPartRequest object so that additional method calls can be chained together.

      パラメータ:
        `md5Digest` - The optional, but recommended, MD5 hash of the content of this part. If specified, this value will be sent to Amazon S3 to verify the data integrity when the data reaches Amazon S3.
      戻り値:
        This updated UploadPartRequest object.

    - #### getFile

          public java.io.File getFile()

      Returns the file containing the data to upload. Exactly one File or InputStream must be specified as the input to this operation.
      戻り値:
        The file containing the data to upload. Exactly one File or InputStream must be specified as the input to this operation.

    - #### setFile

          public void setFile(java.io.File file)

      Sets the file containing the data to upload. Exactly one File or InputStream must be specified as the input to this operation.
      パラメータ:
        `file` - The file containing the data to upload. Exactly one File or InputStream must be specified as the input to this operation.

    - #### withFile

          public UploadPartRequest withFile(java.io.File file)

      Sets the file containing the data to upload, and returns this updated UploadPartRequest object so that additional method calls can be chained together.

      Exactly one File or InputStream must be specified as the input to this operation.

      パラメータ:
        `file` - The file containing the data to upload. Exactly one File or InputStream must be specified as the input to this operation.
      戻り値:
        This updated UploadPartRequest object.

    - #### getFileOffset

          public long getFileOffset()

      Returns the optional offset in the specified file, at which to begin uploading data for this part. If not specified, data will be read from the beginning of the file.
      戻り値:
        The optional offset in the specified file, at which to begin uploading data for this part. If not specified, data will be read from the beginning of the file.

    - #### setFileOffset

          public void setFileOffset(long fileOffset)

      Sets the optional offset in the specified file, at which to begin uploading data for this part. If not specified, data will be read from the beginning of the file.
      パラメータ:
        `fileOffset` - The optional offset in the specified file, at which to begin uploading data for this part. If not specified, data will be read from the beginning of the file.

    - #### withFileOffset

          public UploadPartRequest withFileOffset(long fileOffset)

      Sets the optional offset in the specified file, at which to begin uploading data for this part, and returns this updated UploadPartRequest object so that additional method calls can be chained together.

      If not specified, data will be read from the beginning of the file.

      パラメータ:
        `fileOffset` - The optional offset in the specified file, at which to begin uploading data for this part. If not specified, data will be read from the beginning of the file.
      戻り値:
        This updated UploadPartRequest object.

    - #### setProgressListener

          public void setProgressListener(ProgressListener progressListener)

      Sets the optional progress listener for receiving updates about object upload status.
      パラメータ:
        `progressListener` - The new progress listener.

    - #### getProgressListener

          public ProgressListener getProgressListener()

      Returns the optional progress listener for receiving updates about object upload status.
      戻り値:
        the optional progress listener for receiving updates about object upload status.

    - #### withProgressListener

          public UploadPartRequest withProgressListener(ProgressListener progressListener)

      Sets the optional progress listener for receiving updates about object upload status, and returns this updated object so that additional method calls can be chained together.
      パラメータ:
        `progressListener` - The new progress listener.
      戻り値:
        This updated UploadPartRequest object.

    - #### isLastPart

          public boolean isLastPart()

      Returns true if the creator of this request has indicated this part is the last part being uploaded in a multipart upload.
      戻り値:
        True if the creator of this request has indicated this part is the last part being uploaded in a multipart upload.

    - #### setLastPart

          public void setLastPart(boolean isLastPart)

      Marks this part as the last part being uploaded in a multipart upload.
      パラメータ:
        `isLastPart` - Whether or not this is the last part being uploaded in a multipart upload.

    - #### withLastPart

          public UploadPartRequest withLastPart(boolean isLastPart)

      Marks this part as the last part being uploaded in a multipart upload, and returns this updated request object so that additional method calls can be chained together.
      パラメータ:
        `isLastPart` - Whether or not this is the last part being uploaded in a multipart upload.
      戻り値:
        This updated request object so that additional method calls can be chained together.