Interface FoundationModelSummary.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<FoundationModelSummary.Builder,
,FoundationModelSummary> SdkBuilder<FoundationModelSummary.Builder,
,FoundationModelSummary> SdkPojo
- Enclosing class:
FoundationModelSummary
-
Method Summary
Modifier and TypeMethodDescriptioncustomizationsSupported
(Collection<ModelCustomization> customizationsSupported) Whether the model supports fine-tuning or continual pre-training.customizationsSupported
(ModelCustomization... customizationsSupported) Whether the model supports fine-tuning or continual pre-training.customizationsSupportedWithStrings
(String... customizationsSupported) Whether the model supports fine-tuning or continual pre-training.customizationsSupportedWithStrings
(Collection<String> customizationsSupported) Whether the model supports fine-tuning or continual pre-training.inferenceTypesSupported
(Collection<InferenceType> inferenceTypesSupported) The inference types that the model supports.inferenceTypesSupported
(InferenceType... inferenceTypesSupported) The inference types that the model supports.inferenceTypesSupportedWithStrings
(String... inferenceTypesSupported) The inference types that the model supports.inferenceTypesSupportedWithStrings
(Collection<String> inferenceTypesSupported) The inference types that the model supports.inputModalities
(Collection<ModelModality> inputModalities) The input modalities that the model supports.inputModalities
(ModelModality... inputModalities) The input modalities that the model supports.inputModalitiesWithStrings
(String... inputModalities) The input modalities that the model supports.inputModalitiesWithStrings
(Collection<String> inputModalities) The input modalities that the model supports.The Amazon Resource Name (ARN) of the foundation model.The model ID of the foundation model.default FoundationModelSummary.Builder
modelLifecycle
(Consumer<FoundationModelLifecycle.Builder> modelLifecycle) Contains details about whether a model version is available or deprecated.modelLifecycle
(FoundationModelLifecycle modelLifecycle) Contains details about whether a model version is available or deprecated.The name of the model.outputModalities
(Collection<ModelModality> outputModalities) The output modalities that the model supports.outputModalities
(ModelModality... outputModalities) The output modalities that the model supports.outputModalitiesWithStrings
(String... outputModalities) The output modalities that the model supports.outputModalitiesWithStrings
(Collection<String> outputModalities) The output modalities that the model supports.providerName
(String providerName) The model's provider name.responseStreamingSupported
(Boolean responseStreamingSupported) Indicates whether the model supports streaming.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
modelArn
The Amazon Resource Name (ARN) of the foundation model.
- Parameters:
modelArn
- The Amazon Resource Name (ARN) of the foundation model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelId
The model ID of the foundation model.
- Parameters:
modelId
- The model ID of the foundation model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelName
The name of the model.
- Parameters:
modelName
- The name of the model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
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
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
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
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
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
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
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
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
FoundationModelSummary.Builder customizationsSupportedWithStrings(Collection<String> customizationsSupported) Whether the model supports fine-tuning or continual pre-training.
- Parameters:
customizationsSupported
- Whether the model supports fine-tuning or continual pre-training.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customizationsSupportedWithStrings
FoundationModelSummary.Builder customizationsSupportedWithStrings(String... customizationsSupported) Whether the model supports fine-tuning or continual pre-training.
- Parameters:
customizationsSupported
- Whether the model supports fine-tuning or continual pre-training.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customizationsSupported
FoundationModelSummary.Builder customizationsSupported(Collection<ModelCustomization> customizationsSupported) Whether the model supports fine-tuning or continual pre-training.
- Parameters:
customizationsSupported
- Whether the model supports fine-tuning or continual pre-training.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customizationsSupported
FoundationModelSummary.Builder customizationsSupported(ModelCustomization... customizationsSupported) Whether the model supports fine-tuning or continual pre-training.
- Parameters:
customizationsSupported
- Whether the model supports fine-tuning or continual pre-training.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inferenceTypesSupportedWithStrings
FoundationModelSummary.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
FoundationModelSummary.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
FoundationModelSummary.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
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
default FoundationModelSummary.Builder modelLifecycle(Consumer<FoundationModelLifecycle.Builder> modelLifecycle) Contains details about whether a model version is available or deprecated.
This is a convenience method that creates an instance of theFoundationModelLifecycle.Builder
avoiding the need to create one manually viaFoundationModelLifecycle.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomodelLifecycle(FoundationModelLifecycle)
.- Parameters:
modelLifecycle
- a consumer that will call methods onFoundationModelLifecycle.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-