Interface GetObjectResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetObjectResponse.Builder,GetObjectResponse>,MediaStoreDataResponse.Builder,SdkBuilder<GetObjectResponse.Builder,GetObjectResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetObjectResponse
public static interface GetObjectResponse.Builder extends MediaStoreDataResponse.Builder, SdkPojo, CopyableBuilder<GetObjectResponse.Builder,GetObjectResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetObjectResponse.BuildercacheControl(String cacheControl)An optionalCacheControlheader that allows the caller to control the object's cache behavior.GetObjectResponse.BuildercontentLength(Long contentLength)The length of the object in bytes.GetObjectResponse.BuildercontentRange(String contentRange)The range of bytes to retrieve.GetObjectResponse.BuildercontentType(String contentType)The content type of the object.GetObjectResponse.BuildereTag(String eTag)The ETag that represents a unique instance of the object.GetObjectResponse.BuilderlastModified(Instant lastModified)The date and time that the object was last modified.GetObjectResponse.BuilderstatusCode(Integer statusCode)The HTML status code of the request.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.mediastoredata.model.MediaStoreDataResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
cacheControl
GetObjectResponse.Builder cacheControl(String cacheControl)
An optional
CacheControlheader 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.
- Parameters:
cacheControl- An optionalCacheControlheader 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentRange
GetObjectResponse.Builder contentRange(String contentRange)
The range of bytes to retrieve.
- Parameters:
contentRange- The range of bytes to retrieve.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentLength
GetObjectResponse.Builder contentLength(Long contentLength)
The length of the object in bytes.
- Parameters:
contentLength- The length of the object in bytes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentType
GetObjectResponse.Builder contentType(String contentType)
The content type of the object.
- Parameters:
contentType- The content type of the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eTag
GetObjectResponse.Builder eTag(String eTag)
The ETag that represents a unique instance of the object.
- Parameters:
eTag- The ETag that represents a unique instance of the object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModified
GetObjectResponse.Builder lastModified(Instant lastModified)
The date and time that the object was last modified.
- Parameters:
lastModified- The date and time that the object was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statusCode
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-