Class CfnBridge.FailoverConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.mediaconnect.CfnBridge.FailoverConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBridge.FailoverConfigProperty>
- Enclosing interface:
CfnBridge.FailoverConfigProperty
@Stability(Stable)
public static final class CfnBridge.FailoverConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBridge.FailoverConfigProperty>
A builder for
CfnBridge.FailoverConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.failoverMode
(String failoverMode) Sets the value ofCfnBridge.FailoverConfigProperty.getFailoverMode()
sourcePriority
(IResolvable sourcePriority) Sets the value ofCfnBridge.FailoverConfigProperty.getSourcePriority()
sourcePriority
(CfnBridge.SourcePriorityProperty sourcePriority) Sets the value ofCfnBridge.FailoverConfigProperty.getSourcePriority()
Sets the value ofCfnBridge.FailoverConfigProperty.getState()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
failoverMode
@Stability(Stable) public CfnBridge.FailoverConfigProperty.Builder failoverMode(String failoverMode) Sets the value ofCfnBridge.FailoverConfigProperty.getFailoverMode()
- Parameters:
failoverMode
- The type of failover you choose for this flow. This parameter is required. 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 CfnBridge.FailoverConfigProperty.Builder sourcePriority(IResolvable sourcePriority) Sets the value ofCfnBridge.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. This setting only applies when Failover Mode is set to FAILOVER.- Returns:
this
-
sourcePriority
@Stability(Stable) public CfnBridge.FailoverConfigProperty.Builder sourcePriority(CfnBridge.SourcePriorityProperty sourcePriority) Sets the value ofCfnBridge.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. This setting only applies when Failover Mode is set to FAILOVER.- Returns:
this
-
state
Sets the value ofCfnBridge.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnBridge.FailoverConfigProperty>
- Returns:
- a new instance of
CfnBridge.FailoverConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-