Class CfnEndpointPropsMixin.CapacitySizeProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnEndpointPropsMixin.CapacitySizeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointPropsMixin.CapacitySizeProperty>
- Enclosing interface:
CfnEndpointPropsMixin.CapacitySizeProperty
@Stability(Stable)
public static final class CfnEndpointPropsMixin.CapacitySizeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointPropsMixin.CapacitySizeProperty>
A builder for
CfnEndpointPropsMixin.CapacitySizeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnEndpointPropsMixin.CapacitySizeProperty.getType()Sets the value ofCfnEndpointPropsMixin.CapacitySizeProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnEndpointPropsMixin.CapacitySizeProperty.getType()- Parameters:
type- Specifies the endpoint capacity type.INSTANCE_COUNT: The endpoint activates based on the number of instances.CAPACITY_PERCENT: The endpoint activates based on the specified percentage of capacity.
- Returns:
this
-
value
Sets the value ofCfnEndpointPropsMixin.CapacitySizeProperty.getValue()- Parameters:
value- Defines the capacity size, either as a number of instances or a capacity percentage.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointPropsMixin.CapacitySizeProperty>- Returns:
- a new instance of
CfnEndpointPropsMixin.CapacitySizeProperty - Throws:
NullPointerException- if any required attribute was not provided
-