Class CfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrockagentcore.CfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty>
- Enclosing interface:
CfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty
@Stability(Stable)
public static final class CfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty>
A builder for
CfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty.getMetadata()metadata(IResolvable metadata) Sets the value ofCfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty.getMetadata()Sets the value ofCfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty.getName()targetName(String targetName) Sets the value ofCfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty.getTargetName()Sets the value ofCfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty.getWeight()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
@Stability(Stable) public CfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty.Builder description(String description) - Parameters:
description- the value to be set.- Returns:
this
-
metadata
@Stability(Stable) public CfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty.Builder metadata(IResolvable metadata) Sets the value ofCfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty.getMetadata()- Parameters:
metadata- the value to be set.- Returns:
this
-
metadata
@Stability(Stable) public CfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty.Builder metadata(Map<String, String> metadata) Sets the value ofCfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty.getMetadata()- Parameters:
metadata- the value to be set.- Returns:
this
-
name
@Stability(Stable) public CfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty.Builder name(String name) Sets the value ofCfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty.getName()- Parameters:
name- the value to be set.- Returns:
this
-
targetName
@Stability(Stable) public CfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty.Builder targetName(String targetName) Sets the value ofCfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty.getTargetName()- Parameters:
targetName- the value to be set.- Returns:
this
-
weight
@Stability(Stable) public CfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty.Builder weight(Number weight) Sets the value ofCfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty.getWeight()- Parameters:
weight- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty>- Returns:
- a new instance of
CfnGatewayRulePropsMixin.TargetTrafficSplitEntryProperty - Throws:
NullPointerException- if any required attribute was not provided
-