AWS SDK for C++

AWS SDK for C++ Version 1.11.911

Loading...
Searching...
No Matches
PutDeliverySourceRequest.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/logs/CloudWatchLogsRequest.h>
10#include <aws/logs/CloudWatchLogs_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CloudWatchLogs {
16namespace Model {
17
21 public:
22 AWS_CLOUDWATCHLOGS_API PutDeliverySourceRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "PutDeliverySource"; }
29
30 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
31
32 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
67 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
68 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
69 template <typename ResourceArnT = Aws::String>
70 void SetResourceArn(ResourceArnT&& value) {
71 m_resourceArnHasBeenSet = true;
72 m_resourceArn = std::forward<ResourceArnT>(value);
73 }
74 template <typename ResourceArnT = Aws::String>
76 SetResourceArn(std::forward<ResourceArnT>(value));
77 return *this;
78 }
80
82
155 inline const Aws::String& GetLogType() const { return m_logType; }
156 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
157 template <typename LogTypeT = Aws::String>
158 void SetLogType(LogTypeT&& value) {
159 m_logTypeHasBeenSet = true;
160 m_logType = std::forward<LogTypeT>(value);
161 }
162 template <typename LogTypeT = Aws::String>
164 SetLogType(std::forward<LogTypeT>(value));
165 return *this;
166 }
168
170
176 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
177 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
178 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
179 void SetTags(TagsT&& value) {
180 m_tagsHasBeenSet = true;
181 m_tags = std::forward<TagsT>(value);
182 }
183 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
185 SetTags(std::forward<TagsT>(value));
186 return *this;
187 }
188 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
189 PutDeliverySourceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
190 m_tagsHasBeenSet = true;
191 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
192 return *this;
193 }
195
197
202 inline const Aws::Map<Aws::String, Aws::String>& GetDeliverySourceConfiguration() const { return m_deliverySourceConfiguration; }
203 inline bool DeliverySourceConfigurationHasBeenSet() const { return m_deliverySourceConfigurationHasBeenSet; }
204 template <typename DeliverySourceConfigurationT = Aws::Map<Aws::String, Aws::String>>
205 void SetDeliverySourceConfiguration(DeliverySourceConfigurationT&& value) {
206 m_deliverySourceConfigurationHasBeenSet = true;
207 m_deliverySourceConfiguration = std::forward<DeliverySourceConfigurationT>(value);
208 }
209 template <typename DeliverySourceConfigurationT = Aws::Map<Aws::String, Aws::String>>
210 PutDeliverySourceRequest& WithDeliverySourceConfiguration(DeliverySourceConfigurationT&& value) {
211 SetDeliverySourceConfiguration(std::forward<DeliverySourceConfigurationT>(value));
212 return *this;
213 }
214 template <typename DeliverySourceConfigurationKeyT = Aws::String, typename DeliverySourceConfigurationValueT = Aws::String>
215 PutDeliverySourceRequest& AddDeliverySourceConfiguration(DeliverySourceConfigurationKeyT&& key,
216 DeliverySourceConfigurationValueT&& value) {
217 m_deliverySourceConfigurationHasBeenSet = true;
218 m_deliverySourceConfiguration.emplace(std::forward<DeliverySourceConfigurationKeyT>(key),
219 std::forward<DeliverySourceConfigurationValueT>(value));
220 return *this;
221 }
223 private:
224 Aws::String m_name;
225
226 Aws::String m_resourceArn;
227
228 Aws::String m_logType;
229
231
232 Aws::Map<Aws::String, Aws::String> m_deliverySourceConfiguration;
233 bool m_nameHasBeenSet = false;
234 bool m_resourceArnHasBeenSet = false;
235 bool m_logTypeHasBeenSet = false;
236 bool m_tagsHasBeenSet = false;
237 bool m_deliverySourceConfigurationHasBeenSet = false;
238};
239
240} // namespace Model
241} // namespace CloudWatchLogs
242} // namespace Aws
PutDeliverySourceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_CLOUDWATCHLOGS_API PutDeliverySourceRequest()=default
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
PutDeliverySourceRequest & WithDeliverySourceConfiguration(DeliverySourceConfigurationT &&value)
void SetDeliverySourceConfiguration(DeliverySourceConfigurationT &&value)
PutDeliverySourceRequest & AddDeliverySourceConfiguration(DeliverySourceConfigurationKeyT &&key, DeliverySourceConfigurationValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetDeliverySourceConfiguration() const
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
PutDeliverySourceRequest & WithName(NameT &&value)
PutDeliverySourceRequest & WithLogType(LogTypeT &&value)
PutDeliverySourceRequest & WithResourceArn(ResourceArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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