Class CfnChannel.AutomaticInputFailoverSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.CfnChannel.AutomaticInputFailoverSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel.AutomaticInputFailoverSettingsProperty>
- Enclosing interface:
CfnChannel.AutomaticInputFailoverSettingsProperty
@Stability(Stable)
public static final class CfnChannel.AutomaticInputFailoverSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannel.AutomaticInputFailoverSettingsProperty>
A builder for
CfnChannel.AutomaticInputFailoverSettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.errorClearTimeMsec(Number errorClearTimeMsec) failoverConditions(List<? extends Object> failoverConditions) failoverConditions(IResolvable failoverConditions) inputPreference(String inputPreference) Sets the value ofCfnChannel.AutomaticInputFailoverSettingsProperty.getInputPreference()secondaryInputId(String secondaryInputId) Sets the value ofCfnChannel.AutomaticInputFailoverSettingsProperty.getSecondaryInputId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
errorClearTimeMsec
@Stability(Stable) public CfnChannel.AutomaticInputFailoverSettingsProperty.Builder errorClearTimeMsec(Number errorClearTimeMsec) - Parameters:
errorClearTimeMsec- This clear time defines the requirement a recovered input must meet to be considered healthy. The input must have no failover conditions for this length of time. Enter a time in milliseconds. This value is particularly important if the input_preference for the failover pair is set to PRIMARY_INPUT_PREFERRED, because after this time, MediaLive will switch back to the primary input.- Returns:
this
-
failoverConditions
@Stability(Stable) public CfnChannel.AutomaticInputFailoverSettingsProperty.Builder failoverConditions(IResolvable failoverConditions) - Parameters:
failoverConditions- A list of failover conditions. If any of these conditions occur, MediaLive will perform a failover to the other input.- Returns:
this
-
failoverConditions
@Stability(Stable) public CfnChannel.AutomaticInputFailoverSettingsProperty.Builder failoverConditions(List<? extends Object> failoverConditions) - Parameters:
failoverConditions- A list of failover conditions. If any of these conditions occur, MediaLive will perform a failover to the other input.- Returns:
this
-
inputPreference
@Stability(Stable) public CfnChannel.AutomaticInputFailoverSettingsProperty.Builder inputPreference(String inputPreference) Sets the value ofCfnChannel.AutomaticInputFailoverSettingsProperty.getInputPreference()- Parameters:
inputPreference- Input preference when deciding which input to make active when a previously failed input has recovered.- Returns:
this
-
secondaryInputId
@Stability(Stable) public CfnChannel.AutomaticInputFailoverSettingsProperty.Builder secondaryInputId(String secondaryInputId) Sets the value ofCfnChannel.AutomaticInputFailoverSettingsProperty.getSecondaryInputId()- Parameters:
secondaryInputId- The input ID of the secondary input in the automatic input failover pair.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnChannel.AutomaticInputFailoverSettingsProperty>- Returns:
- a new instance of
CfnChannel.AutomaticInputFailoverSettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-