Class CfnEndpointConfig.CapacityReservationConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.CapacityReservationConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointConfig.CapacityReservationConfigProperty>
- Enclosing interface:
CfnEndpointConfig.CapacityReservationConfigProperty
@Stability(Stable)
public static final class CfnEndpointConfig.CapacityReservationConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointConfig.CapacityReservationConfigProperty>
A builder for
CfnEndpointConfig.CapacityReservationConfigProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.capacityReservationPreference
(String capacityReservationPreference) mlReservationArn
(String mlReservationArn)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
capacityReservationPreference
@Stability(Stable) public CfnEndpointConfig.CapacityReservationConfigProperty.Builder capacityReservationPreference(String capacityReservationPreference) Sets the value ofCfnEndpointConfig.CapacityReservationConfigProperty.getCapacityReservationPreference()
- Parameters:
capacityReservationPreference
- the value to be set.- Returns:
this
-
mlReservationArn
@Stability(Stable) public CfnEndpointConfig.CapacityReservationConfigProperty.Builder mlReservationArn(String mlReservationArn) - Parameters:
mlReservationArn
- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEndpointConfig.CapacityReservationConfigProperty>
- Returns:
- a new instance of
CfnEndpointConfig.CapacityReservationConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-