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