Class AutomaticInputFailover.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.alpha.AutomaticInputFailover.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AutomaticInputFailover>
- Enclosing interface:
AutomaticInputFailover
@Stability(Experimental)
public static final class AutomaticInputFailover.Builder
extends Object
implements software.amazon.jsii.Builder<AutomaticInputFailover>
A builder for
AutomaticInputFailover-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.errorClearTime(Duration errorClearTime) Sets the value ofAutomaticInputFailover.getErrorClearTime()failoverConditions(List<? extends FailoverCondition> failoverConditions) Sets the value ofAutomaticInputFailover.getFailoverConditions()inputPreference(InputPreference inputPreference) Sets the value ofAutomaticInputFailover.getInputPreference()secondaryInput(IInput secondaryInput) Sets the value ofAutomaticInputFailover.getSecondaryInput()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
secondaryInput
@Stability(Experimental) public AutomaticInputFailover.Builder secondaryInput(IInput secondaryInput) Sets the value ofAutomaticInputFailover.getSecondaryInput()- Parameters:
secondaryInput- The secondary input to fail over to. Must be the same input class as the primary input. This parameter is required. [disable-awslint:prefer-ref-interface]- Returns:
this
-
errorClearTime
@Stability(Experimental) public AutomaticInputFailover.Builder errorClearTime(Duration errorClearTime) Sets the value ofAutomaticInputFailover.getErrorClearTime()- Parameters:
errorClearTime- How long a recovered input must remain free of failover conditions before it is considered healthy. Particularly relevant withInputPreference.PRIMARY_INPUT_PREFERRED.- Returns:
this
-
failoverConditions
@Stability(Experimental) public AutomaticInputFailover.Builder failoverConditions(List<? extends FailoverCondition> failoverConditions) Sets the value ofAutomaticInputFailover.getFailoverConditions()- Parameters:
failoverConditions- The conditions that trigger failover to the secondary input.- Returns:
this
-
inputPreference
@Stability(Experimental) public AutomaticInputFailover.Builder inputPreference(InputPreference inputPreference) Sets the value ofAutomaticInputFailover.getInputPreference()- Parameters:
inputPreference- Which input to prefer once a failed input has recovered.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AutomaticInputFailover>- Returns:
- a new instance of
AutomaticInputFailover - Throws:
NullPointerException- if any required attribute was not provided
-