AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CompositionSummary.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/ivs-realtime/model/CompositionState.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/ivs-realtime/model/DestinationSummary.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ivsrealtime
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_IVSREALTIME_API CompositionSummary() = default;
40 AWS_IVSREALTIME_API CompositionSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetArn() const { return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 template<typename ArnT = Aws::String>
52 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
53 template<typename ArnT = Aws::String>
54 CompositionSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_stageArnHasBeenSet = true; m_stageArn = std::forward<StageArnT>(value); }
65 template<typename StageArnT = Aws::String>
66 CompositionSummary& WithStageArn(StageArnT&& value) { SetStageArn(std::forward<StageArnT>(value)); return *this;}
68
70
73 inline const Aws::Vector<DestinationSummary>& GetDestinations() const { return m_destinations; }
74 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
75 template<typename DestinationsT = Aws::Vector<DestinationSummary>>
76 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
77 template<typename DestinationsT = Aws::Vector<DestinationSummary>>
78 CompositionSummary& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
79 template<typename DestinationsT = DestinationSummary>
80 CompositionSummary& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
82
84
87 inline CompositionState GetState() const { return m_state; }
88 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
89 inline void SetState(CompositionState value) { m_stateHasBeenSet = true; m_state = value; }
90 inline CompositionSummary& WithState(CompositionState value) { SetState(value); return *this;}
92
94
103 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
104 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
105 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
106 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
107 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
108 CompositionSummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
109 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
110 CompositionSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
111 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
112 }
114
116
120 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
121 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
122 template<typename StartTimeT = Aws::Utils::DateTime>
123 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
124 template<typename StartTimeT = Aws::Utils::DateTime>
125 CompositionSummary& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
127
129
133 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
134 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
135 template<typename EndTimeT = Aws::Utils::DateTime>
136 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
137 template<typename EndTimeT = Aws::Utils::DateTime>
138 CompositionSummary& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
140 private:
141
142 Aws::String m_arn;
143 bool m_arnHasBeenSet = false;
144
145 Aws::String m_stageArn;
146 bool m_stageArnHasBeenSet = false;
147
148 Aws::Vector<DestinationSummary> m_destinations;
149 bool m_destinationsHasBeenSet = false;
150
152 bool m_stateHasBeenSet = false;
153
155 bool m_tagsHasBeenSet = false;
156
157 Aws::Utils::DateTime m_startTime{};
158 bool m_startTimeHasBeenSet = false;
159
160 Aws::Utils::DateTime m_endTime{};
161 bool m_endTimeHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace ivsrealtime
166} // 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