Class CfnEndpoint.RoutingConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.events.CfnEndpoint.RoutingConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpoint.RoutingConfigProperty>
- Enclosing interface:
CfnEndpoint.RoutingConfigProperty
@Stability(Stable)
public static final class CfnEndpoint.RoutingConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpoint.RoutingConfigProperty>
A builder for
CfnEndpoint.RoutingConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.failoverConfig
(IResolvable failoverConfig) Sets the value ofCfnEndpoint.RoutingConfigProperty.getFailoverConfig()
failoverConfig
(CfnEndpoint.FailoverConfigProperty failoverConfig) Sets the value ofCfnEndpoint.RoutingConfigProperty.getFailoverConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
failoverConfig
@Stability(Stable) public CfnEndpoint.RoutingConfigProperty.Builder failoverConfig(IResolvable failoverConfig) Sets the value ofCfnEndpoint.RoutingConfigProperty.getFailoverConfig()
- Parameters:
failoverConfig
- The failover configuration for an endpoint. This parameter is required. This includes what triggers failover and what happens when it's triggered.- Returns:
this
-
failoverConfig
@Stability(Stable) public CfnEndpoint.RoutingConfigProperty.Builder failoverConfig(CfnEndpoint.FailoverConfigProperty failoverConfig) Sets the value ofCfnEndpoint.RoutingConfigProperty.getFailoverConfig()
- Parameters:
failoverConfig
- The failover configuration for an endpoint. This parameter is required. This includes what triggers failover and what happens when it's triggered.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEndpoint.RoutingConfigProperty>
- Returns:
- a new instance of
CfnEndpoint.RoutingConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-