Class CfnSpotFleet.TargetGroupsConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnSpotFleet.TargetGroupsConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSpotFleet.TargetGroupsConfigProperty>
- Enclosing interface:
CfnSpotFleet.TargetGroupsConfigProperty
@Stability(Stable)
public static final class CfnSpotFleet.TargetGroupsConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSpotFleet.TargetGroupsConfigProperty>
A builder for
CfnSpotFleet.TargetGroupsConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.targetGroups
(List<? extends Object> targetGroups) Sets the value ofCfnSpotFleet.TargetGroupsConfigProperty.getTargetGroups()
targetGroups
(IResolvable targetGroups) Sets the value ofCfnSpotFleet.TargetGroupsConfigProperty.getTargetGroups()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetGroups
@Stability(Stable) public CfnSpotFleet.TargetGroupsConfigProperty.Builder targetGroups(IResolvable targetGroups) Sets the value ofCfnSpotFleet.TargetGroupsConfigProperty.getTargetGroups()
- Parameters:
targetGroups
- One or more target groups. This parameter is required.- Returns:
this
-
targetGroups
@Stability(Stable) public CfnSpotFleet.TargetGroupsConfigProperty.Builder targetGroups(List<? extends Object> targetGroups) Sets the value ofCfnSpotFleet.TargetGroupsConfigProperty.getTargetGroups()
- Parameters:
targetGroups
- One or more target groups. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSpotFleet.TargetGroupsConfigProperty>
- Returns:
- a new instance of
CfnSpotFleet.TargetGroupsConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-