Class GenerateTextResponse.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeaiinference.responses.GenerateTextResponse.Builder
-
- All Implemented Interfaces:
BmcResponse.Builder<GenerateTextResponse>
- Enclosing class:
- GenerateTextResponse
public static class GenerateTextResponse.Builder extends Object implements BmcResponse.Builder<GenerateTextResponse>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenerateTextResponse.Builder__httpStatusCode__(int __httpStatusCode__)GenerateTextResponsebuild()Build the response object.GenerateTextResponse.Buildercopy(GenerateTextResponse o)Copy method to populate the builder with values from the given instance.GenerateTextResponse.Builderetag(String etag)For optimistic concurrency control.GenerateTextResponse.BuildereventStream(InputStream eventStream)Returns the event-stream for operations that support ‘text/event-stream’ media type.GenerateTextResponse.BuildergenerateTextResult(GenerateTextResult generateTextResult)The returned GenerateTextResult instance.GenerateTextResponse.Builderheaders(Map<String,List<String>> headers)GenerateTextResponse.BuildermodelDeprecationInfo(String modelDeprecationInfo)Provides deprecation details for models, included only when a model is deprecated.GenerateTextResponse.BuilderopcRequestId(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 GenerateTextResponse.Builder __httpStatusCode__(int __httpStatusCode__)
- Specified by:
__httpStatusCode__in interfaceBmcResponse.Builder<GenerateTextResponse>
-
headers
public GenerateTextResponse.Builder headers(Map<String,List<String>> headers)
- Specified by:
headersin interfaceBmcResponse.Builder<GenerateTextResponse>
-
etag
public GenerateTextResponse.Builder etag(String etag)
For optimistic concurrency control.See if-match.
- Parameters:
etag- the value to set- Returns:
- this builder
-
opcRequestId
public GenerateTextResponse.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
-
modelDeprecationInfo
public GenerateTextResponse.Builder modelDeprecationInfo(String modelDeprecationInfo)
Provides deprecation details for models, included only when a model is deprecated.- Parameters:
modelDeprecationInfo- the value to set- Returns:
- this builder
-
generateTextResult
public GenerateTextResponse.Builder generateTextResult(GenerateTextResult generateTextResult)
The returned GenerateTextResult instance.- Parameters:
generateTextResult- the value to set- Returns:
- this builder
-
eventStream
public GenerateTextResponse.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 GenerateTextResponse.Builder copy(GenerateTextResponse o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcResponse.Builder<GenerateTextResponse>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public GenerateTextResponse build()
Build the response object.- Specified by:
buildin interfaceBmcResponse.Builder<GenerateTextResponse>- Returns:
- the response object
-
-