AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
MultiplexSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/medialive/MediaLive_EXPORTS.h>
11#include <aws/medialive/model/MultiplexSettingsSummary.h>
12#include <aws/medialive/model/MultiplexState.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
32 public:
33 AWS_MEDIALIVE_API MultiplexSummary() = default;
34 AWS_MEDIALIVE_API MultiplexSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
50 MultiplexSummary& WithArn(ArnT&& value) {
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const { return m_availabilityZones; }
61 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
62 template <typename AvailabilityZonesT = Aws::Vector<Aws::String>>
63 void SetAvailabilityZones(AvailabilityZonesT&& value) {
64 m_availabilityZonesHasBeenSet = true;
65 m_availabilityZones = std::forward<AvailabilityZonesT>(value);
66 }
67 template <typename AvailabilityZonesT = Aws::Vector<Aws::String>>
68 MultiplexSummary& WithAvailabilityZones(AvailabilityZonesT&& value) {
69 SetAvailabilityZones(std::forward<AvailabilityZonesT>(value));
70 return *this;
71 }
72 template <typename AvailabilityZonesT = Aws::String>
73 MultiplexSummary& AddAvailabilityZones(AvailabilityZonesT&& value) {
74 m_availabilityZonesHasBeenSet = true;
75 m_availabilityZones.emplace_back(std::forward<AvailabilityZonesT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetId() const { return m_id; }
85 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
86 template <typename IdT = Aws::String>
87 void SetId(IdT&& value) {
88 m_idHasBeenSet = true;
89 m_id = std::forward<IdT>(value);
90 }
91 template <typename IdT = Aws::String>
92 MultiplexSummary& WithId(IdT&& value) {
93 SetId(std::forward<IdT>(value));
94 return *this;
95 }
97
99
102 inline const MultiplexSettingsSummary& GetMultiplexSettings() const { return m_multiplexSettings; }
103 inline bool MultiplexSettingsHasBeenSet() const { return m_multiplexSettingsHasBeenSet; }
104 template <typename MultiplexSettingsT = MultiplexSettingsSummary>
105 void SetMultiplexSettings(MultiplexSettingsT&& value) {
106 m_multiplexSettingsHasBeenSet = true;
107 m_multiplexSettings = std::forward<MultiplexSettingsT>(value);
108 }
109 template <typename MultiplexSettingsT = MultiplexSettingsSummary>
110 MultiplexSummary& WithMultiplexSettings(MultiplexSettingsT&& value) {
111 SetMultiplexSettings(std::forward<MultiplexSettingsT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetName() const { return m_name; }
121 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
122 template <typename NameT = Aws::String>
123 void SetName(NameT&& value) {
124 m_nameHasBeenSet = true;
125 m_name = std::forward<NameT>(value);
126 }
127 template <typename NameT = Aws::String>
128 MultiplexSummary& WithName(NameT&& value) {
129 SetName(std::forward<NameT>(value));
130 return *this;
131 }
133
135
138 inline int GetPipelinesRunningCount() const { return m_pipelinesRunningCount; }
139 inline bool PipelinesRunningCountHasBeenSet() const { return m_pipelinesRunningCountHasBeenSet; }
140 inline void SetPipelinesRunningCount(int value) {
141 m_pipelinesRunningCountHasBeenSet = true;
142 m_pipelinesRunningCount = value;
143 }
146 return *this;
147 }
149
151
154 inline int GetProgramCount() const { return m_programCount; }
155 inline bool ProgramCountHasBeenSet() const { return m_programCountHasBeenSet; }
156 inline void SetProgramCount(int value) {
157 m_programCountHasBeenSet = true;
158 m_programCount = value;
159 }
161 SetProgramCount(value);
162 return *this;
163 }
165
167
170 inline MultiplexState GetState() const { return m_state; }
171 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
172 inline void SetState(MultiplexState value) {
173 m_stateHasBeenSet = true;
174 m_state = value;
175 }
177 SetState(value);
178 return *this;
179 }
181
183
186 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
187 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
188 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
189 void SetTags(TagsT&& value) {
190 m_tagsHasBeenSet = true;
191 m_tags = std::forward<TagsT>(value);
192 }
193 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
194 MultiplexSummary& WithTags(TagsT&& value) {
195 SetTags(std::forward<TagsT>(value));
196 return *this;
197 }
198 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
199 MultiplexSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
200 m_tagsHasBeenSet = true;
201 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
202 return *this;
203 }
205 private:
206 Aws::String m_arn;
207
208 Aws::Vector<Aws::String> m_availabilityZones;
209
210 Aws::String m_id;
211
212 MultiplexSettingsSummary m_multiplexSettings;
213
214 Aws::String m_name;
215
216 int m_pipelinesRunningCount{0};
217
218 int m_programCount{0};
219
221
223 bool m_arnHasBeenSet = false;
224 bool m_availabilityZonesHasBeenSet = false;
225 bool m_idHasBeenSet = false;
226 bool m_multiplexSettingsHasBeenSet = false;
227 bool m_nameHasBeenSet = false;
228 bool m_pipelinesRunningCountHasBeenSet = false;
229 bool m_programCountHasBeenSet = false;
230 bool m_stateHasBeenSet = false;
231 bool m_tagsHasBeenSet = false;
232};
233
234} // namespace Model
235} // namespace MediaLive
236} // namespace Aws
MultiplexSummary & WithId(IdT &&value)
AWS_MEDIALIVE_API MultiplexSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API MultiplexSummary(Aws::Utils::Json::JsonView jsonValue)
void SetAvailabilityZones(AvailabilityZonesT &&value)
MultiplexSummary & WithProgramCount(int value)
MultiplexSummary & WithName(NameT &&value)
MultiplexSummary & WithMultiplexSettings(MultiplexSettingsT &&value)
MultiplexSummary & WithState(MultiplexState value)
MultiplexSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
MultiplexSummary & WithAvailabilityZones(AvailabilityZonesT &&value)
const MultiplexSettingsSummary & GetMultiplexSettings() const
AWS_MEDIALIVE_API MultiplexSummary()=default
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
MultiplexSummary & WithTags(TagsT &&value)
MultiplexSummary & WithPipelinesRunningCount(int value)
MultiplexSummary & AddAvailabilityZones(AvailabilityZonesT &&value)
const Aws::Vector< Aws::String > & GetAvailabilityZones() const
MultiplexSummary & WithArn(ArnT &&value)
void SetMultiplexSettings(MultiplexSettingsT &&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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue