Class CfnFlow.FailoverConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.mediaconnect.CfnFlow.FailoverConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlow.FailoverConfigProperty>
- Enclosing interface:
CfnFlow.FailoverConfigProperty
@Stability(Stable)
public static final class CfnFlow.FailoverConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlow.FailoverConfigProperty>
A builder for
CfnFlow.FailoverConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.failoverMode
(String failoverMode) Sets the value ofCfnFlow.FailoverConfigProperty.getFailoverMode()
recoveryWindow
(Number recoveryWindow) Sets the value ofCfnFlow.FailoverConfigProperty.getRecoveryWindow()
sourcePriority
(IResolvable sourcePriority) Sets the value ofCfnFlow.FailoverConfigProperty.getSourcePriority()
sourcePriority
(CfnFlow.SourcePriorityProperty sourcePriority) Sets the value ofCfnFlow.FailoverConfigProperty.getSourcePriority()
Sets the value ofCfnFlow.FailoverConfigProperty.getState()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
failoverMode
Sets the value ofCfnFlow.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. The string for this property must be entered as MERGE or FAILOVER. No other string entry is valid.- Returns:
this
-
recoveryWindow
@Stability(Stable) public CfnFlow.FailoverConfigProperty.Builder recoveryWindow(Number recoveryWindow) Sets the value ofCfnFlow.FailoverConfigProperty.getRecoveryWindow()
- Parameters:
recoveryWindow
- The size of the buffer (delay) that the service maintains. A larger buffer means a longer delay in transmitting the stream, but more room for error correction. A smaller buffer means a shorter delay, but less room for error correction. You can choose a value from 100-500 ms. If you keep this field blank, the service uses the default value of 200 ms. This setting only applies when Failover Mode is set to MERGE.- Returns:
this
-
sourcePriority
@Stability(Stable) public CfnFlow.FailoverConfigProperty.Builder sourcePriority(IResolvable sourcePriority) Sets the value ofCfnFlow.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 CfnFlow.FailoverConfigProperty.Builder sourcePriority(CfnFlow.SourcePriorityProperty sourcePriority) Sets the value ofCfnFlow.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 ofCfnFlow.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<CfnFlow.FailoverConfigProperty>
- Returns:
- a new instance of
CfnFlow.FailoverConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-