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