AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
53 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
54 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
55 inline Composition& WithArn(const Aws::String& value) { SetArn(value); return *this;}
56 inline Composition& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
57 inline Composition& WithArn(const char* value) { SetArn(value); return *this;}
59
61
64 inline const Aws::String& GetStageArn() const{ return m_stageArn; }
65 inline bool StageArnHasBeenSet() const { return m_stageArnHasBeenSet; }
66 inline void SetStageArn(const Aws::String& value) { m_stageArnHasBeenSet = true; m_stageArn = value; }
67 inline void SetStageArn(Aws::String&& value) { m_stageArnHasBeenSet = true; m_stageArn = std::move(value); }
68 inline void SetStageArn(const char* value) { m_stageArnHasBeenSet = true; m_stageArn.assign(value); }
69 inline Composition& WithStageArn(const Aws::String& value) { SetStageArn(value); return *this;}
70 inline Composition& WithStageArn(Aws::String&& value) { SetStageArn(std::move(value)); return *this;}
71 inline Composition& WithStageArn(const char* value) { SetStageArn(value); return *this;}
73
75
78 inline const CompositionState& GetState() const{ return m_state; }
79 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
80 inline void SetState(const CompositionState& value) { m_stateHasBeenSet = true; m_state = value; }
81 inline void SetState(CompositionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
82 inline Composition& WithState(const CompositionState& value) { SetState(value); return *this;}
83 inline Composition& WithState(CompositionState&& value) { SetState(std::move(value)); return *this;}
85
87
90 inline const LayoutConfiguration& GetLayout() const{ return m_layout; }
91 inline bool LayoutHasBeenSet() const { return m_layoutHasBeenSet; }
92 inline void SetLayout(const LayoutConfiguration& value) { m_layoutHasBeenSet = true; m_layout = value; }
93 inline void SetLayout(LayoutConfiguration&& value) { m_layoutHasBeenSet = true; m_layout = std::move(value); }
94 inline Composition& WithLayout(const LayoutConfiguration& value) { SetLayout(value); return *this;}
95 inline Composition& WithLayout(LayoutConfiguration&& value) { SetLayout(std::move(value)); return *this;}
97
99
104 inline const Aws::Vector<Destination>& GetDestinations() const{ return m_destinations; }
105 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
106 inline void SetDestinations(const Aws::Vector<Destination>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
107 inline void SetDestinations(Aws::Vector<Destination>&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
108 inline Composition& WithDestinations(const Aws::Vector<Destination>& value) { SetDestinations(value); return *this;}
109 inline Composition& WithDestinations(Aws::Vector<Destination>&& value) { SetDestinations(std::move(value)); return *this;}
110 inline Composition& AddDestinations(const Destination& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
111 inline Composition& AddDestinations(Destination&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; }
113
115
124 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
125 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
126 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
127 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
128 inline Composition& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
129 inline Composition& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
130 inline Composition& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
131 inline Composition& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
132 inline Composition& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
133 inline Composition& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
134 inline Composition& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
135 inline Composition& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
136 inline Composition& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
138
140
144 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
145 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
146 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
147 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
148 inline Composition& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
149 inline Composition& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
151
153
157 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
158 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
159 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
160 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
161 inline Composition& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
162 inline Composition& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
164 private:
165
166 Aws::String m_arn;
167 bool m_arnHasBeenSet = false;
168
169 Aws::String m_stageArn;
170 bool m_stageArnHasBeenSet = false;
171
172 CompositionState m_state;
173 bool m_stateHasBeenSet = false;
174
175 LayoutConfiguration m_layout;
176 bool m_layoutHasBeenSet = false;
177
178 Aws::Vector<Destination> m_destinations;
179 bool m_destinationsHasBeenSet = false;
180
182 bool m_tagsHasBeenSet = false;
183
184 Aws::Utils::DateTime m_startTime;
185 bool m_startTimeHasBeenSet = false;
186
187 Aws::Utils::DateTime m_endTime;
188 bool m_endTimeHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace ivsrealtime
193} // namespace Aws
Composition & WithEndTime(Aws::Utils::DateTime &&value)
Composition & WithStageArn(Aws::String &&value)
Definition Composition.h:70
void SetStageArn(Aws::String &&value)
Definition Composition.h:67
Composition & WithStartTime(const Aws::Utils::DateTime &value)
Composition & WithStageArn(const Aws::String &value)
Definition Composition.h:69
Composition & WithStartTime(Aws::Utils::DateTime &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
Composition & WithDestinations(Aws::Vector< Destination > &&value)
Composition & WithLayout(const LayoutConfiguration &value)
Definition Composition.h:94
void SetArn(const char *value)
Definition Composition.h:54
void SetEndTime(Aws::Utils::DateTime &&value)
Composition & AddTags(Aws::String &&key, const Aws::String &value)
Composition & AddDestinations(const Destination &value)
Composition & WithState(CompositionState &&value)
Definition Composition.h:83
void SetDestinations(const Aws::Vector< Destination > &value)
Composition & WithEndTime(const Aws::Utils::DateTime &value)
AWS_IVSREALTIME_API Composition()
void SetDestinations(Aws::Vector< Destination > &&value)
void SetLayout(LayoutConfiguration &&value)
Definition Composition.h:93
const Aws::String & GetArn() const
Definition Composition.h:50
AWS_IVSREALTIME_API Composition & operator=(Aws::Utils::Json::JsonView jsonValue)
Composition & AddTags(Aws::String &&key, Aws::String &&value)
Composition & AddTags(Aws::String &&key, const char *value)
const LayoutConfiguration & GetLayout() const
Definition Composition.h:90
Composition & AddTags(const char *key, Aws::String &&value)
const Aws::Utils::DateTime & GetEndTime() const
Composition & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Composition & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Composition & AddTags(const Aws::String &key, const Aws::String &value)
Composition & AddTags(const char *key, const char *value)
AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStartTime(Aws::Utils::DateTime &&value)
Composition & WithDestinations(const Aws::Vector< Destination > &value)
const Aws::String & GetStageArn() const
Definition Composition.h:64
const Aws::Vector< Destination > & GetDestinations() const
const CompositionState & GetState() const
Definition Composition.h:78
void SetLayout(const LayoutConfiguration &value)
Definition Composition.h:92
void SetStageArn(const Aws::String &value)
Definition Composition.h:66
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetArn(Aws::String &&value)
Definition Composition.h:53
Composition & WithArn(Aws::String &&value)
Definition Composition.h:56
AWS_IVSREALTIME_API Composition(Aws::Utils::Json::JsonView jsonValue)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Composition & WithArn(const char *value)
Definition Composition.h:57
Composition & AddTags(const Aws::String &key, Aws::String &&value)
Composition & WithLayout(LayoutConfiguration &&value)
Definition Composition.h:95
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Composition & WithArn(const Aws::String &value)
Definition Composition.h:55
void SetStartTime(const Aws::Utils::DateTime &value)
void SetStageArn(const char *value)
Definition Composition.h:68
Composition & AddDestinations(Destination &&value)
void SetState(const CompositionState &value)
Definition Composition.h:80
void SetState(CompositionState &&value)
Definition Composition.h:81
void SetArn(const Aws::String &value)
Definition Composition.h:52
Composition & WithState(const CompositionState &value)
Definition Composition.h:82
const Aws::Utils::DateTime & GetStartTime() const
Composition & WithStageArn(const char *value)
Definition Composition.h:71
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