public static class ChatResponse.Builder extends Object implements BmcResponse.Builder<ChatResponse>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ChatResponse.Builder |
__httpStatusCode__(int __httpStatusCode__) |
ChatResponse |
build()
Build the response object.
|
ChatResponse.Builder |
chatResult(ChatResult chatResult)
The returned
ChatResult instance. |
ChatResponse.Builder |
copy(ChatResponse o)
Copy method to populate the builder with values from the given instance.
|
ChatResponse.Builder |
eventStream(InputStream eventStream)
Returns the event-stream for operations that support ‘text/event-stream’ media type.
|
ChatResponse.Builder |
headers(Map<String,List<String>> headers) |
ChatResponse.Builder |
opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isNotModified
public ChatResponse.Builder __httpStatusCode__(int __httpStatusCode__)
__httpStatusCode__
in interface BmcResponse.Builder<ChatResponse>
public ChatResponse.Builder headers(Map<String,List<String>> headers)
headers
in interface BmcResponse.Builder<ChatResponse>
public ChatResponse.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.
opcRequestId
- the value to setpublic ChatResponse.Builder chatResult(ChatResult chatResult)
The returned ChatResult
instance.
chatResult
- the value to setpublic ChatResponse.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
public ChatResponse.Builder copy(ChatResponse o)
Copy method to populate the builder with values from the given instance.
copy
in interface BmcResponse.Builder<ChatResponse>
o
- other request from which to copy valuespublic ChatResponse build()
Build the response object.
build
in interface BmcResponse.Builder<ChatResponse>
Copyright © 2016–2024. All rights reserved.