Class CfnInferenceComponentPropsMixin.InferenceComponentSchedulingConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnInferenceComponentPropsMixin.InferenceComponentSchedulingConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInferenceComponentPropsMixin.InferenceComponentSchedulingConfigProperty>
- Enclosing interface:
CfnInferenceComponentPropsMixin.InferenceComponentSchedulingConfigProperty
@Stability(Stable)
public static final class CfnInferenceComponentPropsMixin.InferenceComponentSchedulingConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInferenceComponentPropsMixin.InferenceComponentSchedulingConfigProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZoneBalance(CfnInferenceComponentPropsMixin.InferenceComponentAvailabilityZoneBalanceProperty availabilityZoneBalance) availabilityZoneBalance(IResolvable availabilityZoneBalance) build()Builds the configured instance.placementStrategy(String placementStrategy)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZoneBalance
@Stability(Stable) public CfnInferenceComponentPropsMixin.InferenceComponentSchedulingConfigProperty.Builder availabilityZoneBalance(IResolvable availabilityZoneBalance) Sets the value ofCfnInferenceComponentPropsMixin.InferenceComponentSchedulingConfigProperty.getAvailabilityZoneBalance()- Parameters:
availabilityZoneBalance- Configuration for balancing inference component copies across Availability Zones.- Returns:
this
-
availabilityZoneBalance
@Stability(Stable) public CfnInferenceComponentPropsMixin.InferenceComponentSchedulingConfigProperty.Builder availabilityZoneBalance(CfnInferenceComponentPropsMixin.InferenceComponentAvailabilityZoneBalanceProperty availabilityZoneBalance) Sets the value ofCfnInferenceComponentPropsMixin.InferenceComponentSchedulingConfigProperty.getAvailabilityZoneBalance()- Parameters:
availabilityZoneBalance- Configuration for balancing inference component copies across Availability Zones.- Returns:
this
-
placementStrategy
@Stability(Stable) public CfnInferenceComponentPropsMixin.InferenceComponentSchedulingConfigProperty.Builder placementStrategy(String placementStrategy) Sets the value ofCfnInferenceComponentPropsMixin.InferenceComponentSchedulingConfigProperty.getPlacementStrategy()- Parameters:
placementStrategy- the value to be set.- Returns:
this
-
build
@Stability(Stable) public CfnInferenceComponentPropsMixin.InferenceComponentSchedulingConfigProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInferenceComponentPropsMixin.InferenceComponentSchedulingConfigProperty>- Returns:
- a new instance of
CfnInferenceComponentPropsMixin.InferenceComponentSchedulingConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-