Class CfnChannelPropsMixin.AutomaticInputFailoverSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.medialive.CfnChannelPropsMixin.AutomaticInputFailoverSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannelPropsMixin.AutomaticInputFailoverSettingsProperty>
- Enclosing interface:
CfnChannelPropsMixin.AutomaticInputFailoverSettingsProperty
@Stability(Stable)
public static final class CfnChannelPropsMixin.AutomaticInputFailoverSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannelPropsMixin.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) secondaryInputId(String secondaryInputId)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
errorClearTimeMsec
@Stability(Stable) public CfnChannelPropsMixin.AutomaticInputFailoverSettingsProperty.Builder errorClearTimeMsec(Number errorClearTimeMsec) Sets the value ofCfnChannelPropsMixin.AutomaticInputFailoverSettingsProperty.getErrorClearTimeMsec()- 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 CfnChannelPropsMixin.AutomaticInputFailoverSettingsProperty.Builder failoverConditions(IResolvable failoverConditions) Sets the value ofCfnChannelPropsMixin.AutomaticInputFailoverSettingsProperty.getFailoverConditions()- 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 CfnChannelPropsMixin.AutomaticInputFailoverSettingsProperty.Builder failoverConditions(List<? extends Object> failoverConditions) Sets the value ofCfnChannelPropsMixin.AutomaticInputFailoverSettingsProperty.getFailoverConditions()- 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 CfnChannelPropsMixin.AutomaticInputFailoverSettingsProperty.Builder inputPreference(String inputPreference) - Parameters:
inputPreference- Input preference when deciding which input to make active when a previously failed input has recovered.- Returns:
this
-
secondaryInputId
@Stability(Stable) public CfnChannelPropsMixin.AutomaticInputFailoverSettingsProperty.Builder secondaryInputId(String secondaryInputId) - 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<CfnChannelPropsMixin.AutomaticInputFailoverSettingsProperty>- Returns:
- a new instance of
CfnChannelPropsMixin.AutomaticInputFailoverSettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-