Class CfnEndpoint.VariantPropertyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnEndpoint.VariantPropertyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpoint.VariantPropertyProperty>
- Enclosing interface:
CfnEndpoint.VariantPropertyProperty
@Stability(Stable)
public static final class CfnEndpoint.VariantPropertyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpoint.VariantPropertyProperty>
A builder for
CfnEndpoint.VariantPropertyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.variantPropertyType(String variantPropertyType) Sets the value ofCfnEndpoint.VariantPropertyProperty.getVariantPropertyType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
variantPropertyType
@Stability(Stable) public CfnEndpoint.VariantPropertyProperty.Builder variantPropertyType(String variantPropertyType) Sets the value ofCfnEndpoint.VariantPropertyProperty.getVariantPropertyType()- Parameters:
variantPropertyType- The type of variant property. The supported values are:.DesiredInstanceCount: Overrides the existing variant instance counts using the InitialInstanceCount values in the ProductionVariants .DesiredWeight: Overrides the existing variant weights using the InitialVariantWeight values in the ProductionVariants .DataCaptureConfig: (Not currently supported.)
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpoint.VariantPropertyProperty>- Returns:
- a new instance of
CfnEndpoint.VariantPropertyProperty - Throws:
NullPointerException- if any required attribute was not provided
-