AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CompositionSummary.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/DestinationSummary.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ivsrealtime {
25namespace Model {
26
33 public:
34 AWS_IVSREALTIME_API CompositionSummary() = default;
35 AWS_IVSREALTIME_API CompositionSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
51 CompositionSummary& WithArn(ArnT&& value) {
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetStageArn() const { return m_stageArn; }
62 inline bool StageArnHasBeenSet() const { return m_stageArnHasBeenSet; }
63 template <typename StageArnT = Aws::String>
64 void SetStageArn(StageArnT&& value) {
65 m_stageArnHasBeenSet = true;
66 m_stageArn = std::forward<StageArnT>(value);
67 }
68 template <typename StageArnT = Aws::String>
69 CompositionSummary& WithStageArn(StageArnT&& value) {
70 SetStageArn(std::forward<StageArnT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<DestinationSummary>& GetDestinations() const { return m_destinations; }
80 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
81 template <typename DestinationsT = Aws::Vector<DestinationSummary>>
82 void SetDestinations(DestinationsT&& value) {
83 m_destinationsHasBeenSet = true;
84 m_destinations = std::forward<DestinationsT>(value);
85 }
86 template <typename DestinationsT = Aws::Vector<DestinationSummary>>
87 CompositionSummary& WithDestinations(DestinationsT&& value) {
88 SetDestinations(std::forward<DestinationsT>(value));
89 return *this;
90 }
91 template <typename DestinationsT = DestinationSummary>
92 CompositionSummary& AddDestinations(DestinationsT&& value) {
93 m_destinationsHasBeenSet = true;
94 m_destinations.emplace_back(std::forward<DestinationsT>(value));
95 return *this;
96 }
98
100
103 inline CompositionState GetState() const { return m_state; }
104 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
105 inline void SetState(CompositionState value) {
106 m_stateHasBeenSet = true;
107 m_state = value;
108 }
110 SetState(value);
111 return *this;
112 }
114
116
125 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
126 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
127 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
128 void SetTags(TagsT&& value) {
129 m_tagsHasBeenSet = true;
130 m_tags = std::forward<TagsT>(value);
131 }
132 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
133 CompositionSummary& WithTags(TagsT&& value) {
134 SetTags(std::forward<TagsT>(value));
135 return *this;
136 }
137 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
138 CompositionSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
139 m_tagsHasBeenSet = true;
140 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
141 return *this;
142 }
144
146
150 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
151 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
152 template <typename StartTimeT = Aws::Utils::DateTime>
153 void SetStartTime(StartTimeT&& value) {
154 m_startTimeHasBeenSet = true;
155 m_startTime = std::forward<StartTimeT>(value);
156 }
157 template <typename StartTimeT = Aws::Utils::DateTime>
158 CompositionSummary& WithStartTime(StartTimeT&& value) {
159 SetStartTime(std::forward<StartTimeT>(value));
160 return *this;
161 }
163
165
169 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
170 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
171 template <typename EndTimeT = Aws::Utils::DateTime>
172 void SetEndTime(EndTimeT&& value) {
173 m_endTimeHasBeenSet = true;
174 m_endTime = std::forward<EndTimeT>(value);
175 }
176 template <typename EndTimeT = Aws::Utils::DateTime>
177 CompositionSummary& WithEndTime(EndTimeT&& value) {
178 SetEndTime(std::forward<EndTimeT>(value));
179 return *this;
180 }
182 private:
183 Aws::String m_arn;
184
185 Aws::String m_stageArn;
186
187 Aws::Vector<DestinationSummary> m_destinations;
188
190
192
193 Aws::Utils::DateTime m_startTime{};
194
195 Aws::Utils::DateTime m_endTime{};
196 bool m_arnHasBeenSet = false;
197 bool m_stageArnHasBeenSet = false;
198 bool m_destinationsHasBeenSet = false;
199 bool m_stateHasBeenSet = false;
200 bool m_tagsHasBeenSet = false;
201 bool m_startTimeHasBeenSet = false;
202 bool m_endTimeHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace ivsrealtime
207} // namespace Aws
AWS_IVSREALTIME_API CompositionSummary()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_IVSREALTIME_API CompositionSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEndTime() const
CompositionSummary & WithStageArn(StageArnT &&value)
CompositionSummary & WithDestinations(DestinationsT &&value)
CompositionSummary & WithArn(ArnT &&value)
const Aws::Utils::DateTime & GetStartTime() const
const Aws::Vector< DestinationSummary > & GetDestinations() const
CompositionSummary & WithEndTime(EndTimeT &&value)
CompositionSummary & WithTags(TagsT &&value)
CompositionSummary & AddDestinations(DestinationsT &&value)
CompositionSummary & WithStartTime(StartTimeT &&value)
CompositionSummary & WithState(CompositionState value)
CompositionSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IVSREALTIME_API CompositionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
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