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>
23namespace CloudWatchLogs {
70 template <
typename NameT = Aws::String>
72 m_nameHasBeenSet =
true;
73 m_name = std::forward<NameT>(value);
75 template <
typename NameT = Aws::String>
77 SetName(std::forward<NameT>(value));
89 template <
typename ArnT = Aws::String>
91 m_arnHasBeenSet =
true;
92 m_arn = std::forward<ArnT>(value);
94 template <
typename ArnT = Aws::String>
96 SetArn(std::forward<ArnT>(value));
109 template <
typename ResourceArnsT = Aws::Vector<Aws::String>>
111 m_resourceArnsHasBeenSet =
true;
112 m_resourceArns = std::forward<ResourceArnsT>(value);
114 template <
typename ResourceArnsT = Aws::Vector<Aws::String>>
119 template <
typename ResourceArnsT = Aws::String>
121 m_resourceArnsHasBeenSet =
true;
122 m_resourceArns.emplace_back(std::forward<ResourceArnsT>(value));
133 template <
typename ServiceT = Aws::String>
135 m_serviceHasBeenSet =
true;
136 m_service = std::forward<ServiceT>(value);
138 template <
typename ServiceT = Aws::String>
152 template <
typename LogTypeT = Aws::String>
154 m_logTypeHasBeenSet =
true;
155 m_logType = std::forward<LogTypeT>(value);
157 template <
typename LogTypeT = Aws::String>
170 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
172 m_tagsHasBeenSet =
true;
173 m_tags = std::forward<TagsT>(value);
175 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
177 SetTags(std::forward<TagsT>(value));
180 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
182 m_tagsHasBeenSet =
true;
183 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
194 template <
typename DeliverySourceConfigurationT = Aws::Map<Aws::String, Aws::String>>
196 m_deliverySourceConfigurationHasBeenSet =
true;
197 m_deliverySourceConfiguration = std::forward<DeliverySourceConfigurationT>(value);
199 template <
typename DeliverySourceConfigurationT = Aws::Map<Aws::String, Aws::String>>
204 template <
typename DeliverySourceConfigurationKeyT = Aws::String,
typename DeliverySourceConfigurationValueT = Aws::String>
206 m_deliverySourceConfigurationHasBeenSet =
true;
207 m_deliverySourceConfiguration.emplace(std::forward<DeliverySourceConfigurationKeyT>(key),
208 std::forward<DeliverySourceConfigurationValueT>(value));
222 m_statusHasBeenSet =
true;
241 m_statusReasonHasBeenSet =
true;
242 m_statusReason = value;
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;
const Aws::Vector< Aws::String > & GetResourceArns() const
DeliverySource & WithService(ServiceT &&value)
DeliverySourceStatusReason GetStatusReason() const
AWS_CLOUDWATCHLOGS_API DeliverySource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
AWS_CLOUDWATCHLOGS_API DeliverySource()=default
DeliverySource & WithArn(ArnT &&value)
bool LogTypeHasBeenSet() const
bool TagsHasBeenSet() const
bool ServiceHasBeenSet() const
DeliverySource & WithStatus(DeliverySourceStatus value)
const Aws::Map< Aws::String, Aws::String > & GetDeliverySourceConfiguration() const
bool NameHasBeenSet() 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)
const Aws::String & GetArn() const
DeliverySource & WithName(NameT &&value)
bool DeliverySourceConfigurationHasBeenSet() const
const Aws::String & GetName() const
void SetLogType(LogTypeT &&value)
DeliverySource & AddResourceArns(ResourceArnsT &&value)
const Aws::String & GetService() const
void SetService(ServiceT &&value)
bool StatusHasBeenSet() const
DeliverySourceStatus GetStatus() const
void SetStatusReason(DeliverySourceStatusReason value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
bool ArnHasBeenSet() const
void SetResourceArns(ResourceArnsT &&value)
bool StatusReasonHasBeenSet() const
DeliverySource & WithTags(TagsT &&value)
bool ResourceArnsHasBeenSet() const
DeliverySource & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::String & GetLogType() const
void SetTags(TagsT &&value)
void SetArn(ArnT &&value)
DeliverySource & WithStatusReason(DeliverySourceStatusReason value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDWATCHLOGS_API DeliverySource(Aws::Utils::Json::JsonView jsonValue)
DeliverySourceStatusReason
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