Class CfnInferenceComponent.InferenceComponentAvailabilityZoneBalanceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnInferenceComponent.InferenceComponentAvailabilityZoneBalanceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInferenceComponent.InferenceComponentAvailabilityZoneBalanceProperty>
- Enclosing interface:
CfnInferenceComponent.InferenceComponentAvailabilityZoneBalanceProperty
@Stability(Stable)
public static final class CfnInferenceComponent.InferenceComponentAvailabilityZoneBalanceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInferenceComponent.InferenceComponentAvailabilityZoneBalanceProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.enforcementMode(String enforcementMode) maxImbalance(Number maxImbalance)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enforcementMode
@Stability(Stable) public CfnInferenceComponent.InferenceComponentAvailabilityZoneBalanceProperty.Builder enforcementMode(String enforcementMode) Sets the value ofCfnInferenceComponent.InferenceComponentAvailabilityZoneBalanceProperty.getEnforcementMode()- Parameters:
enforcementMode- the value to be set. This parameter is required.- Returns:
this
-
maxImbalance
@Stability(Stable) public CfnInferenceComponent.InferenceComponentAvailabilityZoneBalanceProperty.Builder maxImbalance(Number maxImbalance) Sets the value ofCfnInferenceComponent.InferenceComponentAvailabilityZoneBalanceProperty.getMaxImbalance()- Parameters:
maxImbalance- The maximum allowed difference in the number of inference component copies between any two Availability Zones.- Returns:
this
-
build
@Stability(Stable) public CfnInferenceComponent.InferenceComponentAvailabilityZoneBalanceProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInferenceComponent.InferenceComponentAvailabilityZoneBalanceProperty>- Returns:
- a new instance of
CfnInferenceComponent.InferenceComponentAvailabilityZoneBalanceProperty - Throws:
NullPointerException- if any required attribute was not provided
-