AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
DeliverySource.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/logs/CloudWatchLogs_EXPORTS.h>
11#include <aws/logs/model/DeliverySourceStatus.h>
12#include <aws/logs/model/DeliverySourceStatusReason.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudWatchLogs {
24namespace Model {
25
58 public:
59 AWS_CLOUDWATCHLOGS_API DeliverySource() = default;
60 AWS_CLOUDWATCHLOGS_API DeliverySource(Aws::Utils::Json::JsonView jsonValue);
61 AWS_CLOUDWATCHLOGS_API DeliverySource& operator=(Aws::Utils::Json::JsonView jsonValue);
62 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
63
65
68 inline const Aws::String& GetName() const { return m_name; }
69 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
70 template <typename NameT = Aws::String>
71 void SetName(NameT&& value) {
72 m_nameHasBeenSet = true;
73 m_name = std::forward<NameT>(value);
74 }
75 template <typename NameT = Aws::String>
76 DeliverySource& WithName(NameT&& value) {
77 SetName(std::forward<NameT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::String& GetArn() const { return m_arn; }
88 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
89 template <typename ArnT = Aws::String>
90 void SetArn(ArnT&& value) {
91 m_arnHasBeenSet = true;
92 m_arn = std::forward<ArnT>(value);
93 }
94 template <typename ArnT = Aws::String>
95 DeliverySource& WithArn(ArnT&& value) {
96 SetArn(std::forward<ArnT>(value));
97 return *this;
98 }
100
102
107 inline const Aws::Vector<Aws::String>& GetResourceArns() const { return m_resourceArns; }
108 inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
109 template <typename ResourceArnsT = Aws::Vector<Aws::String>>
110 void SetResourceArns(ResourceArnsT&& value) {
111 m_resourceArnsHasBeenSet = true;
112 m_resourceArns = std::forward<ResourceArnsT>(value);
113 }
114 template <typename ResourceArnsT = Aws::Vector<Aws::String>>
115 DeliverySource& WithResourceArns(ResourceArnsT&& value) {
116 SetResourceArns(std::forward<ResourceArnsT>(value));
117 return *this;
118 }
119 template <typename ResourceArnsT = Aws::String>
120 DeliverySource& AddResourceArns(ResourceArnsT&& value) {
121 m_resourceArnsHasBeenSet = true;
122 m_resourceArns.emplace_back(std::forward<ResourceArnsT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetService() const { return m_service; }
132 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
133 template <typename ServiceT = Aws::String>
134 void SetService(ServiceT&& value) {
135 m_serviceHasBeenSet = true;
136 m_service = std::forward<ServiceT>(value);
137 }
138 template <typename ServiceT = Aws::String>
139 DeliverySource& WithService(ServiceT&& value) {
140 SetService(std::forward<ServiceT>(value));
141 return *this;
142 }
144
146
150 inline const Aws::String& GetLogType() const { return m_logType; }
151 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
152 template <typename LogTypeT = Aws::String>
153 void SetLogType(LogTypeT&& value) {
154 m_logTypeHasBeenSet = true;
155 m_logType = std::forward<LogTypeT>(value);
156 }
157 template <typename LogTypeT = Aws::String>
158 DeliverySource& WithLogType(LogTypeT&& value) {
159 SetLogType(std::forward<LogTypeT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
169 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
170 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
171 void SetTags(TagsT&& value) {
172 m_tagsHasBeenSet = true;
173 m_tags = std::forward<TagsT>(value);
174 }
175 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
176 DeliverySource& WithTags(TagsT&& value) {
177 SetTags(std::forward<TagsT>(value));
178 return *this;
179 }
180 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
181 DeliverySource& AddTags(TagsKeyT&& key, TagsValueT&& value) {
182 m_tagsHasBeenSet = true;
183 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
184 return *this;
185 }
187
189
192 inline const Aws::Map<Aws::String, Aws::String>& GetDeliverySourceConfiguration() const { return m_deliverySourceConfiguration; }
193 inline bool DeliverySourceConfigurationHasBeenSet() const { return m_deliverySourceConfigurationHasBeenSet; }
194 template <typename DeliverySourceConfigurationT = Aws::Map<Aws::String, Aws::String>>
195 void SetDeliverySourceConfiguration(DeliverySourceConfigurationT&& value) {
196 m_deliverySourceConfigurationHasBeenSet = true;
197 m_deliverySourceConfiguration = std::forward<DeliverySourceConfigurationT>(value);
198 }
199 template <typename DeliverySourceConfigurationT = Aws::Map<Aws::String, Aws::String>>
200 DeliverySource& WithDeliverySourceConfiguration(DeliverySourceConfigurationT&& value) {
201 SetDeliverySourceConfiguration(std::forward<DeliverySourceConfigurationT>(value));
202 return *this;
203 }
204 template <typename DeliverySourceConfigurationKeyT = Aws::String, typename DeliverySourceConfigurationValueT = Aws::String>
205 DeliverySource& AddDeliverySourceConfiguration(DeliverySourceConfigurationKeyT&& key, DeliverySourceConfigurationValueT&& value) {
206 m_deliverySourceConfigurationHasBeenSet = true;
207 m_deliverySourceConfiguration.emplace(std::forward<DeliverySourceConfigurationKeyT>(key),
208 std::forward<DeliverySourceConfigurationValueT>(value));
209 return *this;
210 }
212
214
219 inline DeliverySourceStatus GetStatus() const { return m_status; }
220 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
221 inline void SetStatus(DeliverySourceStatus value) {
222 m_statusHasBeenSet = true;
223 m_status = value;
224 }
226 SetStatus(value);
227 return *this;
228 }
230
232
238 inline DeliverySourceStatusReason GetStatusReason() const { return m_statusReason; }
239 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
241 m_statusReasonHasBeenSet = true;
242 m_statusReason = value;
243 }
245 SetStatusReason(value);
246 return *this;
247 }
249 private:
250 Aws::String m_name;
251
252 Aws::String m_arn;
253
254 Aws::Vector<Aws::String> m_resourceArns;
255
256 Aws::String m_service;
257
258 Aws::String m_logType;
259
261
262 Aws::Map<Aws::String, Aws::String> m_deliverySourceConfiguration;
263
265
267 bool m_nameHasBeenSet = false;
268 bool m_arnHasBeenSet = false;
269 bool m_resourceArnsHasBeenSet = false;
270 bool m_serviceHasBeenSet = false;
271 bool m_logTypeHasBeenSet = false;
272 bool m_tagsHasBeenSet = false;
273 bool m_deliverySourceConfigurationHasBeenSet = false;
274 bool m_statusHasBeenSet = false;
275 bool m_statusReasonHasBeenSet = false;
276};
277
278} // namespace Model
279} // namespace CloudWatchLogs
280} // namespace Aws
const Aws::Vector< Aws::String > & GetResourceArns() const
DeliverySource & WithService(ServiceT &&value)
DeliverySourceStatusReason GetStatusReason() const
AWS_CLOUDWATCHLOGS_API DeliverySource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API DeliverySource()=default
DeliverySource & WithArn(ArnT &&value)
DeliverySource & WithStatus(DeliverySourceStatus value)
const Aws::Map< Aws::String, Aws::String > & GetDeliverySourceConfiguration() const
DeliverySource & AddDeliverySourceConfiguration(DeliverySourceConfigurationKeyT &&key, DeliverySourceConfigurationValueT &&value)
DeliverySource & WithLogType(LogTypeT &&value)
void SetDeliverySourceConfiguration(DeliverySourceConfigurationT &&value)
DeliverySource & WithResourceArns(ResourceArnsT &&value)
DeliverySource & WithDeliverySourceConfiguration(DeliverySourceConfigurationT &&value)
void SetStatus(DeliverySourceStatus value)
DeliverySource & WithName(NameT &&value)
DeliverySource & AddResourceArns(ResourceArnsT &&value)
DeliverySourceStatus GetStatus() const
void SetStatusReason(DeliverySourceStatusReason value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetResourceArns(ResourceArnsT &&value)
DeliverySource & WithTags(TagsT &&value)
DeliverySource & AddTags(TagsKeyT &&key, TagsValueT &&value)
DeliverySource & WithStatusReason(DeliverySourceStatusReason value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDWATCHLOGS_API DeliverySource(Aws::Utils::Json::JsonView jsonValue)
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue