Interface InvokeModelResponse.Builder

All Superinterfaces:
AwsResponse.Builder, BedrockRuntimeResponse.Builder, Buildable, CopyableBuilder<InvokeModelResponse.Builder,InvokeModelResponse>, SdkBuilder<InvokeModelResponse.Builder,InvokeModelResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
InvokeModelResponse

public static interface InvokeModelResponse.Builder extends BedrockRuntimeResponse.Builder, SdkPojo, CopyableBuilder<InvokeModelResponse.Builder,InvokeModelResponse>
  • Method Details

    • 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.