Class CfnTargetGroupMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.vpclattice.CfnTargetGroupMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTargetGroupMixinProps>
- Enclosing interface:
CfnTargetGroupMixinProps
@Stability(Stable)
public static final class CfnTargetGroupMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTargetGroupMixinProps>
A builder for
CfnTargetGroupMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTargetGroupMixinProps.getConfig()config(IResolvable config) Sets the value ofCfnTargetGroupMixinProps.getConfig()Sets the value ofCfnTargetGroupMixinProps.getName()Sets the value ofCfnTargetGroupMixinProps.getTags()Sets the value ofCfnTargetGroupMixinProps.getTargets()targets(IResolvable targets) Sets the value ofCfnTargetGroupMixinProps.getTargets()Sets the value ofCfnTargetGroupMixinProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
config
Sets the value ofCfnTargetGroupMixinProps.getConfig()- Parameters:
config- The target group configuration.- Returns:
this
-
config
@Stability(Stable) public CfnTargetGroupMixinProps.Builder config(CfnTargetGroupPropsMixin.TargetGroupConfigProperty config) Sets the value ofCfnTargetGroupMixinProps.getConfig()- Parameters:
config- The target group configuration.- Returns:
this
-
name
Sets the value ofCfnTargetGroupMixinProps.getName()- Parameters:
name- The name of the target group. The name must be unique within the account. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name.
- Returns:
this
-
tags
Sets the value ofCfnTargetGroupMixinProps.getTags()- Parameters:
tags- The tags for the target group.- Returns:
this
-
targets
Sets the value ofCfnTargetGroupMixinProps.getTargets()- Parameters:
targets- Describes a target.- Returns:
this
-
targets
Sets the value ofCfnTargetGroupMixinProps.getTargets()- Parameters:
targets- Describes a target.- Returns:
this
-
type
Sets the value ofCfnTargetGroupMixinProps.getType()- Parameters:
type- The type of target group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTargetGroupMixinProps>- Returns:
- a new instance of
CfnTargetGroupMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-