public static interface GetObjectResponse.Builder extends MediaStoreDataResponse.Builder, SdkPojo, CopyableBuilder<GetObjectResponse.Builder,GetObjectResponse>
Modifier and Type | Method and Description |
---|---|
GetObjectResponse.Builder |
cacheControl(String cacheControl)
An optional
CacheControl header that allows the caller to control the object's cache behavior. |
GetObjectResponse.Builder |
contentLength(Long contentLength)
The length of the object in bytes.
|
GetObjectResponse.Builder |
contentRange(String contentRange)
The range of bytes to retrieve.
|
GetObjectResponse.Builder |
contentType(String contentType)
The content type of the object.
|
GetObjectResponse.Builder |
eTag(String eTag)
The ETag that represents a unique instance of the object.
|
GetObjectResponse.Builder |
lastModified(Instant lastModified)
The date and time that the object was last modified.
|
GetObjectResponse.Builder |
statusCode(Integer statusCode)
The HTML status code of the request.
|
build, responseMetadata, responseMetadata
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, build
GetObjectResponse.Builder cacheControl(String cacheControl)
An optional CacheControl
header that allows the caller to control the object's cache behavior.
Headers can be passed in as specified in the HTTP spec at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.
Headers with a custom user-defined value are also accepted.
cacheControl
- An optional CacheControl
header that allows the caller to control the object's cache
behavior. Headers can be passed in as specified in the HTTP spec at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.
Headers with a custom user-defined value are also accepted.
GetObjectResponse.Builder contentRange(String contentRange)
The range of bytes to retrieve.
contentRange
- The range of bytes to retrieve.GetObjectResponse.Builder contentLength(Long contentLength)
The length of the object in bytes.
contentLength
- The length of the object in bytes.GetObjectResponse.Builder contentType(String contentType)
The content type of the object.
contentType
- The content type of the object.GetObjectResponse.Builder eTag(String eTag)
The ETag that represents a unique instance of the object.
eTag
- The ETag that represents a unique instance of the object.GetObjectResponse.Builder lastModified(Instant lastModified)
The date and time that the object was last modified.
lastModified
- The date and time that the object was last modified.GetObjectResponse.Builder statusCode(Integer statusCode)
The HTML status code of the request. Status codes ranging from 200 to 299 indicate success. All other status codes indicate the type of error that occurred.
statusCode
- The HTML status code of the request. Status codes ranging from 200 to 299 indicate success. All other
status codes indicate the type of error that occurred.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.