Interface ModelSummary.Builder

  • Method Details

    • modelId

      ModelSummary.Builder modelId(String modelId)

      The identifier of the model.

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

      ModelSummary.Builder displayName(String displayName)

      The display name of the model.

      Parameters:
      displayName - The display name of the model.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • crossRegionStatus

      ModelSummary.Builder crossRegionStatus(String crossRegionStatus)

      The cross-region availability status of the model. NONE indicates the model is only available in a single region, REGIONAL indicates the model is available through regional inference, and GLOBAL indicates the model is available through global cross-region inference.

      Parameters:
      crossRegionStatus - The cross-region availability status of the model. NONE indicates the model is only available in a single region, REGIONAL indicates the model is available through regional inference, and GLOBAL indicates the model is available through global cross-region inference.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • crossRegionStatus

      ModelSummary.Builder crossRegionStatus(CrossRegionStatus crossRegionStatus)

      The cross-region availability status of the model. NONE indicates the model is only available in a single region, REGIONAL indicates the model is available through regional inference, and GLOBAL indicates the model is available through global cross-region inference.

      Parameters:
      crossRegionStatus - The cross-region availability status of the model. NONE indicates the model is only available in a single region, REGIONAL indicates the model is available through regional inference, and GLOBAL indicates the model is available through global cross-region inference.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • supportsPromptCaching

      ModelSummary.Builder supportsPromptCaching(Boolean supportsPromptCaching)

      Whether the model supports prompt caching.

      Parameters:
      supportsPromptCaching - Whether the model supports prompt caching.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportedAIPromptTypesWithStrings

      ModelSummary.Builder supportedAIPromptTypesWithStrings(Collection<String> supportedAIPromptTypes)

      The list of AI Prompt types that the model supports.

      Parameters:
      supportedAIPromptTypes - The list of AI Prompt types that the model supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportedAIPromptTypesWithStrings

      ModelSummary.Builder supportedAIPromptTypesWithStrings(String... supportedAIPromptTypes)

      The list of AI Prompt types that the model supports.

      Parameters:
      supportedAIPromptTypes - The list of AI Prompt types that the model supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportedAIPromptTypes

      ModelSummary.Builder supportedAIPromptTypes(Collection<AIPromptType> supportedAIPromptTypes)

      The list of AI Prompt types that the model supports.

      Parameters:
      supportedAIPromptTypes - The list of AI Prompt types that the model supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportedAIPromptTypes

      ModelSummary.Builder supportedAIPromptTypes(AIPromptType... supportedAIPromptTypes)

      The list of AI Prompt types that the model supports.

      Parameters:
      supportedAIPromptTypes - The list of AI Prompt types that the model supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • modelLifecycle

      ModelSummary.Builder modelLifecycle(String modelLifecycle)

      The current lifecycle of the model. ACTIVE indicates the model is recommended for use and LEGACY indicates the model is still usable but is deprecated.

      Parameters:
      modelLifecycle - The current lifecycle of the model. ACTIVE indicates the model is recommended for use and LEGACY indicates the model is still usable but is deprecated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • modelLifecycle

      ModelSummary.Builder modelLifecycle(ModelLifecycle modelLifecycle)

      The current lifecycle of the model. ACTIVE indicates the model is recommended for use and LEGACY indicates the model is still usable but is deprecated.

      Parameters:
      modelLifecycle - The current lifecycle of the model. ACTIVE indicates the model is recommended for use and LEGACY indicates the model is still usable but is deprecated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • legacyTimestamp

      ModelSummary.Builder legacyTimestamp(Instant legacyTimestamp)

      The timestamp when the model lifecycle will transition from ACTIVE to LEGACY.

      Parameters:
      legacyTimestamp - The timestamp when the model lifecycle will transition from ACTIVE to LEGACY .
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endOfLifeTimestamp

      ModelSummary.Builder endOfLifeTimestamp(Instant endOfLifeTimestamp)

      The timestamp when the model will reach end of life and no longer be available for use.

      Parameters:
      endOfLifeTimestamp - The timestamp when the model will reach end of life and no longer be available for use.
      Returns:
      Returns a reference to this object so that method calls can be chained together.