Class ChatResponse.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • etag

        public ChatResponse.Builder etag​(String etag)
        For optimistic concurrency control.

        See if-match.

        Parameters:
        etag - the value to set
        Returns:
        this builder
      • opcRequestId

        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.

        Parameters:
        opcRequestId - the value to set
        Returns:
        this builder
      • chatResult

        public ChatResponse.Builder chatResult​(ChatResult chatResult)
        The returned ChatResult instance.
        Parameters:
        chatResult - the value to set
        Returns:
        this builder
      • eventStream

        public 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

        Returns:
        the event-stream