Class GetPartResponse

All Implemented Interfaces:
SdkPojo, ToCopyableBuilder<GetPartResponse.Builder,GetPartResponse>

@Generated("software.amazon.awssdk:codegen") public final class GetPartResponse extends S3Response implements ToCopyableBuilder<GetPartResponse.Builder,GetPartResponse>
  • Method Details

    • acceptRanges

      public final String acceptRanges()

      Indicates that a range of bytes was specified in the request.

      Returns:
      Indicates that a range of bytes was specified in the request.
    • contentLength

      public final Long contentLength()

      The size of the retrieved part in bytes.

      Returns:
      The size of the retrieved part in bytes.
    • eTag

      public final String eTag()

      The entity tag of the part.

      Returns:
      The entity tag of the part.
    • multipartUploadStatus

      public final MultipartUploadStatus multipartUploadStatus()

      The status of the multipart upload. Possible values are:

      • IN_PROGRESS - CompleteMultipartUpload has not been called. The part data exists, and can be overwritten by a subsequent UploadPart call with the same part number.

      • COMPLETED - CompleteMultipartUpload has been called. The part data is immutable, and the full object exists.

      If the service returns an enum value that is not available in the current SDK version, multipartUploadStatus will return MultipartUploadStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from multipartUploadStatusAsString().

      Returns:
      The status of the multipart upload. Possible values are:

      • IN_PROGRESS - CompleteMultipartUpload has not been called. The part data exists, and can be overwritten by a subsequent UploadPart call with the same part number.

      • COMPLETED - CompleteMultipartUpload has been called. The part data is immutable, and the full object exists.

      See Also:
    • multipartUploadStatusAsString

      public final String multipartUploadStatusAsString()

      The status of the multipart upload. Possible values are:

      • IN_PROGRESS - CompleteMultipartUpload has not been called. The part data exists, and can be overwritten by a subsequent UploadPart call with the same part number.

      • COMPLETED - CompleteMultipartUpload has been called. The part data is immutable, and the full object exists.

      If the service returns an enum value that is not available in the current SDK version, multipartUploadStatus will return MultipartUploadStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from multipartUploadStatusAsString().

      Returns:
      The status of the multipart upload. Possible values are:

      • IN_PROGRESS - CompleteMultipartUpload has not been called. The part data exists, and can be overwritten by a subsequent UploadPart call with the same part number.

      • COMPLETED - CompleteMultipartUpload has been called. The part data is immutable, and the full object exists.

      See Also:
    • checksumCRC32

      public final String checksumCRC32()

      The Base64 encoded, 32-bit CRC32 checksum of the part. This checksum is only present if the checksum was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

      Returns:
      The Base64 encoded, 32-bit CRC32 checksum of the part. This checksum is only present if the checksum was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.
    • checksumCRC32C

      public final String checksumCRC32C()

      The Base64 encoded, 32-bit CRC32C checksum of the part. This checksum is only present if the checksum was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

      Returns:
      The Base64 encoded, 32-bit CRC32C checksum of the part. This checksum is only present if the checksum was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.
    • checksumCRC64NVME

      public final String checksumCRC64NVME()

      The Base64 encoded, 64-bit CRC64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

      Returns:
      The Base64 encoded, 64-bit CRC64NVME checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.
    • checksumSHA1

      public final String checksumSHA1()

      The Base64 encoded, 160-bit SHA1 digest of the part. This checksum is only present if the checksum was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

      Returns:
      The Base64 encoded, 160-bit SHA1 digest of the part. This checksum is only present if the checksum was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.
    • checksumSHA256

      public final String checksumSHA256()

      The Base64 encoded, 256-bit SHA256 digest of the part. This checksum is only present if the checksum was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

      Returns:
      The Base64 encoded, 256-bit SHA256 digest of the part. This checksum is only present if the checksum was uploaded with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.
    • checksumSHA512

      public final String checksumSHA512()

      The Base64 encoded, 512-bit SHA512 digest of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

      Returns:
      The Base64 encoded, 512-bit SHA512 digest of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.
    • checksumMD5

      public final String checksumMD5()

      The Base64 encoded, 128-bit MD5 digest of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

      Returns:
      The Base64 encoded, 128-bit MD5 digest of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.
    • checksumXXHASH64

      public final String checksumXXHASH64()

      The Base64 encoded, 64-bit XXHASH64 checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

      Returns:
      The Base64 encoded, 64-bit XXHASH64 checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.
    • checksumXXHASH3

      public final String checksumXXHASH3()

      The Base64 encoded, 64-bit XXHASH3 checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

      Returns:
      The Base64 encoded, 64-bit XXHASH3 checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.
    • checksumXXHASH128

      public final String checksumXXHASH128()

      The Base64 encoded, 128-bit XXHASH128 checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.

      Returns:
      The Base64 encoded, 128-bit XXHASH128 checksum of the part. For more information, see Checking object integrity in the Amazon S3 User Guide.
    • versionId

      public final String versionId()

      Version ID of the object.

      Returns:
      Version ID of the object.
    • contentRange

      public final String contentRange()

      The portion of the part that was returned in the response.

      Returns:
      The portion of the part that was returned in the response.
    • serverSideEncryption

      public final ServerSideEncryption serverSideEncryption()

      The server-side encryption algorithm used when storing this multipart upload in Amazon S3.

      If the service returns an enum value that is not available in the current SDK version, serverSideEncryption will return ServerSideEncryption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from serverSideEncryptionAsString().

      Returns:
      The server-side encryption algorithm used when storing this multipart upload in Amazon S3.
      See Also:
    • serverSideEncryptionAsString

      public final String serverSideEncryptionAsString()

      The server-side encryption algorithm used when storing this multipart upload in Amazon S3.

      If the service returns an enum value that is not available in the current SDK version, serverSideEncryption will return ServerSideEncryption.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from serverSideEncryptionAsString().

      Returns:
      The server-side encryption algorithm used when storing this multipart upload in Amazon S3.
      See Also:
    • ssekmsKeyId

      public final String ssekmsKeyId()

      If present, indicates the ID of the KMS key that was used for object encryption.

      Returns:
      If present, indicates the ID of the KMS key that was used for object encryption.
    • bucketKeyEnabled

      public final Boolean bucketKeyEnabled()

      Indicates whether the multipart upload uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS).

      Returns:
      Indicates whether the multipart upload uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS).
    • storageClass

      public final StorageClass storageClass()

      Provides storage class information about where this part is stored.

      For in-progress multipart uploads, this header can return any of the valid values listed for this header.

      For completed multipart uploads, GetPart doesn't support the GLACIER, DEEP_ARCHIVE, or INTELLIGENT_TIERING storage classes.

      If the service returns an enum value that is not available in the current SDK version, storageClass will return StorageClass.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from storageClassAsString().

      Returns:
      Provides storage class information about where this part is stored.

      For in-progress multipart uploads, this header can return any of the valid values listed for this header.

      For completed multipart uploads, GetPart doesn't support the GLACIER, DEEP_ARCHIVE, or INTELLIGENT_TIERING storage classes.

      See Also:
    • storageClassAsString

      public final String storageClassAsString()

      Provides storage class information about where this part is stored.

      For in-progress multipart uploads, this header can return any of the valid values listed for this header.

      For completed multipart uploads, GetPart doesn't support the GLACIER, DEEP_ARCHIVE, or INTELLIGENT_TIERING storage classes.

      If the service returns an enum value that is not available in the current SDK version, storageClass will return StorageClass.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from storageClassAsString().

      Returns:
      Provides storage class information about where this part is stored.

      For in-progress multipart uploads, this header can return any of the valid values listed for this header.

      For completed multipart uploads, GetPart doesn't support the GLACIER, DEEP_ARCHIVE, or INTELLIGENT_TIERING storage classes.

      See Also:
    • requestCharged

      public final RequestCharged requestCharged()
      Returns the value of the RequestCharged property for this object.

      If the service returns an enum value that is not available in the current SDK version, requestCharged will return RequestCharged.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from requestChargedAsString().

      Returns:
      The value of the RequestCharged property for this object.
      See Also:
    • requestChargedAsString

      public final String requestChargedAsString()
      Returns the value of the RequestCharged property for this object.

      If the service returns an enum value that is not available in the current SDK version, requestCharged will return RequestCharged.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from requestChargedAsString().

      Returns:
      The value of the RequestCharged property for this object.
      See Also:
    • toBuilder

      public GetPartResponse.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<GetPartResponse.Builder,GetPartResponse>
      Specified by:
      toBuilder in class AwsResponse
      Returns:
      a builder for type T
    • builder

      public static GetPartResponse.Builder builder()
    • serializableBuilderClass

      public static Class<? extends GetPartResponse.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class AwsResponse
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class AwsResponse
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
      Description copied from class: SdkResponse
      Used to retrieve the value of a field from any class that extends SdkResponse. The field name specified should match the member name from the corresponding service-2.json model specified in the codegen-resources folder for a given service. The class specifies what class to cast the returned value to. If the returned value is also a modeled class, the SdkResponse.getValueForField(String, Class) method will again be available.
      Overrides:
      getValueForField in class SdkResponse
      Parameters:
      fieldName - The name of the member to be retrieved.
      clazz - The class to cast the returned object to.
      Returns:
      Optional containing the casted return value
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.