Class CfnFeatureGroup.ThroughputConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnFeatureGroup.ThroughputConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFeatureGroup.ThroughputConfigProperty>
- Enclosing interface:
CfnFeatureGroup.ThroughputConfigProperty
@Stability(Stable)
public static final class CfnFeatureGroup.ThroughputConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFeatureGroup.ThroughputConfigProperty>
A builder for
CfnFeatureGroup.ThroughputConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.provisionedReadCapacityUnits
(Number provisionedReadCapacityUnits) provisionedWriteCapacityUnits
(Number provisionedWriteCapacityUnits) throughputMode
(String throughputMode) Sets the value ofCfnFeatureGroup.ThroughputConfigProperty.getThroughputMode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
throughputMode
@Stability(Stable) public CfnFeatureGroup.ThroughputConfigProperty.Builder throughputMode(String throughputMode) Sets the value ofCfnFeatureGroup.ThroughputConfigProperty.getThroughputMode()
- Parameters:
throughputMode
- The mode used for your feature group throughput:ON_DEMAND
orPROVISIONED
. This parameter is required.- Returns:
this
-
provisionedReadCapacityUnits
@Stability(Stable) public CfnFeatureGroup.ThroughputConfigProperty.Builder provisionedReadCapacityUnits(Number provisionedReadCapacityUnits) - Parameters:
provisionedReadCapacityUnits
- For provisioned feature groups with online store enabled, this indicates the read throughput you are billed for and can consume without throttling. This field is not applicable for on-demand feature groups.- Returns:
this
-
provisionedWriteCapacityUnits
@Stability(Stable) public CfnFeatureGroup.ThroughputConfigProperty.Builder provisionedWriteCapacityUnits(Number provisionedWriteCapacityUnits) - Parameters:
provisionedWriteCapacityUnits
- For provisioned feature groups, this indicates the write throughput you are billed for and can consume without throttling. This field is not applicable for on-demand feature groups.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFeatureGroup.ThroughputConfigProperty>
- Returns:
- a new instance of
CfnFeatureGroup.ThroughputConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-