AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateIngestConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ivs-realtime/IvsrealtimeRequest.h>
10#include <aws/ivs-realtime/Ivsrealtime_EXPORTS.h>
11#include <aws/ivs-realtime/model/IngestProtocol.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ivsrealtime {
17namespace Model {
18
22 public:
23 AWS_IVSREALTIME_API CreateIngestConfigurationRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateIngestConfiguration"; }
30
31 AWS_IVSREALTIME_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetStageArn() const { return m_stageArn; }
57 inline bool StageArnHasBeenSet() const { return m_stageArnHasBeenSet; }
58 template <typename StageArnT = Aws::String>
59 void SetStageArn(StageArnT&& value) {
60 m_stageArnHasBeenSet = true;
61 m_stageArn = std::forward<StageArnT>(value);
62 }
63 template <typename StageArnT = Aws::String>
65 SetStageArn(std::forward<StageArnT>(value));
66 return *this;
67 }
69
71
78 inline const Aws::String& GetUserId() const { return m_userId; }
79 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
80 template <typename UserIdT = Aws::String>
81 void SetUserId(UserIdT&& value) {
82 m_userIdHasBeenSet = true;
83 m_userId = std::forward<UserIdT>(value);
84 }
85 template <typename UserIdT = Aws::String>
87 SetUserId(std::forward<UserIdT>(value));
88 return *this;
89 }
91
93
100 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
101 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
102 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
103 void SetAttributes(AttributesT&& value) {
104 m_attributesHasBeenSet = true;
105 m_attributes = std::forward<AttributesT>(value);
106 }
107 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
109 SetAttributes(std::forward<AttributesT>(value));
110 return *this;
111 }
112 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
113 CreateIngestConfigurationRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
114 m_attributesHasBeenSet = true;
115 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
116 return *this;
117 }
119
121
126 inline IngestProtocol GetIngestProtocol() const { return m_ingestProtocol; }
127 inline bool IngestProtocolHasBeenSet() const { return m_ingestProtocolHasBeenSet; }
129 m_ingestProtocolHasBeenSet = true;
130 m_ingestProtocol = value;
131 }
133 SetIngestProtocol(value);
134 return *this;
135 }
137
139
144 inline bool GetInsecureIngest() const { return m_insecureIngest; }
145 inline bool InsecureIngestHasBeenSet() const { return m_insecureIngestHasBeenSet; }
146 inline void SetInsecureIngest(bool value) {
147 m_insecureIngestHasBeenSet = true;
148 m_insecureIngest = value;
149 }
151 SetInsecureIngest(value);
152 return *this;
153 }
155
157
166 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
167 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
168 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
169 void SetTags(TagsT&& value) {
170 m_tagsHasBeenSet = true;
171 m_tags = std::forward<TagsT>(value);
172 }
173 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
175 SetTags(std::forward<TagsT>(value));
176 return *this;
177 }
178 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
179 CreateIngestConfigurationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
180 m_tagsHasBeenSet = true;
181 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
182 return *this;
183 }
185 private:
186 Aws::String m_name;
187
188 Aws::String m_stageArn;
189
190 Aws::String m_userId;
191
193
194 IngestProtocol m_ingestProtocol{IngestProtocol::NOT_SET};
195
196 bool m_insecureIngest{false};
197
199 bool m_nameHasBeenSet = false;
200 bool m_stageArnHasBeenSet = false;
201 bool m_userIdHasBeenSet = false;
202 bool m_attributesHasBeenSet = false;
203 bool m_ingestProtocolHasBeenSet = false;
204 bool m_insecureIngestHasBeenSet = false;
205 bool m_tagsHasBeenSet = false;
206};
207
208} // namespace Model
209} // namespace ivsrealtime
210} // namespace Aws
CreateIngestConfigurationRequest & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
AWS_IVSREALTIME_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateIngestConfigurationRequest & WithStageArn(StageArnT &&value)
AWS_IVSREALTIME_API CreateIngestConfigurationRequest()=default
CreateIngestConfigurationRequest & WithUserId(UserIdT &&value)
CreateIngestConfigurationRequest & WithAttributes(AttributesT &&value)
CreateIngestConfigurationRequest & WithIngestProtocol(IngestProtocol value)
CreateIngestConfigurationRequest & AddTags(TagsKeyT &&key, TagsValueT &&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