AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
RouterNetworkInterface.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
11#include <aws/mediaconnect/model/RouterNetworkInterfaceConfiguration.h>
12#include <aws/mediaconnect/model/RouterNetworkInterfaceState.h>
13#include <aws/mediaconnect/model/RouterNetworkInterfaceType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace MediaConnect {
25namespace Model {
26
35 public:
36 AWS_MEDIACONNECT_API RouterNetworkInterface() = default;
37 AWS_MEDIACONNECT_API RouterNetworkInterface(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template <typename NameT = Aws::String>
48 void SetName(NameT&& value) {
49 m_nameHasBeenSet = true;
50 m_name = std::forward<NameT>(value);
51 }
52 template <typename NameT = Aws::String>
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetArn() const { return m_arn; }
64 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
65 template <typename ArnT = Aws::String>
66 void SetArn(ArnT&& value) {
67 m_arnHasBeenSet = true;
68 m_arn = std::forward<ArnT>(value);
69 }
70 template <typename ArnT = Aws::String>
72 SetArn(std::forward<ArnT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetId() const { return m_id; }
82 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
83 template <typename IdT = Aws::String>
84 void SetId(IdT&& value) {
85 m_idHasBeenSet = true;
86 m_id = std::forward<IdT>(value);
87 }
88 template <typename IdT = Aws::String>
90 SetId(std::forward<IdT>(value));
91 return *this;
92 }
94
96
99 inline RouterNetworkInterfaceState GetState() const { return m_state; }
100 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
102 m_stateHasBeenSet = true;
103 m_state = value;
104 }
106 SetState(value);
107 return *this;
108 }
110
112
115 inline RouterNetworkInterfaceType GetNetworkInterfaceType() const { return m_networkInterfaceType; }
116 inline bool NetworkInterfaceTypeHasBeenSet() const { return m_networkInterfaceTypeHasBeenSet; }
118 m_networkInterfaceTypeHasBeenSet = true;
119 m_networkInterfaceType = value;
120 }
123 return *this;
124 }
126
128
129 inline const RouterNetworkInterfaceConfiguration& GetConfiguration() const { return m_configuration; }
130 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
131 template <typename ConfigurationT = RouterNetworkInterfaceConfiguration>
132 void SetConfiguration(ConfigurationT&& value) {
133 m_configurationHasBeenSet = true;
134 m_configuration = std::forward<ConfigurationT>(value);
135 }
136 template <typename ConfigurationT = RouterNetworkInterfaceConfiguration>
137 RouterNetworkInterface& WithConfiguration(ConfigurationT&& value) {
138 SetConfiguration(std::forward<ConfigurationT>(value));
139 return *this;
140 }
142
144
147 inline int GetAssociatedOutputCount() const { return m_associatedOutputCount; }
148 inline bool AssociatedOutputCountHasBeenSet() const { return m_associatedOutputCountHasBeenSet; }
149 inline void SetAssociatedOutputCount(int value) {
150 m_associatedOutputCountHasBeenSet = true;
151 m_associatedOutputCount = value;
152 }
155 return *this;
156 }
158
160
163 inline int GetAssociatedInputCount() const { return m_associatedInputCount; }
164 inline bool AssociatedInputCountHasBeenSet() const { return m_associatedInputCountHasBeenSet; }
165 inline void SetAssociatedInputCount(int value) {
166 m_associatedInputCountHasBeenSet = true;
167 m_associatedInputCount = value;
168 }
171 return *this;
172 }
174
176
180 inline const Aws::String& GetRegionName() const { return m_regionName; }
181 inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
182 template <typename RegionNameT = Aws::String>
183 void SetRegionName(RegionNameT&& value) {
184 m_regionNameHasBeenSet = true;
185 m_regionName = std::forward<RegionNameT>(value);
186 }
187 template <typename RegionNameT = Aws::String>
189 SetRegionName(std::forward<RegionNameT>(value));
190 return *this;
191 }
193
195
198 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
199 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
200 template <typename CreatedAtT = Aws::Utils::DateTime>
201 void SetCreatedAt(CreatedAtT&& value) {
202 m_createdAtHasBeenSet = true;
203 m_createdAt = std::forward<CreatedAtT>(value);
204 }
205 template <typename CreatedAtT = Aws::Utils::DateTime>
207 SetCreatedAt(std::forward<CreatedAtT>(value));
208 return *this;
209 }
211
213
216 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
217 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
218 template <typename UpdatedAtT = Aws::Utils::DateTime>
219 void SetUpdatedAt(UpdatedAtT&& value) {
220 m_updatedAtHasBeenSet = true;
221 m_updatedAt = std::forward<UpdatedAtT>(value);
222 }
223 template <typename UpdatedAtT = Aws::Utils::DateTime>
225 SetUpdatedAt(std::forward<UpdatedAtT>(value));
226 return *this;
227 }
229
231
235 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
236 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
237 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
238 void SetTags(TagsT&& value) {
239 m_tagsHasBeenSet = true;
240 m_tags = std::forward<TagsT>(value);
241 }
242 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
244 SetTags(std::forward<TagsT>(value));
245 return *this;
246 }
247 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
248 RouterNetworkInterface& AddTags(TagsKeyT&& key, TagsValueT&& value) {
249 m_tagsHasBeenSet = true;
250 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
251 return *this;
252 }
254 private:
255 Aws::String m_name;
256
257 Aws::String m_arn;
258
259 Aws::String m_id;
260
262
264
265 RouterNetworkInterfaceConfiguration m_configuration;
266
267 int m_associatedOutputCount{0};
268
269 int m_associatedInputCount{0};
270
271 Aws::String m_regionName;
272
273 Aws::Utils::DateTime m_createdAt{};
274
275 Aws::Utils::DateTime m_updatedAt{};
276
278 bool m_nameHasBeenSet = false;
279 bool m_arnHasBeenSet = false;
280 bool m_idHasBeenSet = false;
281 bool m_stateHasBeenSet = false;
282 bool m_networkInterfaceTypeHasBeenSet = false;
283 bool m_configurationHasBeenSet = false;
284 bool m_associatedOutputCountHasBeenSet = false;
285 bool m_associatedInputCountHasBeenSet = false;
286 bool m_regionNameHasBeenSet = false;
287 bool m_createdAtHasBeenSet = false;
288 bool m_updatedAtHasBeenSet = false;
289 bool m_tagsHasBeenSet = false;
290};
291
292} // namespace Model
293} // namespace MediaConnect
294} // namespace Aws
RouterNetworkInterface & WithAssociatedInputCount(int value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_MEDIACONNECT_API RouterNetworkInterface()=default
RouterNetworkInterface & WithRegionName(RegionNameT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
RouterNetworkInterface & WithTags(TagsT &&value)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
RouterNetworkInterface & WithArn(ArnT &&value)
RouterNetworkInterface & WithName(NameT &&value)
RouterNetworkInterface & AddTags(TagsKeyT &&key, TagsValueT &&value)
RouterNetworkInterface & WithConfiguration(ConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const RouterNetworkInterfaceConfiguration & GetConfiguration() const
RouterNetworkInterfaceType GetNetworkInterfaceType() const
RouterNetworkInterface & WithUpdatedAt(UpdatedAtT &&value)
AWS_MEDIACONNECT_API RouterNetworkInterface(Aws::Utils::Json::JsonView jsonValue)
void SetNetworkInterfaceType(RouterNetworkInterfaceType value)
AWS_MEDIACONNECT_API RouterNetworkInterface & operator=(Aws::Utils::Json::JsonView jsonValue)
RouterNetworkInterface & WithCreatedAt(CreatedAtT &&value)
RouterNetworkInterface & WithState(RouterNetworkInterfaceState value)
void SetState(RouterNetworkInterfaceState value)
RouterNetworkInterface & WithNetworkInterfaceType(RouterNetworkInterfaceType value)
RouterNetworkInterface & WithAssociatedOutputCount(int value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue