AWS SDK for C++

AWS SDK for C++ Version 1.11.845

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
140 inline const Aws::String& GetLogType() const { return m_logType; }
141 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
142 template <typename LogTypeT = Aws::String>
143 void SetLogType(LogTypeT&& value) {
144 m_logTypeHasBeenSet = true;
145 m_logType = std::forward<LogTypeT>(value);
146 }
147 template <typename LogTypeT = Aws::String>
149 SetLogType(std::forward<LogTypeT>(value));
150 return *this;
151 }
153
155
161 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
162 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
163 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
164 void SetTags(TagsT&& value) {
165 m_tagsHasBeenSet = true;
166 m_tags = std::forward<TagsT>(value);
167 }
168 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
170 SetTags(std::forward<TagsT>(value));
171 return *this;
172 }
173 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
174 PutDeliverySourceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
175 m_tagsHasBeenSet = true;
176 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
177 return *this;
178 }
180
182
187 inline const Aws::Map<Aws::String, Aws::String>& GetDeliverySourceConfiguration() const { return m_deliverySourceConfiguration; }
188 inline bool DeliverySourceConfigurationHasBeenSet() const { return m_deliverySourceConfigurationHasBeenSet; }
189 template <typename DeliverySourceConfigurationT = Aws::Map<Aws::String, Aws::String>>
190 void SetDeliverySourceConfiguration(DeliverySourceConfigurationT&& value) {
191 m_deliverySourceConfigurationHasBeenSet = true;
192 m_deliverySourceConfiguration = std::forward<DeliverySourceConfigurationT>(value);
193 }
194 template <typename DeliverySourceConfigurationT = Aws::Map<Aws::String, Aws::String>>
195 PutDeliverySourceRequest& WithDeliverySourceConfiguration(DeliverySourceConfigurationT&& value) {
196 SetDeliverySourceConfiguration(std::forward<DeliverySourceConfigurationT>(value));
197 return *this;
198 }
199 template <typename DeliverySourceConfigurationKeyT = Aws::String, typename DeliverySourceConfigurationValueT = Aws::String>
200 PutDeliverySourceRequest& AddDeliverySourceConfiguration(DeliverySourceConfigurationKeyT&& key,
201 DeliverySourceConfigurationValueT&& value) {
202 m_deliverySourceConfigurationHasBeenSet = true;
203 m_deliverySourceConfiguration.emplace(std::forward<DeliverySourceConfigurationKeyT>(key),
204 std::forward<DeliverySourceConfigurationValueT>(value));
205 return *this;
206 }
208 private:
209 Aws::String m_name;
210
211 Aws::String m_resourceArn;
212
213 Aws::String m_logType;
214
216
217 Aws::Map<Aws::String, Aws::String> m_deliverySourceConfiguration;
218 bool m_nameHasBeenSet = false;
219 bool m_resourceArnHasBeenSet = false;
220 bool m_logTypeHasBeenSet = false;
221 bool m_tagsHasBeenSet = false;
222 bool m_deliverySourceConfigurationHasBeenSet = false;
223};
224
225} // namespace Model
226} // namespace CloudWatchLogs
227} // 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