Class PredictWithResponseStreamResponse.Builder
- java.lang.Object
-
- com.oracle.bmc.modeldeployment.responses.PredictWithResponseStreamResponse.Builder
-
- All Implemented Interfaces:
BmcResponse.Builder<PredictWithResponseStreamResponse>
- Enclosing class:
- PredictWithResponseStreamResponse
public static class PredictWithResponseStreamResponse.Builder extends Object implements BmcResponse.Builder<PredictWithResponseStreamResponse>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PredictWithResponseStreamResponse.Builder
__httpStatusCode__(int __httpStatusCode__)
PredictWithResponseStreamResponse
build()
Build the response object.PredictWithResponseStreamResponse.Builder
copy(PredictWithResponseStreamResponse o)
Copy method to populate the builder with values from the given instance.PredictWithResponseStreamResponse.Builder
eventStream(InputStream eventStream)
Returns the event-stream for operations that support ‘text/event-stream’ media type.PredictWithResponseStreamResponse.Builder
headers(Map<String,List<String>> headers)
PredictWithResponseStreamResponse.Builder
inputStream(InputStream inputStream)
The returned java.io.InputStream instance.PredictWithResponseStreamResponse.Builder
opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.oracle.bmc.responses.BmcResponse.Builder
isNotModified
-
-
-
-
Method Detail
-
__httpStatusCode__
public PredictWithResponseStreamResponse.Builder __httpStatusCode__(int __httpStatusCode__)
- Specified by:
__httpStatusCode__
in interfaceBmcResponse.Builder<PredictWithResponseStreamResponse>
-
headers
public PredictWithResponseStreamResponse.Builder headers(Map<String,List<String>> headers)
- Specified by:
headers
in interfaceBmcResponse.Builder<PredictWithResponseStreamResponse>
-
opcRequestId
public PredictWithResponseStreamResponse.Builder opcRequestId(String opcRequestId)
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
-
inputStream
public PredictWithResponseStreamResponse.Builder inputStream(InputStream inputStream)
The returned java.io.InputStream instance.- Parameters:
inputStream
- the value to set- Returns:
- this builder
-
eventStream
public PredictWithResponseStreamResponse.Builder eventStream(InputStream eventStream)
Returns the event-stream for operations that support ‘text/event-stream’ media type.The value can be null in-case a non-streamed response is returned by the server. NOTE : Use try-with-resources or explicitly call eventStream.close() to close the stream. This is important to avoid the issue mentioned in the link below https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdktroubleshooting.htm#javasdktroubleshooting_topic_program_hangs_for_an_indefinite_time
- Returns:
- the event-stream
-
copy
public PredictWithResponseStreamResponse.Builder copy(PredictWithResponseStreamResponse o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcResponse.Builder<PredictWithResponseStreamResponse>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public PredictWithResponseStreamResponse build()
Build the response object.- Specified by:
build
in interfaceBmcResponse.Builder<PredictWithResponseStreamResponse>
- Returns:
- the response object
-
-