Class CfnSpotFleet.LoadBalancersConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnSpotFleet.LoadBalancersConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSpotFleet.LoadBalancersConfigProperty>
- Enclosing interface:
CfnSpotFleet.LoadBalancersConfigProperty
@Stability(Stable)
public static final class CfnSpotFleet.LoadBalancersConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSpotFleet.LoadBalancersConfigProperty>
A builder for
CfnSpotFleet.LoadBalancersConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.classicLoadBalancersConfig
(IResolvable classicLoadBalancersConfig) Sets the value ofCfnSpotFleet.LoadBalancersConfigProperty.getClassicLoadBalancersConfig()
classicLoadBalancersConfig
(CfnSpotFleet.ClassicLoadBalancersConfigProperty classicLoadBalancersConfig) Sets the value ofCfnSpotFleet.LoadBalancersConfigProperty.getClassicLoadBalancersConfig()
targetGroupsConfig
(IResolvable targetGroupsConfig) Sets the value ofCfnSpotFleet.LoadBalancersConfigProperty.getTargetGroupsConfig()
targetGroupsConfig
(CfnSpotFleet.TargetGroupsConfigProperty targetGroupsConfig) Sets the value ofCfnSpotFleet.LoadBalancersConfigProperty.getTargetGroupsConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
classicLoadBalancersConfig
@Stability(Stable) public CfnSpotFleet.LoadBalancersConfigProperty.Builder classicLoadBalancersConfig(IResolvable classicLoadBalancersConfig) Sets the value ofCfnSpotFleet.LoadBalancersConfigProperty.getClassicLoadBalancersConfig()
- Parameters:
classicLoadBalancersConfig
- The Classic Load Balancers.- Returns:
this
-
classicLoadBalancersConfig
@Stability(Stable) public CfnSpotFleet.LoadBalancersConfigProperty.Builder classicLoadBalancersConfig(CfnSpotFleet.ClassicLoadBalancersConfigProperty classicLoadBalancersConfig) Sets the value ofCfnSpotFleet.LoadBalancersConfigProperty.getClassicLoadBalancersConfig()
- Parameters:
classicLoadBalancersConfig
- The Classic Load Balancers.- Returns:
this
-
targetGroupsConfig
@Stability(Stable) public CfnSpotFleet.LoadBalancersConfigProperty.Builder targetGroupsConfig(IResolvable targetGroupsConfig) Sets the value ofCfnSpotFleet.LoadBalancersConfigProperty.getTargetGroupsConfig()
- Parameters:
targetGroupsConfig
- The target groups.- Returns:
this
-
targetGroupsConfig
@Stability(Stable) public CfnSpotFleet.LoadBalancersConfigProperty.Builder targetGroupsConfig(CfnSpotFleet.TargetGroupsConfigProperty targetGroupsConfig) Sets the value ofCfnSpotFleet.LoadBalancersConfigProperty.getTargetGroupsConfig()
- Parameters:
targetGroupsConfig
- The target groups.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSpotFleet.LoadBalancersConfigProperty>
- Returns:
- a new instance of
CfnSpotFleet.LoadBalancersConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-