AWS SDK for C++

AWS SDK for C++ Version 1.11.809

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
128 inline const Aws::String& GetLogType() const { return m_logType; }
129 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
130 template <typename LogTypeT = Aws::String>
131 void SetLogType(LogTypeT&& value) {
132 m_logTypeHasBeenSet = true;
133 m_logType = std::forward<LogTypeT>(value);
134 }
135 template <typename LogTypeT = Aws::String>
137 SetLogType(std::forward<LogTypeT>(value));
138 return *this;
139 }
141
143
149 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
150 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
151 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
152 void SetTags(TagsT&& value) {
153 m_tagsHasBeenSet = true;
154 m_tags = std::forward<TagsT>(value);
155 }
156 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
158 SetTags(std::forward<TagsT>(value));
159 return *this;
160 }
161 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
162 PutDeliverySourceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
163 m_tagsHasBeenSet = true;
164 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
165 return *this;
166 }
168
170
175 inline const Aws::Map<Aws::String, Aws::String>& GetDeliverySourceConfiguration() const { return m_deliverySourceConfiguration; }
176 inline bool DeliverySourceConfigurationHasBeenSet() const { return m_deliverySourceConfigurationHasBeenSet; }
177 template <typename DeliverySourceConfigurationT = Aws::Map<Aws::String, Aws::String>>
178 void SetDeliverySourceConfiguration(DeliverySourceConfigurationT&& value) {
179 m_deliverySourceConfigurationHasBeenSet = true;
180 m_deliverySourceConfiguration = std::forward<DeliverySourceConfigurationT>(value);
181 }
182 template <typename DeliverySourceConfigurationT = Aws::Map<Aws::String, Aws::String>>
183 PutDeliverySourceRequest& WithDeliverySourceConfiguration(DeliverySourceConfigurationT&& value) {
184 SetDeliverySourceConfiguration(std::forward<DeliverySourceConfigurationT>(value));
185 return *this;
186 }
187 template <typename DeliverySourceConfigurationKeyT = Aws::String, typename DeliverySourceConfigurationValueT = Aws::String>
188 PutDeliverySourceRequest& AddDeliverySourceConfiguration(DeliverySourceConfigurationKeyT&& key,
189 DeliverySourceConfigurationValueT&& value) {
190 m_deliverySourceConfigurationHasBeenSet = true;
191 m_deliverySourceConfiguration.emplace(std::forward<DeliverySourceConfigurationKeyT>(key),
192 std::forward<DeliverySourceConfigurationValueT>(value));
193 return *this;
194 }
196 private:
197 Aws::String m_name;
198
199 Aws::String m_resourceArn;
200
201 Aws::String m_logType;
202
204
205 Aws::Map<Aws::String, Aws::String> m_deliverySourceConfiguration;
206 bool m_nameHasBeenSet = false;
207 bool m_resourceArnHasBeenSet = false;
208 bool m_logTypeHasBeenSet = false;
209 bool m_tagsHasBeenSet = false;
210 bool m_deliverySourceConfigurationHasBeenSet = false;
211};
212
213} // namespace Model
214} // namespace CloudWatchLogs
215} // 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