AWS SDK for C++

AWS SDK for C++ Version 1.11.875

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
64 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
65 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
66 template <typename ResourceArnT = Aws::String>
67 void SetResourceArn(ResourceArnT&& value) {
68 m_resourceArnHasBeenSet = true;
69 m_resourceArn = std::forward<ResourceArnT>(value);
70 }
71 template <typename ResourceArnT = Aws::String>
73 SetResourceArn(std::forward<ResourceArnT>(value));
74 return *this;
75 }
77
79
143 inline const Aws::String& GetLogType() const { return m_logType; }
144 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
145 template <typename LogTypeT = Aws::String>
146 void SetLogType(LogTypeT&& value) {
147 m_logTypeHasBeenSet = true;
148 m_logType = std::forward<LogTypeT>(value);
149 }
150 template <typename LogTypeT = Aws::String>
152 SetLogType(std::forward<LogTypeT>(value));
153 return *this;
154 }
156
158
164 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
165 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
166 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
167 void SetTags(TagsT&& value) {
168 m_tagsHasBeenSet = true;
169 m_tags = std::forward<TagsT>(value);
170 }
171 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
173 SetTags(std::forward<TagsT>(value));
174 return *this;
175 }
176 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
177 PutDeliverySourceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
178 m_tagsHasBeenSet = true;
179 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
180 return *this;
181 }
183
185
190 inline const Aws::Map<Aws::String, Aws::String>& GetDeliverySourceConfiguration() const { return m_deliverySourceConfiguration; }
191 inline bool DeliverySourceConfigurationHasBeenSet() const { return m_deliverySourceConfigurationHasBeenSet; }
192 template <typename DeliverySourceConfigurationT = Aws::Map<Aws::String, Aws::String>>
193 void SetDeliverySourceConfiguration(DeliverySourceConfigurationT&& value) {
194 m_deliverySourceConfigurationHasBeenSet = true;
195 m_deliverySourceConfiguration = std::forward<DeliverySourceConfigurationT>(value);
196 }
197 template <typename DeliverySourceConfigurationT = Aws::Map<Aws::String, Aws::String>>
198 PutDeliverySourceRequest& WithDeliverySourceConfiguration(DeliverySourceConfigurationT&& value) {
199 SetDeliverySourceConfiguration(std::forward<DeliverySourceConfigurationT>(value));
200 return *this;
201 }
202 template <typename DeliverySourceConfigurationKeyT = Aws::String, typename DeliverySourceConfigurationValueT = Aws::String>
203 PutDeliverySourceRequest& AddDeliverySourceConfiguration(DeliverySourceConfigurationKeyT&& key,
204 DeliverySourceConfigurationValueT&& value) {
205 m_deliverySourceConfigurationHasBeenSet = true;
206 m_deliverySourceConfiguration.emplace(std::forward<DeliverySourceConfigurationKeyT>(key),
207 std::forward<DeliverySourceConfigurationValueT>(value));
208 return *this;
209 }
211 private:
212 Aws::String m_name;
213
214 Aws::String m_resourceArn;
215
216 Aws::String m_logType;
217
219
220 Aws::Map<Aws::String, Aws::String> m_deliverySourceConfiguration;
221 bool m_nameHasBeenSet = false;
222 bool m_resourceArnHasBeenSet = false;
223 bool m_logTypeHasBeenSet = false;
224 bool m_tagsHasBeenSet = false;
225 bool m_deliverySourceConfigurationHasBeenSet = false;
226};
227
228} // namespace Model
229} // namespace CloudWatchLogs
230} // 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