Package software.amazon.awscdk.core
Class CfnTrafficRoute.Builder
java.lang.Object
software.amazon.awscdk.core.CfnTrafficRoute.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrafficRoute>
- Enclosing interface:
- CfnTrafficRoute
@Stability(Stable)
public static final class CfnTrafficRoute.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTrafficRoute>
A builder for
CfnTrafficRoute
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnTrafficRoute.getLogicalId()
Sets the value ofCfnTrafficRoute.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
logicalId
Sets the value ofCfnTrafficRoute.getLogicalId()
- Parameters:
logicalId
- The logical id of the target resource. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnTrafficRoute.getType()
- Parameters:
type
- The resource type of the route. This parameter is required. Today, the only allowed value is 'AWS::ElasticLoadBalancingV2::Listener'.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTrafficRoute>
- Returns:
- a new instance of
CfnTrafficRoute
- Throws:
NullPointerException
- if any required attribute was not provided
-