Class CfnTargetGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.vpclattice.CfnTargetGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTargetGroupProps>
- Enclosing interface:
CfnTargetGroupProps
@Stability(Stable)
public static final class CfnTargetGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTargetGroupProps>
A builder for
CfnTargetGroupProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.config
(IResolvable config) Sets the value ofCfnTargetGroupProps.getConfig()
Sets the value ofCfnTargetGroupProps.getConfig()
Sets the value ofCfnTargetGroupProps.getName()
Sets the value ofCfnTargetGroupProps.getTags()
Sets the value ofCfnTargetGroupProps.getTargets()
targets
(IResolvable targets) Sets the value ofCfnTargetGroupProps.getTargets()
Sets the value ofCfnTargetGroupProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnTargetGroupProps.getType()
- Parameters:
type
- The type of target group. This parameter is required.- Returns:
this
-
config
Sets the value ofCfnTargetGroupProps.getConfig()
- Parameters:
config
- The target group configuration.- Returns:
this
-
config
@Stability(Stable) public CfnTargetGroupProps.Builder config(CfnTargetGroup.TargetGroupConfigProperty config) Sets the value ofCfnTargetGroupProps.getConfig()
- Parameters:
config
- The target group configuration.- Returns:
this
-
name
Sets the value ofCfnTargetGroupProps.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 ofCfnTargetGroupProps.getTags()
- Parameters:
tags
- The tags for the target group.- Returns:
this
-
targets
Sets the value ofCfnTargetGroupProps.getTargets()
- Parameters:
targets
- Describes a target.- Returns:
this
-
targets
Sets the value ofCfnTargetGroupProps.getTargets()
- Parameters:
targets
- Describes a target.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTargetGroupProps>
- Returns:
- a new instance of
CfnTargetGroupProps
- Throws:
NullPointerException
- if any required attribute was not provided
-