AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Composition.h
1
6#pragma once
7#include <aws/ivs-realtime/Ivsrealtime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ivs-realtime/model/CompositionState.h>
10#include <aws/ivs-realtime/model/LayoutConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/ivs-realtime/model/Destination.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace ivsrealtime
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_IVSREALTIME_API Composition() = default;
41 AWS_IVSREALTIME_API Composition(Aws::Utils::Json::JsonView jsonValue);
42 AWS_IVSREALTIME_API Composition& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetArn() const { return m_arn; }
51 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 template<typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
54 template<typename ArnT = Aws::String>
55 Composition& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_stageArnHasBeenSet = true; m_stageArn = std::forward<StageArnT>(value); }
66 template<typename StageArnT = Aws::String>
67 Composition& WithStageArn(StageArnT&& value) { SetStageArn(std::forward<StageArnT>(value)); return *this;}
69
71
74 inline CompositionState GetState() const { return m_state; }
75 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
76 inline void SetState(CompositionState value) { m_stateHasBeenSet = true; m_state = value; }
77 inline Composition& WithState(CompositionState value) { SetState(value); return *this;}
79
81
84 inline const LayoutConfiguration& GetLayout() const { return m_layout; }
85 inline bool LayoutHasBeenSet() const { return m_layoutHasBeenSet; }
86 template<typename LayoutT = LayoutConfiguration>
87 void SetLayout(LayoutT&& value) { m_layoutHasBeenSet = true; m_layout = std::forward<LayoutT>(value); }
88 template<typename LayoutT = LayoutConfiguration>
89 Composition& WithLayout(LayoutT&& value) { SetLayout(std::forward<LayoutT>(value)); return *this;}
91
93
98 inline const Aws::Vector<Destination>& GetDestinations() const { return m_destinations; }
99 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
100 template<typename DestinationsT = Aws::Vector<Destination>>
101 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
102 template<typename DestinationsT = Aws::Vector<Destination>>
103 Composition& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
104 template<typename DestinationsT = Destination>
105 Composition& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
107
109
118 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
119 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
120 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
121 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
122 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
123 Composition& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
124 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
125 Composition& AddTags(TagsKeyT&& key, TagsValueT&& value) {
126 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
127 }
129
131
135 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
136 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
137 template<typename StartTimeT = Aws::Utils::DateTime>
138 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
139 template<typename StartTimeT = Aws::Utils::DateTime>
140 Composition& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
142
144
148 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
149 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
150 template<typename EndTimeT = Aws::Utils::DateTime>
151 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
152 template<typename EndTimeT = Aws::Utils::DateTime>
153 Composition& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
155 private:
156
157 Aws::String m_arn;
158 bool m_arnHasBeenSet = false;
159
160 Aws::String m_stageArn;
161 bool m_stageArnHasBeenSet = false;
162
164 bool m_stateHasBeenSet = false;
165
166 LayoutConfiguration m_layout;
167 bool m_layoutHasBeenSet = false;
168
169 Aws::Vector<Destination> m_destinations;
170 bool m_destinationsHasBeenSet = false;
171
173 bool m_tagsHasBeenSet = false;
174
175 Aws::Utils::DateTime m_startTime{};
176 bool m_startTimeHasBeenSet = false;
177
178 Aws::Utils::DateTime m_endTime{};
179 bool m_endTimeHasBeenSet = false;
180 };
181
182} // namespace Model
183} // namespace ivsrealtime
184} // namespace Aws
CompositionState GetState() const
Definition Composition.h:74
Composition & AddDestinations(DestinationsT &&value)
Composition & WithEndTime(EndTimeT &&value)
void SetEndTime(EndTimeT &&value)
Composition & WithTags(TagsT &&value)
Composition & WithArn(ArnT &&value)
Definition Composition.h:55
const Aws::String & GetArn() const
Definition Composition.h:50
AWS_IVSREALTIME_API Composition & operator=(Aws::Utils::Json::JsonView jsonValue)
const LayoutConfiguration & GetLayout() const
Definition Composition.h:84
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:87
const Aws::String & GetStageArn() const
Definition Composition.h:62
const Aws::Vector< Destination > & GetDestinations() const
Definition Composition.h:98
Composition & WithDestinations(DestinationsT &&value)
void SetStartTime(StartTimeT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Composition & WithStageArn(StageArnT &&value)
Definition Composition.h:67
void SetStageArn(StageArnT &&value)
Definition Composition.h:65
Composition & WithState(CompositionState value)
Definition Composition.h:77
void SetDestinations(DestinationsT &&value)
void SetState(CompositionState value)
Definition Composition.h:76
Composition & WithLayout(LayoutT &&value)
Definition Composition.h:89
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