Class WriteGetObjectResponseRequest

    • Method Detail

      • requestRoute

        public final String requestRoute()

        Route prefix to the HTTP URL generated.

        Returns:
        Route prefix to the HTTP URL generated.
      • requestToken

        public final String requestToken()

        A single use encrypted token that maps WriteGetObjectResponse to the end user GetObject request.

        Returns:
        A single use encrypted token that maps WriteGetObjectResponse to the end user GetObject request.
      • statusCode

        public final Integer statusCode()

        The integer status code for an HTTP response of a corresponding GetObject request. The following is a list of status codes.

        • 200 - OK

        • 206 - Partial Content

        • 304 - Not Modified

        • 400 - Bad Request

        • 401 - Unauthorized

        • 403 - Forbidden

        • 404 - Not Found

        • 405 - Method Not Allowed

        • 409 - Conflict

        • 411 - Length Required

        • 412 - Precondition Failed

        • 416 - Range Not Satisfiable

        • 500 - Internal Server Error

        • 503 - Service Unavailable

        Returns:
        The integer status code for an HTTP response of a corresponding GetObject request. The following is a list of status codes.

        • 200 - OK

        • 206 - Partial Content

        • 304 - Not Modified

        • 400 - Bad Request

        • 401 - Unauthorized

        • 403 - Forbidden

        • 404 - Not Found

        • 405 - Method Not Allowed

        • 409 - Conflict

        • 411 - Length Required

        • 412 - Precondition Failed

        • 416 - Range Not Satisfiable

        • 500 - Internal Server Error

        • 503 - Service Unavailable

      • errorCode

        public final String errorCode()

        A string that uniquely identifies an error condition. Returned in the <Code> tag of the error XML response for a corresponding GetObject call. Cannot be used with a successful StatusCode header or when the transformed object is provided in the body. All error codes from S3 are sentence-cased. The regular expression (regex) value is "^[A-Z][a-zA-Z]+$".

        Returns:
        A string that uniquely identifies an error condition. Returned in the <Code> tag of the error XML response for a corresponding GetObject call. Cannot be used with a successful StatusCode header or when the transformed object is provided in the body. All error codes from S3 are sentence-cased. The regular expression (regex) value is "^[A-Z][a-zA-Z]+$".
      • errorMessage

        public final String errorMessage()

        Contains a generic description of the error condition. Returned in the <Message> tag of the error XML response for a corresponding GetObject call. Cannot be used with a successful StatusCode header or when the transformed object is provided in body.

        Returns:
        Contains a generic description of the error condition. Returned in the <Message> tag of the error XML response for a corresponding GetObject call. Cannot be used with a successful StatusCode header or when the transformed object is provided in body.
      • acceptRanges

        public final String acceptRanges()

        Indicates that a range of bytes was specified.

        Returns:
        Indicates that a range of bytes was specified.
      • cacheControl

        public final String cacheControl()

        Specifies caching behavior along the request/reply chain.

        Returns:
        Specifies caching behavior along the request/reply chain.
      • contentDisposition

        public final String contentDisposition()

        Specifies presentational information for the object.

        Returns:
        Specifies presentational information for the object.
      • contentEncoding

        public final String contentEncoding()

        Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.

        Returns:
        Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
      • contentLanguage

        public final String contentLanguage()

        The language the content is in.

        Returns:
        The language the content is in.
      • contentLength

        public final Long contentLength()

        The size of the content body in bytes.

        Returns:
        The size of the content body in bytes.
      • contentRange

        public final String contentRange()

        The portion of the object returned in the response.

        Returns:
        The portion of the object returned in the response.
      • contentType

        public final String contentType()

        A standard MIME type describing the format of the object data.

        Returns:
        A standard MIME type describing the format of the object data.
      • checksumCRC32

        public final String checksumCRC32()

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC32 checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

        Returns:
        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC32 checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

      • checksumCRC32C

        public final String checksumCRC32C()

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC32C checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

        Returns:
        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 32-bit CRC32C checksum of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

      • checksumSHA1

        public final String checksumSHA1()

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 160-bit SHA-1 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

        Returns:
        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 160-bit SHA-1 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

      • checksumSHA256

        public final String checksumSHA256()

        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 256-bit SHA-256 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

        Returns:
        This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This specifies the base64-encoded, 256-bit SHA-256 digest of the object returned by the Object Lambda function. This may not match the checksum for the object stored in Amazon S3. Amazon S3 will perform validation of the checksum values only when the original GetObject request required checksum validation. For more information about checksums, see Checking object integrity in the Amazon S3 User Guide.

        Only one checksum header can be specified at a time. If you supply multiple checksum headers, this request will fail.

      • deleteMarker

        public final Boolean deleteMarker()

        Specifies whether an object stored in Amazon S3 is (true) or is not (false) a delete marker.

        Returns:
        Specifies whether an object stored in Amazon S3 is (true) or is not (false) a delete marker.
      • eTag

        public final String eTag()

        An opaque identifier assigned by a web server to a specific version of a resource found at a URL.

        Returns:
        An opaque identifier assigned by a web server to a specific version of a resource found at a URL.
      • expires

        public final Instant expires()

        The date and time at which the object is no longer cacheable.

        Returns:
        The date and time at which the object is no longer cacheable.
      • expiration

        public final String expiration()

        If the object expiration is configured (see PUT Bucket lifecycle), the response includes this header. It includes the expiry-date and rule-id key-value pairs that provide the object expiration information. The value of the rule-id is URL-encoded.

        Returns:
        If the object expiration is configured (see PUT Bucket lifecycle), the response includes this header. It includes the expiry-date and rule-id key-value pairs that provide the object expiration information. The value of the rule-id is URL-encoded.
      • lastModified

        public final Instant lastModified()

        The date and time that the object was last modified.

        Returns:
        The date and time that the object was last modified.
      • missingMeta

        public final Integer missingMeta()

        Set to the number of metadata entries not returned in x-amz-meta headers. This can happen if you create metadata using an API like SOAP that supports more flexible metadata than the REST API. For example, using SOAP, you can create metadata whose values are not legal HTTP headers.

        Returns:
        Set to the number of metadata entries not returned in x-amz-meta headers. This can happen if you create metadata using an API like SOAP that supports more flexible metadata than the REST API. For example, using SOAP, you can create metadata whose values are not legal HTTP headers.
      • hasMetadata

        public final boolean hasMetadata()
        For responses, this returns true if the service returned a value for the Metadata property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • metadata

        public final Map<String,​String> metadata()

        A map of metadata to store with the object in S3.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasMetadata() method.

        Returns:
        A map of metadata to store with the object in S3.
      • objectLockModeAsString

        public final String objectLockModeAsString()

        Indicates whether an object stored in Amazon S3 has Object Lock enabled. For more information about S3 Object Lock, see Object Lock.

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

        Returns:
        Indicates whether an object stored in Amazon S3 has Object Lock enabled. For more information about S3 Object Lock, see Object Lock.
        See Also:
        ObjectLockMode
      • objectLockRetainUntilDate

        public final Instant objectLockRetainUntilDate()

        The date and time when Object Lock is configured to expire.

        Returns:
        The date and time when Object Lock is configured to expire.
      • partsCount

        public final Integer partsCount()

        The count of parts this object has.

        Returns:
        The count of parts this object has.
      • replicationStatusAsString

        public final String replicationStatusAsString()

        Indicates if request involves bucket that is either a source or destination in a Replication rule. For more information about S3 Replication, see Replication.

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

        Returns:
        Indicates if request involves bucket that is either a source or destination in a Replication rule. For more information about S3 Replication, see Replication.
        See Also:
        ReplicationStatus
      • restore

        public final String restore()

        Provides information about object restoration operation and expiration time of the restored object copy.

        Returns:
        Provides information about object restoration operation and expiration time of the restored object copy.
      • serverSideEncryptionAsString

        public final String serverSideEncryptionAsString()

        The server-side encryption algorithm used when storing requested object in Amazon S3 (for example, AES256, aws:kms).

        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 requested object in Amazon S3 (for example, AES256, aws:kms).
        See Also:
        ServerSideEncryption
      • sseCustomerAlgorithm

        public final String sseCustomerAlgorithm()

        Encryption algorithm used if server-side encryption with a customer-provided encryption key was specified for object stored in Amazon S3.

        Returns:
        Encryption algorithm used if server-side encryption with a customer-provided encryption key was specified for object stored in Amazon S3.
      • ssekmsKeyId

        public final String ssekmsKeyId()

        If present, specifies the ID (Key ID, Key ARN, or Key Alias) of the Amazon Web Services Key Management Service (Amazon Web Services KMS) symmetric encryption customer managed key that was used for stored in Amazon S3 object.

        Returns:
        If present, specifies the ID (Key ID, Key ARN, or Key Alias) of the Amazon Web Services Key Management Service (Amazon Web Services KMS) symmetric encryption customer managed key that was used for stored in Amazon S3 object.
      • storageClass

        public final StorageClass storageClass()

        Provides storage class information of the object. Amazon S3 returns this header for all objects except for S3 Standard storage class objects.

        For more information, see 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 of the object. Amazon S3 returns this header for all objects except for S3 Standard storage class objects.

        For more information, see Storage Classes.

        See Also:
        StorageClass
      • storageClassAsString

        public final String storageClassAsString()

        Provides storage class information of the object. Amazon S3 returns this header for all objects except for S3 Standard storage class objects.

        For more information, see 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 of the object. Amazon S3 returns this header for all objects except for S3 Standard storage class objects.

        For more information, see Storage Classes.

        See Also:
        StorageClass
      • tagCount

        public final Integer tagCount()

        The number of tags, if any, on the object.

        Returns:
        The number of tags, if any, on the object.
      • versionId

        public final String versionId()

        An ID used to reference a specific version of the object.

        Returns:
        An ID used to reference a specific version of the object.
      • bucketKeyEnabled

        public final Boolean bucketKeyEnabled()

        Indicates whether the object stored in Amazon S3 uses an S3 bucket key for server-side encryption with Amazon Web Services KMS (SSE-KMS).

        Returns:
        Indicates whether the object stored in Amazon S3 uses an S3 bucket key for server-side encryption with Amazon Web Services KMS (SSE-KMS).
      • 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