Class ChatResponse


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20231130")
    public class ChatResponse
    extends BmcResponse
    • Method Detail

      • getEtag

        public String getEtag()
        For optimistic concurrency control.

        See if-match.

        Returns:
        the value
      • getOpcRequestId

        public String getOpcRequestId()
        Unique Oracle-assigned identifier for the request.

        If you need to contact Oracle about a particular request, please provide the request ID.

        Returns:
        the value
      • getChatResult

        public ChatResult getChatResult()
        The returned ChatResult instance.
        Returns:
        the value
      • getEventStream

        public InputStream getEventStream()
        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 getEventStream().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
      • builder

        public static ChatResponse.Builder builder()
        Return a new builder for this response object.
        Returns:
        builder for the response object