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