Class InvokeModelRequest

    • Method Detail

      • body

        public final SdkBytes body()

        Input data in the format specified in the content-type request header. To see the format and content of this field for different models, refer to Inference parameters.

        Returns:
        Input data in the format specified in the content-type request header. To see the format and content of this field for different models, refer to Inference parameters.
      • contentType

        public final String contentType()

        The MIME type of the input data in the request. The default value is application/json.

        Returns:
        The MIME type of the input data in the request. The default value is application/json.
      • accept

        public final String accept()

        The desired MIME type of the inference body in the response. The default value is application/json.

        Returns:
        The desired MIME type of the inference body in the response. The default value is application/json.
      • modelId

        public final String modelId()

        Identifier of the model.

        Returns:
        Identifier of the model.
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object