Interface InvokeModelResponse.Builder

    • Method Detail

      • body

        InvokeModelResponse.Builder body​(SdkBytes body)

        Inference response from the model in the format specified in the contentType header. To see the format and content of the request and response bodies for different models, refer to Inference parameters.

        Parameters:
        body - Inference response from the model in the format specified in the contentType header. To see the format and content of the request and response bodies for different models, refer to Inference parameters.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • contentType

        InvokeModelResponse.Builder contentType​(String contentType)

        The MIME type of the inference result.

        Parameters:
        contentType - The MIME type of the inference result.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • serviceTier

        InvokeModelResponse.Builder serviceTier​(String serviceTier)

        Specifies the processing tier type used for serving the request.

        Parameters:
        serviceTier - Specifies the processing tier type used for serving the request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ServiceTierType, ServiceTierType
      • serviceTier

        InvokeModelResponse.Builder serviceTier​(ServiceTierType serviceTier)

        Specifies the processing tier type used for serving the request.

        Parameters:
        serviceTier - Specifies the processing tier type used for serving the request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ServiceTierType, ServiceTierType