Class GetRecordContentResponse.Builder
- java.lang.Object
-
- com.oracle.bmc.datalabelingservicedataplane.responses.GetRecordContentResponse.Builder
-
- All Implemented Interfaces:
BmcResponse.Builder<GetRecordContentResponse>
- Enclosing class:
- GetRecordContentResponse
public static class GetRecordContentResponse.Builder extends Object implements BmcResponse.Builder<GetRecordContentResponse>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetRecordContentResponse.Builder
__httpStatusCode__(int __httpStatusCode__)
GetRecordContentResponse
build()
Build the response object.GetRecordContentResponse.Builder
cacheControl(String cacheControl)
Cache-control allows us to tell browsers to cache assets, how long to store them, and whether to validate them.GetRecordContentResponse.Builder
contentDisposition(String contentDisposition)
The content disposition of the body, as described in RFC 2616, section 19.5.1.GetRecordContentResponse.Builder
contentLength(Long contentLength)
The content size of the body in bytes.GetRecordContentResponse.Builder
contentType(String contentType)
The content type as described in RFC 2616, section 14.17.GetRecordContentResponse.Builder
copy(GetRecordContentResponse o)
Copy method to populate the builder with values from the given instance.GetRecordContentResponse.Builder
etag(String etag)
For optimistic concurrency control.GetRecordContentResponse.Builder
headers(Map<String,List<String>> headers)
GetRecordContentResponse.Builder
inputStream(InputStream inputStream)
The returned java.io.InputStream instance, or null ifGetRecordContentResponse.isNotModified()
is true.GetRecordContentResponse.Builder
isNotModified(boolean isNotModified)
Flag to indicate whether or not the object was modified.GetRecordContentResponse.Builder
opcRequestId(String opcRequestId)
A unique Oracle-assigned identifier for the request.
-
-
-
Method Detail
-
__httpStatusCode__
public GetRecordContentResponse.Builder __httpStatusCode__(int __httpStatusCode__)
- Specified by:
__httpStatusCode__
in interfaceBmcResponse.Builder<GetRecordContentResponse>
-
headers
public GetRecordContentResponse.Builder headers(Map<String,List<String>> headers)
- Specified by:
headers
in interfaceBmcResponse.Builder<GetRecordContentResponse>
-
etag
public GetRecordContentResponse.Builder etag(String etag)
For optimistic concurrency control.See if-match.
- Parameters:
etag
- the value to set- Returns:
- this builder
-
opcRequestId
public GetRecordContentResponse.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 GetRecordContentResponse.Builder contentLength(Long contentLength)
The content size of the body in bytes.- Parameters:
contentLength
- the value to set- Returns:
- this builder
-
contentDisposition
public GetRecordContentResponse.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 GetRecordContentResponse.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 GetRecordContentResponse.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 GetRecordContentResponse.Builder inputStream(InputStream inputStream)
The returned java.io.InputStream instance, or null ifGetRecordContentResponse.isNotModified()
is true.- Parameters:
inputStream
- the value to set- Returns:
- this builder
-
isNotModified
public GetRecordContentResponse.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:
isNotModified
in interfaceBmcResponse.Builder<GetRecordContentResponse>
- Parameters:
true
- if the object was not modified
-
copy
public GetRecordContentResponse.Builder copy(GetRecordContentResponse o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcResponse.Builder<GetRecordContentResponse>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public GetRecordContentResponse build()
Build the response object.- Specified by:
build
in interfaceBmcResponse.Builder<GetRecordContentResponse>
- Returns:
- the response object
-
-