AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SdiSource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/medialive/MediaLive_EXPORTS.h>
10#include <aws/medialive/model/SdiSourceMode.h>
11#include <aws/medialive/model/SdiSourceState.h>
12#include <aws/medialive/model/SdiSourceType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MediaLive {
24namespace Model {
25
33class SdiSource {
34 public:
35 AWS_MEDIALIVE_API SdiSource() = default;
36 AWS_MEDIALIVE_API SdiSource(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MEDIALIVE_API SdiSource& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::String& GetArn() const { return m_arn; }
46 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
47 template <typename ArnT = Aws::String>
48 void SetArn(ArnT&& value) {
49 m_arnHasBeenSet = true;
50 m_arn = std::forward<ArnT>(value);
51 }
52 template <typename ArnT = Aws::String>
53 SdiSource& WithArn(ArnT&& value) {
54 SetArn(std::forward<ArnT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetId() const { return m_id; }
65 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
66 template <typename IdT = Aws::String>
67 void SetId(IdT&& value) {
68 m_idHasBeenSet = true;
69 m_id = std::forward<IdT>(value);
70 }
71 template <typename IdT = Aws::String>
72 SdiSource& WithId(IdT&& value) {
73 SetId(std::forward<IdT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::Vector<Aws::String>& GetInputs() const { return m_inputs; }
84 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
85 template <typename InputsT = Aws::Vector<Aws::String>>
86 void SetInputs(InputsT&& value) {
87 m_inputsHasBeenSet = true;
88 m_inputs = std::forward<InputsT>(value);
89 }
90 template <typename InputsT = Aws::Vector<Aws::String>>
91 SdiSource& WithInputs(InputsT&& value) {
92 SetInputs(std::forward<InputsT>(value));
93 return *this;
94 }
95 template <typename InputsT = Aws::String>
96 SdiSource& AddInputs(InputsT&& value) {
97 m_inputsHasBeenSet = true;
98 m_inputs.emplace_back(std::forward<InputsT>(value));
99 return *this;
100 }
102
104
108 inline SdiSourceMode GetMode() const { return m_mode; }
109 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
110 inline void SetMode(SdiSourceMode value) {
111 m_modeHasBeenSet = true;
112 m_mode = value;
113 }
115 SetMode(value);
116 return *this;
117 }
119
121
124 inline const Aws::String& GetName() const { return m_name; }
125 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
126 template <typename NameT = Aws::String>
127 void SetName(NameT&& value) {
128 m_nameHasBeenSet = true;
129 m_name = std::forward<NameT>(value);
130 }
131 template <typename NameT = Aws::String>
132 SdiSource& WithName(NameT&& value) {
133 SetName(std::forward<NameT>(value));
134 return *this;
135 }
137
139
143 inline SdiSourceState GetState() const { return m_state; }
144 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
145 inline void SetState(SdiSourceState value) {
146 m_stateHasBeenSet = true;
147 m_state = value;
148 }
150 SetState(value);
151 return *this;
152 }
154
156
157 inline SdiSourceType GetType() const { return m_type; }
158 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
159 inline void SetType(SdiSourceType value) {
160 m_typeHasBeenSet = true;
161 m_type = value;
162 }
164 SetType(value);
165 return *this;
166 }
168 private:
169 Aws::String m_arn;
170
171 Aws::String m_id;
172
174
176
177 Aws::String m_name;
178
180
182 bool m_arnHasBeenSet = false;
183 bool m_idHasBeenSet = false;
184 bool m_inputsHasBeenSet = false;
185 bool m_modeHasBeenSet = false;
186 bool m_nameHasBeenSet = false;
187 bool m_stateHasBeenSet = false;
188 bool m_typeHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace MediaLive
193} // namespace Aws
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
SdiSourceMode GetMode() const
Definition SdiSource.h:108
void SetType(SdiSourceType value)
Definition SdiSource.h:159
AWS_MEDIALIVE_API SdiSource & operator=(Aws::Utils::Json::JsonView jsonValue)
SdiSource & WithState(SdiSourceState value)
Definition SdiSource.h:149
void SetState(SdiSourceState value)
Definition SdiSource.h:145
void SetMode(SdiSourceMode value)
Definition SdiSource.h:110
SdiSourceState GetState() const
Definition SdiSource.h:143
void SetInputs(InputsT &&value)
Definition SdiSource.h:86
const Aws::String & GetId() const
Definition SdiSource.h:64
SdiSource & AddInputs(InputsT &&value)
Definition SdiSource.h:96
SdiSource & WithId(IdT &&value)
Definition SdiSource.h:72
AWS_MEDIALIVE_API SdiSource(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API SdiSource()=default
const Aws::Vector< Aws::String > & GetInputs() const
Definition SdiSource.h:83
SdiSource & WithType(SdiSourceType value)
Definition SdiSource.h:163
void SetArn(ArnT &&value)
Definition SdiSource.h:48
SdiSource & WithInputs(InputsT &&value)
Definition SdiSource.h:91
SdiSource & WithMode(SdiSourceMode value)
Definition SdiSource.h:114
void SetName(NameT &&value)
Definition SdiSource.h:127
SdiSource & WithArn(ArnT &&value)
Definition SdiSource.h:53
SdiSource & WithName(NameT &&value)
Definition SdiSource.h:132
const Aws::String & GetArn() const
Definition SdiSource.h:45
const Aws::String & GetName() const
Definition SdiSource.h:124
SdiSourceType GetType() const
Definition SdiSource.h:157
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue