/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the medialive-2017-10-14.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.MediaLive.Model { /// /// The settings for Automatic Input Failover. /// public partial class AutomaticInputFailoverSettings { private int? _errorClearTimeMsec; private List _failoverConditions = new List(); private InputPreference _inputPreference; private string _secondaryInputId; /// /// Gets and sets the property 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. /// [AWSProperty(Min=1)] public int ErrorClearTimeMsec { get { return this._errorClearTimeMsec.GetValueOrDefault(); } set { this._errorClearTimeMsec = value; } } // Check to see if ErrorClearTimeMsec property is set internal bool IsSetErrorClearTimeMsec() { return this._errorClearTimeMsec.HasValue; } /// /// Gets and sets the property FailoverConditions. A list of failover conditions. If any /// of these conditions occur, MediaLive will perform a failover to the other input. /// public List FailoverConditions { get { return this._failoverConditions; } set { this._failoverConditions = value; } } // Check to see if FailoverConditions property is set internal bool IsSetFailoverConditions() { return this._failoverConditions != null && this._failoverConditions.Count > 0; } /// /// Gets and sets the property InputPreference. Input preference when deciding which input /// to make active when a previously failed input has recovered. /// public InputPreference InputPreference { get { return this._inputPreference; } set { this._inputPreference = value; } } // Check to see if InputPreference property is set internal bool IsSetInputPreference() { return this._inputPreference != null; } /// /// Gets and sets the property SecondaryInputId. The input ID of the secondary input in /// the automatic input failover pair. /// [AWSProperty(Required=true)] public string SecondaryInputId { get { return this._secondaryInputId; } set { this._secondaryInputId = value; } } // Check to see if SecondaryInputId property is set internal bool IsSetSecondaryInputId() { return this._secondaryInputId != null; } } }