Interface FoundationModelDetails.Builder

  • Method Details

    • modelArn

      The model Amazon Resource Name (ARN).

      Parameters:
      modelArn - The model Amazon Resource Name (ARN).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • modelId

      The model identifier.

      Parameters:
      modelId - The model identifier.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • modelName

      FoundationModelDetails.Builder modelName(String modelName)

      The model name.

      Parameters:
      modelName - The model name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • providerName

      FoundationModelDetails.Builder providerName(String providerName)

      The model's provider name.

      Parameters:
      providerName - The model's provider name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inputModalitiesWithStrings

      FoundationModelDetails.Builder inputModalitiesWithStrings(Collection<String> inputModalities)

      The input modalities that the model supports.

      Parameters:
      inputModalities - The input modalities that the model supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inputModalitiesWithStrings

      FoundationModelDetails.Builder inputModalitiesWithStrings(String... inputModalities)

      The input modalities that the model supports.

      Parameters:
      inputModalities - The input modalities that the model supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inputModalities

      FoundationModelDetails.Builder inputModalities(Collection<ModelModality> inputModalities)

      The input modalities that the model supports.

      Parameters:
      inputModalities - The input modalities that the model supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inputModalities

      FoundationModelDetails.Builder inputModalities(ModelModality... inputModalities)

      The input modalities that the model supports.

      Parameters:
      inputModalities - The input modalities that the model supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • outputModalitiesWithStrings

      FoundationModelDetails.Builder outputModalitiesWithStrings(Collection<String> outputModalities)

      The output modalities that the model supports.

      Parameters:
      outputModalities - The output modalities that the model supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • outputModalitiesWithStrings

      FoundationModelDetails.Builder outputModalitiesWithStrings(String... outputModalities)

      The output modalities that the model supports.

      Parameters:
      outputModalities - The output modalities that the model supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • outputModalities

      FoundationModelDetails.Builder outputModalities(Collection<ModelModality> outputModalities)

      The output modalities that the model supports.

      Parameters:
      outputModalities - The output modalities that the model supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • outputModalities

      FoundationModelDetails.Builder outputModalities(ModelModality... outputModalities)

      The output modalities that the model supports.

      Parameters:
      outputModalities - The output modalities that the model supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • responseStreamingSupported

      FoundationModelDetails.Builder responseStreamingSupported(Boolean responseStreamingSupported)

      Indicates whether the model supports streaming.

      Parameters:
      responseStreamingSupported - Indicates whether the model supports streaming.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • customizationsSupportedWithStrings

      FoundationModelDetails.Builder customizationsSupportedWithStrings(Collection<String> customizationsSupported)

      The customization that the model supports.

      Parameters:
      customizationsSupported - The customization that the model supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • customizationsSupportedWithStrings

      FoundationModelDetails.Builder customizationsSupportedWithStrings(String... customizationsSupported)

      The customization that the model supports.

      Parameters:
      customizationsSupported - The customization that the model supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • customizationsSupported

      FoundationModelDetails.Builder customizationsSupported(Collection<ModelCustomization> customizationsSupported)

      The customization that the model supports.

      Parameters:
      customizationsSupported - The customization that the model supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • customizationsSupported

      FoundationModelDetails.Builder customizationsSupported(ModelCustomization... customizationsSupported)

      The customization that the model supports.

      Parameters:
      customizationsSupported - The customization that the model supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inferenceTypesSupportedWithStrings

      FoundationModelDetails.Builder inferenceTypesSupportedWithStrings(Collection<String> inferenceTypesSupported)

      The inference types that the model supports.

      Parameters:
      inferenceTypesSupported - The inference types that the model supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inferenceTypesSupportedWithStrings

      FoundationModelDetails.Builder inferenceTypesSupportedWithStrings(String... inferenceTypesSupported)

      The inference types that the model supports.

      Parameters:
      inferenceTypesSupported - The inference types that the model supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inferenceTypesSupported

      FoundationModelDetails.Builder inferenceTypesSupported(Collection<InferenceType> inferenceTypesSupported)

      The inference types that the model supports.

      Parameters:
      inferenceTypesSupported - The inference types that the model supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inferenceTypesSupported

      FoundationModelDetails.Builder inferenceTypesSupported(InferenceType... inferenceTypesSupported)

      The inference types that the model supports.

      Parameters:
      inferenceTypesSupported - The inference types that the model supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • modelLifecycle

      Contains details about whether a model version is available or deprecated

      Parameters:
      modelLifecycle - Contains details about whether a model version is available or deprecated
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • modelLifecycle

      Contains details about whether a model version is available or deprecated

      This is a convenience method that creates an instance of the FoundationModelLifecycle.Builder avoiding the need to create one manually via FoundationModelLifecycle.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to modelLifecycle(FoundationModelLifecycle).

      Parameters:
      modelLifecycle - a consumer that will call methods on FoundationModelLifecycle.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: