Interface ModelVariantConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ModelVariantConfig.Builder,
,ModelVariantConfig> SdkBuilder<ModelVariantConfig.Builder,
,ModelVariantConfig> SdkPojo
- Enclosing class:
ModelVariantConfig
public static interface ModelVariantConfig.Builder
extends SdkPojo, CopyableBuilder<ModelVariantConfig.Builder,ModelVariantConfig>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ModelVariantConfig.Builder
infrastructureConfig
(Consumer<ModelInfrastructureConfig.Builder> infrastructureConfig) The configuration for the infrastructure that the model will be deployed to.infrastructureConfig
(ModelInfrastructureConfig infrastructureConfig) The configuration for the infrastructure that the model will be deployed to.The name of the Amazon SageMaker Model entity.variantName
(String variantName) The name of the variant.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 Details
-
modelName
The name of the Amazon SageMaker Model entity.
- Parameters:
modelName
- The name of the Amazon SageMaker Model entity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variantName
The name of the variant.
- Parameters:
variantName
- The name of the variant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
infrastructureConfig
The configuration for the infrastructure that the model will be deployed to.
- Parameters:
infrastructureConfig
- The configuration for the infrastructure that the model will be deployed to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
infrastructureConfig
default ModelVariantConfig.Builder infrastructureConfig(Consumer<ModelInfrastructureConfig.Builder> infrastructureConfig) The configuration for the infrastructure that the model will be deployed to.
This is a convenience method that creates an instance of theModelInfrastructureConfig.Builder
avoiding the need to create one manually viaModelInfrastructureConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinfrastructureConfig(ModelInfrastructureConfig)
.- Parameters:
infrastructureConfig
- a consumer that will call methods onModelInfrastructureConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-