AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AutomaticInputFailoverSettings.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/medialive/model/InputPreference.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/medialive/model/FailoverCondition.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace MediaLive
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_MEDIALIVE_API AutomaticInputFailoverSettings();
40 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
51 inline int GetErrorClearTimeMsec() const{ return m_errorClearTimeMsec; }
52 inline bool ErrorClearTimeMsecHasBeenSet() const { return m_errorClearTimeMsecHasBeenSet; }
53 inline void SetErrorClearTimeMsec(int value) { m_errorClearTimeMsecHasBeenSet = true; m_errorClearTimeMsec = value; }
56
58
62 inline const Aws::Vector<FailoverCondition>& GetFailoverConditions() const{ return m_failoverConditions; }
63 inline bool FailoverConditionsHasBeenSet() const { return m_failoverConditionsHasBeenSet; }
64 inline void SetFailoverConditions(const Aws::Vector<FailoverCondition>& value) { m_failoverConditionsHasBeenSet = true; m_failoverConditions = value; }
65 inline void SetFailoverConditions(Aws::Vector<FailoverCondition>&& value) { m_failoverConditionsHasBeenSet = true; m_failoverConditions = std::move(value); }
68 inline AutomaticInputFailoverSettings& AddFailoverConditions(const FailoverCondition& value) { m_failoverConditionsHasBeenSet = true; m_failoverConditions.push_back(value); return *this; }
69 inline AutomaticInputFailoverSettings& AddFailoverConditions(FailoverCondition&& value) { m_failoverConditionsHasBeenSet = true; m_failoverConditions.push_back(std::move(value)); return *this; }
71
73
77 inline const InputPreference& GetInputPreference() const{ return m_inputPreference; }
78 inline bool InputPreferenceHasBeenSet() const { return m_inputPreferenceHasBeenSet; }
79 inline void SetInputPreference(const InputPreference& value) { m_inputPreferenceHasBeenSet = true; m_inputPreference = value; }
80 inline void SetInputPreference(InputPreference&& value) { m_inputPreferenceHasBeenSet = true; m_inputPreference = std::move(value); }
82 inline AutomaticInputFailoverSettings& WithInputPreference(InputPreference&& value) { SetInputPreference(std::move(value)); return *this;}
84
86
89 inline const Aws::String& GetSecondaryInputId() const{ return m_secondaryInputId; }
90 inline bool SecondaryInputIdHasBeenSet() const { return m_secondaryInputIdHasBeenSet; }
91 inline void SetSecondaryInputId(const Aws::String& value) { m_secondaryInputIdHasBeenSet = true; m_secondaryInputId = value; }
92 inline void SetSecondaryInputId(Aws::String&& value) { m_secondaryInputIdHasBeenSet = true; m_secondaryInputId = std::move(value); }
93 inline void SetSecondaryInputId(const char* value) { m_secondaryInputIdHasBeenSet = true; m_secondaryInputId.assign(value); }
95 inline AutomaticInputFailoverSettings& WithSecondaryInputId(Aws::String&& value) { SetSecondaryInputId(std::move(value)); return *this;}
96 inline AutomaticInputFailoverSettings& WithSecondaryInputId(const char* value) { SetSecondaryInputId(value); return *this;}
98 private:
99
100 int m_errorClearTimeMsec;
101 bool m_errorClearTimeMsecHasBeenSet = false;
102
103 Aws::Vector<FailoverCondition> m_failoverConditions;
104 bool m_failoverConditionsHasBeenSet = false;
105
106 InputPreference m_inputPreference;
107 bool m_inputPreferenceHasBeenSet = false;
108
109 Aws::String m_secondaryInputId;
110 bool m_secondaryInputIdHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace MediaLive
115} // namespace Aws
AutomaticInputFailoverSettings & WithInputPreference(const InputPreference &value)
AWS_MEDIALIVE_API AutomaticInputFailoverSettings(Aws::Utils::Json::JsonView jsonValue)
void SetFailoverConditions(Aws::Vector< FailoverCondition > &&value)
AutomaticInputFailoverSettings & WithErrorClearTimeMsec(int value)
AWS_MEDIALIVE_API AutomaticInputFailoverSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AutomaticInputFailoverSettings & AddFailoverConditions(FailoverCondition &&value)
AutomaticInputFailoverSettings & WithInputPreference(InputPreference &&value)
AutomaticInputFailoverSettings & WithSecondaryInputId(const Aws::String &value)
AutomaticInputFailoverSettings & WithFailoverConditions(Aws::Vector< FailoverCondition > &&value)
void SetFailoverConditions(const Aws::Vector< FailoverCondition > &value)
AutomaticInputFailoverSettings & AddFailoverConditions(const FailoverCondition &value)
const Aws::Vector< FailoverCondition > & GetFailoverConditions() const
AutomaticInputFailoverSettings & WithSecondaryInputId(Aws::String &&value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
AutomaticInputFailoverSettings & WithFailoverConditions(const Aws::Vector< FailoverCondition > &value)
AutomaticInputFailoverSettings & WithSecondaryInputId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue