1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/medialive/MediaLive_EXPORTS.h>
8 
9 namespace Aws
10 {
11 namespace Utils
12 {
13 namespace Json
14 {
15   class JsonValue;
16   class JsonView;
17 } // namespace Json
18 } // namespace Utils
19 namespace MediaLive
20 {
21 namespace Model
22 {
23 
24   /**
25    * MediaLive will perform a failover if content is not detected in this input for
26    * the specified period.<p><h3>See Also:</h3>   <a
27    * href="http://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/InputLossFailoverSettings">AWS
28    * API Reference</a></p>
29    */
30   class AWS_MEDIALIVE_API InputLossFailoverSettings
31   {
32   public:
33     InputLossFailoverSettings();
34     InputLossFailoverSettings(Aws::Utils::Json::JsonView jsonValue);
35     InputLossFailoverSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
36     Aws::Utils::Json::JsonValue Jsonize() const;
37 
38 
39     /**
40      * The amount of time (in milliseconds) that no input is detected. After that time,
41      * an input failover will occur.
42      */
GetInputLossThresholdMsec()43     inline int GetInputLossThresholdMsec() const{ return m_inputLossThresholdMsec; }
44 
45     /**
46      * The amount of time (in milliseconds) that no input is detected. After that time,
47      * an input failover will occur.
48      */
InputLossThresholdMsecHasBeenSet()49     inline bool InputLossThresholdMsecHasBeenSet() const { return m_inputLossThresholdMsecHasBeenSet; }
50 
51     /**
52      * The amount of time (in milliseconds) that no input is detected. After that time,
53      * an input failover will occur.
54      */
SetInputLossThresholdMsec(int value)55     inline void SetInputLossThresholdMsec(int value) { m_inputLossThresholdMsecHasBeenSet = true; m_inputLossThresholdMsec = value; }
56 
57     /**
58      * The amount of time (in milliseconds) that no input is detected. After that time,
59      * an input failover will occur.
60      */
WithInputLossThresholdMsec(int value)61     inline InputLossFailoverSettings& WithInputLossThresholdMsec(int value) { SetInputLossThresholdMsec(value); return *this;}
62 
63   private:
64 
65     int m_inputLossThresholdMsec;
66     bool m_inputLossThresholdMsecHasBeenSet;
67   };
68 
69 } // namespace Model
70 } // namespace MediaLive
71 } // namespace Aws
72