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