Interface FoundationModelDetails.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<FoundationModelDetails.Builder,FoundationModelDetails>,SdkBuilder<FoundationModelDetails.Builder,FoundationModelDetails>,SdkPojo
- Enclosing class:
- FoundationModelDetails
public static interface FoundationModelDetails.Builder extends SdkPojo, CopyableBuilder<FoundationModelDetails.Builder,FoundationModelDetails>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description FoundationModelDetails.BuildercustomizationsSupported(Collection<ModelCustomization> customizationsSupported)The customization that the model supports.FoundationModelDetails.BuildercustomizationsSupported(ModelCustomization... customizationsSupported)The customization that the model supports.FoundationModelDetails.BuildercustomizationsSupportedWithStrings(String... customizationsSupported)The customization that the model supports.FoundationModelDetails.BuildercustomizationsSupportedWithStrings(Collection<String> customizationsSupported)The customization that the model supports.FoundationModelDetails.BuilderinferenceTypesSupported(Collection<InferenceType> inferenceTypesSupported)The inference types that the model supports.FoundationModelDetails.BuilderinferenceTypesSupported(InferenceType... inferenceTypesSupported)The inference types that the model supports.FoundationModelDetails.BuilderinferenceTypesSupportedWithStrings(String... inferenceTypesSupported)The inference types that the model supports.FoundationModelDetails.BuilderinferenceTypesSupportedWithStrings(Collection<String> inferenceTypesSupported)The inference types that the model supports.FoundationModelDetails.BuilderinputModalities(Collection<ModelModality> inputModalities)The input modalities that the model supports.FoundationModelDetails.BuilderinputModalities(ModelModality... inputModalities)The input modalities that the model supports.FoundationModelDetails.BuilderinputModalitiesWithStrings(String... inputModalities)The input modalities that the model supports.FoundationModelDetails.BuilderinputModalitiesWithStrings(Collection<String> inputModalities)The input modalities that the model supports.FoundationModelDetails.BuildermodelArn(String modelArn)The model ARN.FoundationModelDetails.BuildermodelId(String modelId)The model identifier.default FoundationModelDetails.BuildermodelLifecycle(Consumer<FoundationModelLifecycle.Builder> modelLifecycle)Contains details about whether a model version is available or deprecatedFoundationModelDetails.BuildermodelLifecycle(FoundationModelLifecycle modelLifecycle)Contains details about whether a model version is available or deprecatedFoundationModelDetails.BuildermodelName(String modelName)The model name.FoundationModelDetails.BuilderoutputModalities(Collection<ModelModality> outputModalities)The output modalities that the model supports.FoundationModelDetails.BuilderoutputModalities(ModelModality... outputModalities)The output modalities that the model supports.FoundationModelDetails.BuilderoutputModalitiesWithStrings(String... outputModalities)The output modalities that the model supports.FoundationModelDetails.BuilderoutputModalitiesWithStrings(Collection<String> outputModalities)The output modalities that the model supports.FoundationModelDetails.BuilderproviderName(String providerName)he model's provider name.FoundationModelDetails.BuilderresponseStreamingSupported(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, sdkFields
-
-
-
-
Method Detail
-
modelArn
FoundationModelDetails.Builder modelArn(String modelArn)
The model ARN.
- Parameters:
modelArn- The model ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelId
FoundationModelDetails.Builder modelId(String 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)
he model's provider name.
- Parameters:
providerName- he 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
FoundationModelDetails.Builder modelLifecycle(FoundationModelLifecycle 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 FoundationModelDetails.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.Builderavoiding the need to create one manually viaFoundationModelLifecycle.builder().When the
Consumercompletes,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:
modelLifecycle(FoundationModelLifecycle)
-
-