AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
StartCompositionRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.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/IvsrealtimeRequest.h>
12#include <aws/ivs-realtime/Ivsrealtime_EXPORTS.h>
13#include <aws/ivs-realtime/model/DestinationConfiguration.h>
14#include <aws/ivs-realtime/model/LayoutConfiguration.h>
15
16#include <utility>
17
18namespace Aws {
19namespace ivsrealtime {
20namespace Model {
21
25 public:
26 AWS_IVSREALTIME_API StartCompositionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "StartComposition"; }
33
34 AWS_IVSREALTIME_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetStageArn() const { return m_stageArn; }
41 inline bool StageArnHasBeenSet() const { return m_stageArnHasBeenSet; }
42 template <typename StageArnT = Aws::String>
43 void SetStageArn(StageArnT&& value) {
44 m_stageArnHasBeenSet = true;
45 m_stageArn = std::forward<StageArnT>(value);
46 }
47 template <typename StageArnT = Aws::String>
49 SetStageArn(std::forward<StageArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
59 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
60 template <typename IdempotencyTokenT = Aws::String>
61 void SetIdempotencyToken(IdempotencyTokenT&& value) {
62 m_idempotencyTokenHasBeenSet = true;
63 m_idempotencyToken = std::forward<IdempotencyTokenT>(value);
64 }
65 template <typename IdempotencyTokenT = Aws::String>
66 StartCompositionRequest& WithIdempotencyToken(IdempotencyTokenT&& value) {
67 SetIdempotencyToken(std::forward<IdempotencyTokenT>(value));
68 return *this;
69 }
71
73
76 inline const LayoutConfiguration& GetLayout() const { return m_layout; }
77 inline bool LayoutHasBeenSet() const { return m_layoutHasBeenSet; }
78 template <typename LayoutT = LayoutConfiguration>
79 void SetLayout(LayoutT&& value) {
80 m_layoutHasBeenSet = true;
81 m_layout = std::forward<LayoutT>(value);
82 }
83 template <typename LayoutT = LayoutConfiguration>
85 SetLayout(std::forward<LayoutT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Vector<DestinationConfiguration>& GetDestinations() const { return m_destinations; }
95 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
96 template <typename DestinationsT = Aws::Vector<DestinationConfiguration>>
97 void SetDestinations(DestinationsT&& value) {
98 m_destinationsHasBeenSet = true;
99 m_destinations = std::forward<DestinationsT>(value);
100 }
101 template <typename DestinationsT = Aws::Vector<DestinationConfiguration>>
103 SetDestinations(std::forward<DestinationsT>(value));
104 return *this;
105 }
106 template <typename DestinationsT = DestinationConfiguration>
107 StartCompositionRequest& AddDestinations(DestinationsT&& value) {
108 m_destinationsHasBeenSet = true;
109 m_destinations.emplace_back(std::forward<DestinationsT>(value));
110 return *this;
111 }
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 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
127 void SetTags(TagsT&& value) {
128 m_tagsHasBeenSet = true;
129 m_tags = std::forward<TagsT>(value);
130 }
131 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
133 SetTags(std::forward<TagsT>(value));
134 return *this;
135 }
136 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
137 StartCompositionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
138 m_tagsHasBeenSet = true;
139 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_stageArn;
145
147
148 LayoutConfiguration m_layout;
149
151
153 bool m_stageArnHasBeenSet = false;
154 bool m_idempotencyTokenHasBeenSet = true;
155 bool m_layoutHasBeenSet = false;
156 bool m_destinationsHasBeenSet = false;
157 bool m_tagsHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace ivsrealtime
162} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
StartCompositionRequest & WithStageArn(StageArnT &&value)
StartCompositionRequest & WithTags(TagsT &&value)
StartCompositionRequest & WithLayout(LayoutT &&value)
StartCompositionRequest & AddDestinations(DestinationsT &&value)
StartCompositionRequest & WithDestinations(DestinationsT &&value)
StartCompositionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Vector< DestinationConfiguration > & GetDestinations() const
StartCompositionRequest & WithIdempotencyToken(IdempotencyTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_IVSREALTIME_API StartCompositionRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_IVSREALTIME_API Aws::String SerializePayload() const override
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