Class GetRecordPreviewContentResponse.Builder
- java.lang.Object
-
- com.oracle.bmc.datalabelingservicedataplane.responses.GetRecordPreviewContentResponse.Builder
-
- All Implemented Interfaces:
BmcResponse.Builder<GetRecordPreviewContentResponse>
- Enclosing class:
- GetRecordPreviewContentResponse
public static class GetRecordPreviewContentResponse.Builder extends Object implements BmcResponse.Builder<GetRecordPreviewContentResponse>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetRecordPreviewContentResponse.Builder__httpStatusCode__(int __httpStatusCode__)GetRecordPreviewContentResponsebuild()Build the response object.GetRecordPreviewContentResponse.BuildercacheControl(String cacheControl)Cache-control allows us to tell browsers to cache assets, how long to store them, and whether to validate them.GetRecordPreviewContentResponse.BuildercontentDisposition(String contentDisposition)The content disposition of the body, as described in RFC 2616, section 19.5.1.GetRecordPreviewContentResponse.BuildercontentLength(Long contentLength)The content size of the body in bytes.GetRecordPreviewContentResponse.BuildercontentType(String contentType)The content type as described in RFC 2616, section 14.17.GetRecordPreviewContentResponse.Buildercopy(GetRecordPreviewContentResponse o)Copy method to populate the builder with values from the given instance.GetRecordPreviewContentResponse.Builderetag(String etag)For optimistic concurrency control.GetRecordPreviewContentResponse.Builderheaders(Map<String,List<String>> headers)GetRecordPreviewContentResponse.BuilderinputStream(InputStream inputStream)The returned java.io.InputStream instance, or null ifGetRecordPreviewContentResponse.isNotModified()is true.GetRecordPreviewContentResponse.BuilderisNotModified(boolean isNotModified)Flag to indicate whether or not the object was modified.GetRecordPreviewContentResponse.BuilderopcRequestId(String opcRequestId)A unique Oracle-assigned identifier for the request.
-
-
-
Method Detail
-
__httpStatusCode__
public GetRecordPreviewContentResponse.Builder __httpStatusCode__(int __httpStatusCode__)
- Specified by:
__httpStatusCode__in interfaceBmcResponse.Builder<GetRecordPreviewContentResponse>
-
headers
public GetRecordPreviewContentResponse.Builder headers(Map<String,List<String>> headers)
- Specified by:
headersin interfaceBmcResponse.Builder<GetRecordPreviewContentResponse>
-
etag
public GetRecordPreviewContentResponse.Builder etag(String etag)
For optimistic concurrency control.See if-match.
- Parameters:
etag- the value to set- Returns:
- this builder
-
opcRequestId
public GetRecordPreviewContentResponse.Builder opcRequestId(String opcRequestId)
A unique Oracle-assigned identifier for the request.If you need to contact Oracle about a particular request, please provide the request ID.
- Parameters:
opcRequestId- the value to set- Returns:
- this builder
-
contentLength
public GetRecordPreviewContentResponse.Builder contentLength(Long contentLength)
The content size of the body in bytes.- Parameters:
contentLength- the value to set- Returns:
- this builder
-
contentDisposition
public GetRecordPreviewContentResponse.Builder contentDisposition(String contentDisposition)
The content disposition of the body, as described in RFC 2616, section 19.5.1.- Parameters:
contentDisposition- the value to set- Returns:
- this builder
-
contentType
public GetRecordPreviewContentResponse.Builder contentType(String contentType)
The content type as described in RFC 2616, section 14.17.- Parameters:
contentType- the value to set- Returns:
- this builder
-
cacheControl
public GetRecordPreviewContentResponse.Builder cacheControl(String cacheControl)
Cache-control allows us to tell browsers to cache assets, how long to store them, and whether to validate them.- Parameters:
cacheControl- the value to set- Returns:
- this builder
-
inputStream
public GetRecordPreviewContentResponse.Builder inputStream(InputStream inputStream)
The returned java.io.InputStream instance, or null ifGetRecordPreviewContentResponse.isNotModified()is true.- Parameters:
inputStream- the value to set- Returns:
- this builder
-
isNotModified
public GetRecordPreviewContentResponse.Builder isNotModified(boolean isNotModified)
Flag to indicate whether or not the object was modified.If this is true, the getter for the object itself will return null. Callers should check this if they specified one of the request params that might result in a conditional response (like ‘if-match’/‘if-none-match’).
- Specified by:
isNotModifiedin interfaceBmcResponse.Builder<GetRecordPreviewContentResponse>- Parameters:
true- if the object was not modified
-
copy
public GetRecordPreviewContentResponse.Builder copy(GetRecordPreviewContentResponse o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcResponse.Builder<GetRecordPreviewContentResponse>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public GetRecordPreviewContentResponse build()
Build the response object.- Specified by:
buildin interfaceBmcResponse.Builder<GetRecordPreviewContentResponse>- Returns:
- the response object
-
-