Class CfnSpotFleetProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnSpotFleetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSpotFleetProps>
- Enclosing interface:
CfnSpotFleetProps
@Stability(Stable)
public static final class CfnSpotFleetProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSpotFleetProps>
A builder for
CfnSpotFleetProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.spotFleetRequestConfigData
(IResolvable spotFleetRequestConfigData) Sets the value ofCfnSpotFleetProps.getSpotFleetRequestConfigData()
spotFleetRequestConfigData
(CfnSpotFleet.SpotFleetRequestConfigDataProperty spotFleetRequestConfigData) Sets the value ofCfnSpotFleetProps.getSpotFleetRequestConfigData()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
spotFleetRequestConfigData
@Stability(Stable) public CfnSpotFleetProps.Builder spotFleetRequestConfigData(IResolvable spotFleetRequestConfigData) Sets the value ofCfnSpotFleetProps.getSpotFleetRequestConfigData()
- Parameters:
spotFleetRequestConfigData
- Describes the configuration of a Spot Fleet request. This parameter is required.- Returns:
this
-
spotFleetRequestConfigData
@Stability(Stable) public CfnSpotFleetProps.Builder spotFleetRequestConfigData(CfnSpotFleet.SpotFleetRequestConfigDataProperty spotFleetRequestConfigData) Sets the value ofCfnSpotFleetProps.getSpotFleetRequestConfigData()
- Parameters:
spotFleetRequestConfigData
- Describes the configuration of a Spot Fleet request. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSpotFleetProps>
- Returns:
- a new instance of
CfnSpotFleetProps
- Throws:
NullPointerException
- if any required attribute was not provided
-