AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Composition.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ivs-realtime/Ivsrealtime_EXPORTS.h>
12#include <aws/ivs-realtime/model/CompositionState.h>
13#include <aws/ivs-realtime/model/Destination.h>
14#include <aws/ivs-realtime/model/LayoutConfiguration.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ivsrealtime {
26namespace Model {
27
34 public:
35 AWS_IVSREALTIME_API Composition() = default;
36 AWS_IVSREALTIME_API Composition(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IVSREALTIME_API Composition& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetArn() const { return m_arn; }
45 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
46 template <typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) {
48 m_arnHasBeenSet = true;
49 m_arn = std::forward<ArnT>(value);
50 }
51 template <typename ArnT = Aws::String>
52 Composition& WithArn(ArnT&& value) {
53 SetArn(std::forward<ArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetStageArn() const { return m_stageArn; }
63 inline bool StageArnHasBeenSet() const { return m_stageArnHasBeenSet; }
64 template <typename StageArnT = Aws::String>
65 void SetStageArn(StageArnT&& value) {
66 m_stageArnHasBeenSet = true;
67 m_stageArn = std::forward<StageArnT>(value);
68 }
69 template <typename StageArnT = Aws::String>
70 Composition& WithStageArn(StageArnT&& value) {
71 SetStageArn(std::forward<StageArnT>(value));
72 return *this;
73 }
75
77
80 inline CompositionState GetState() const { return m_state; }
81 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
82 inline void SetState(CompositionState value) {
83 m_stateHasBeenSet = true;
84 m_state = value;
85 }
87 SetState(value);
88 return *this;
89 }
91
93
96 inline const LayoutConfiguration& GetLayout() const { return m_layout; }
97 inline bool LayoutHasBeenSet() const { return m_layoutHasBeenSet; }
98 template <typename LayoutT = LayoutConfiguration>
99 void SetLayout(LayoutT&& value) {
100 m_layoutHasBeenSet = true;
101 m_layout = std::forward<LayoutT>(value);
102 }
103 template <typename LayoutT = LayoutConfiguration>
104 Composition& WithLayout(LayoutT&& value) {
105 SetLayout(std::forward<LayoutT>(value));
106 return *this;
107 }
109
111
116 inline const Aws::Vector<Destination>& GetDestinations() const { return m_destinations; }
117 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
118 template <typename DestinationsT = Aws::Vector<Destination>>
119 void SetDestinations(DestinationsT&& value) {
120 m_destinationsHasBeenSet = true;
121 m_destinations = std::forward<DestinationsT>(value);
122 }
123 template <typename DestinationsT = Aws::Vector<Destination>>
124 Composition& WithDestinations(DestinationsT&& value) {
125 SetDestinations(std::forward<DestinationsT>(value));
126 return *this;
127 }
128 template <typename DestinationsT = Destination>
129 Composition& AddDestinations(DestinationsT&& value) {
130 m_destinationsHasBeenSet = true;
131 m_destinations.emplace_back(std::forward<DestinationsT>(value));
132 return *this;
133 }
135
137
146 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
147 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
148 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
149 void SetTags(TagsT&& value) {
150 m_tagsHasBeenSet = true;
151 m_tags = std::forward<TagsT>(value);
152 }
153 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
154 Composition& WithTags(TagsT&& value) {
155 SetTags(std::forward<TagsT>(value));
156 return *this;
157 }
158 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
159 Composition& AddTags(TagsKeyT&& key, TagsValueT&& value) {
160 m_tagsHasBeenSet = true;
161 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
162 return *this;
163 }
165
167
171 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
172 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
173 template <typename StartTimeT = Aws::Utils::DateTime>
174 void SetStartTime(StartTimeT&& value) {
175 m_startTimeHasBeenSet = true;
176 m_startTime = std::forward<StartTimeT>(value);
177 }
178 template <typename StartTimeT = Aws::Utils::DateTime>
179 Composition& WithStartTime(StartTimeT&& value) {
180 SetStartTime(std::forward<StartTimeT>(value));
181 return *this;
182 }
184
186
190 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
191 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
192 template <typename EndTimeT = Aws::Utils::DateTime>
193 void SetEndTime(EndTimeT&& value) {
194 m_endTimeHasBeenSet = true;
195 m_endTime = std::forward<EndTimeT>(value);
196 }
197 template <typename EndTimeT = Aws::Utils::DateTime>
198 Composition& WithEndTime(EndTimeT&& value) {
199 SetEndTime(std::forward<EndTimeT>(value));
200 return *this;
201 }
203 private:
204 Aws::String m_arn;
205
206 Aws::String m_stageArn;
207
209
210 LayoutConfiguration m_layout;
211
212 Aws::Vector<Destination> m_destinations;
213
215
216 Aws::Utils::DateTime m_startTime{};
217
218 Aws::Utils::DateTime m_endTime{};
219 bool m_arnHasBeenSet = false;
220 bool m_stageArnHasBeenSet = false;
221 bool m_stateHasBeenSet = false;
222 bool m_layoutHasBeenSet = false;
223 bool m_destinationsHasBeenSet = false;
224 bool m_tagsHasBeenSet = false;
225 bool m_startTimeHasBeenSet = false;
226 bool m_endTimeHasBeenSet = false;
227};
228
229} // namespace Model
230} // namespace ivsrealtime
231} // namespace Aws
CompositionState GetState() const
Definition Composition.h:80
Composition & AddDestinations(DestinationsT &&value)
Composition & WithEndTime(EndTimeT &&value)
void SetEndTime(EndTimeT &&value)
Composition & WithTags(TagsT &&value)
Composition & WithArn(ArnT &&value)
Definition Composition.h:52
const Aws::String & GetArn() const
Definition Composition.h:44
AWS_IVSREALTIME_API Composition & operator=(Aws::Utils::Json::JsonView jsonValue)
const LayoutConfiguration & GetLayout() const
Definition Composition.h:96
const Aws::Utils::DateTime & GetEndTime() const
Composition & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLayout(LayoutT &&value)
Definition Composition.h:99
const Aws::String & GetStageArn() const
Definition Composition.h:62
const Aws::Vector< Destination > & GetDestinations() const
Composition & WithDestinations(DestinationsT &&value)
void SetStartTime(StartTimeT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Composition & WithStageArn(StageArnT &&value)
Definition Composition.h:70
void SetStageArn(StageArnT &&value)
Definition Composition.h:65
Composition & WithState(CompositionState value)
Definition Composition.h:86
void SetDestinations(DestinationsT &&value)
void SetState(CompositionState value)
Definition Composition.h:82
Composition & WithLayout(LayoutT &&value)
AWS_IVSREALTIME_API Composition(Aws::Utils::Json::JsonView jsonValue)
AWS_IVSREALTIME_API Composition()=default
const Aws::Utils::DateTime & GetStartTime() const
Composition & WithStartTime(StartTimeT &&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