Class CfnBridgePropsMixin.FailoverConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.mediaconnect.CfnBridgePropsMixin.FailoverConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBridgePropsMixin.FailoverConfigProperty>
- Enclosing interface:
CfnBridgePropsMixin.FailoverConfigProperty
@Stability(Stable)
public static final class CfnBridgePropsMixin.FailoverConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBridgePropsMixin.FailoverConfigProperty>
A builder for
CfnBridgePropsMixin.FailoverConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.failoverMode(String failoverMode) Sets the value ofCfnBridgePropsMixin.FailoverConfigProperty.getFailoverMode()sourcePriority(CfnBridgePropsMixin.SourcePriorityProperty sourcePriority) Sets the value ofCfnBridgePropsMixin.FailoverConfigProperty.getSourcePriority()sourcePriority(IResolvable sourcePriority) Sets the value ofCfnBridgePropsMixin.FailoverConfigProperty.getSourcePriority()Sets the value ofCfnBridgePropsMixin.FailoverConfigProperty.getState()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
failoverMode
@Stability(Stable) public CfnBridgePropsMixin.FailoverConfigProperty.Builder failoverMode(String failoverMode) Sets the value ofCfnBridgePropsMixin.FailoverConfigProperty.getFailoverMode()- Parameters:
failoverMode- The type of failover you choose for this flow. MERGE combines the source streams into a single stream, allowing graceful recovery from any single-source loss. FAILOVER allows switching between different streams.- Returns:
this
-
sourcePriority
@Stability(Stable) public CfnBridgePropsMixin.FailoverConfigProperty.Builder sourcePriority(IResolvable sourcePriority) Sets the value ofCfnBridgePropsMixin.FailoverConfigProperty.getSourcePriority()- Parameters:
sourcePriority- The priority you want to assign to a source. You can have a primary stream and a backup stream or two equally prioritized streams.- Returns:
this
-
sourcePriority
@Stability(Stable) public CfnBridgePropsMixin.FailoverConfigProperty.Builder sourcePriority(CfnBridgePropsMixin.SourcePriorityProperty sourcePriority) Sets the value ofCfnBridgePropsMixin.FailoverConfigProperty.getSourcePriority()- Parameters:
sourcePriority- The priority you want to assign to a source. You can have a primary stream and a backup stream or two equally prioritized streams.- Returns:
this
-
state
Sets the value ofCfnBridgePropsMixin.FailoverConfigProperty.getState()- Parameters:
state- The state of source failover on the flow. If the state is inactive, the flow can have only one source. If the state is active, the flow can have one or two sources.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBridgePropsMixin.FailoverConfigProperty>- Returns:
- a new instance of
CfnBridgePropsMixin.FailoverConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-