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 SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.oracle.bmc.responses.BmcResponse.BuilderisNotModified
 
- 
 
- 
- 
- 
Method Detail- 
__httpStatusCode__public GenerateTextResponse.Builder __httpStatusCode__(int __httpStatusCode__) - Specified by:
- __httpStatusCode__in interface- BmcResponse.Builder<GenerateTextResponse>
 
 - 
headerspublic GenerateTextResponse.Builder headers(Map<String,List<String>> headers) - Specified by:
- headersin interface- BmcResponse.Builder<GenerateTextResponse>
 
 - 
etagpublic GenerateTextResponse.Builder etag(String etag) For optimistic concurrency control.See if-match. - Parameters:
- etag- the value to set
- Returns:
- this builder
 
 - 
opcRequestIdpublic 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
 
 - 
modelDeprecationInfopublic 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
 
 - 
generateTextResultpublic GenerateTextResponse.Builder generateTextResult(GenerateTextResult generateTextResult) The returned GenerateTextResult instance.- Parameters:
- generateTextResult- the value to set
- Returns:
- this builder
 
 - 
eventStreampublic 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
 
 - 
copypublic GenerateTextResponse.Builder copy(GenerateTextResponse o) Copy method to populate the builder with values from the given instance.- Specified by:
- copyin interface- BmcResponse.Builder<GenerateTextResponse>
- Parameters:
- o- other request from which to copy values
- Returns:
- this builder instance
 
 - 
buildpublic GenerateTextResponse build() Build the response object.- Specified by:
- buildin interface- BmcResponse.Builder<GenerateTextResponse>
- Returns:
- the response object
 
 
- 
 
-