AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudWatchLogs {
22namespace Model {
23
56 public:
57 AWS_CLOUDWATCHLOGS_API DeliverySource() = default;
58 AWS_CLOUDWATCHLOGS_API DeliverySource(Aws::Utils::Json::JsonView jsonValue);
59 AWS_CLOUDWATCHLOGS_API DeliverySource& operator=(Aws::Utils::Json::JsonView jsonValue);
60 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
61
63
66 inline const Aws::String& GetName() const { return m_name; }
67 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
68 template <typename NameT = Aws::String>
69 void SetName(NameT&& value) {
70 m_nameHasBeenSet = true;
71 m_name = std::forward<NameT>(value);
72 }
73 template <typename NameT = Aws::String>
74 DeliverySource& WithName(NameT&& value) {
75 SetName(std::forward<NameT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::String& GetArn() const { return m_arn; }
86 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
87 template <typename ArnT = Aws::String>
88 void SetArn(ArnT&& value) {
89 m_arnHasBeenSet = true;
90 m_arn = std::forward<ArnT>(value);
91 }
92 template <typename ArnT = Aws::String>
93 DeliverySource& WithArn(ArnT&& value) {
94 SetArn(std::forward<ArnT>(value));
95 return *this;
96 }
98
100
105 inline const Aws::Vector<Aws::String>& GetResourceArns() const { return m_resourceArns; }
106 inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
107 template <typename ResourceArnsT = Aws::Vector<Aws::String>>
108 void SetResourceArns(ResourceArnsT&& value) {
109 m_resourceArnsHasBeenSet = true;
110 m_resourceArns = std::forward<ResourceArnsT>(value);
111 }
112 template <typename ResourceArnsT = Aws::Vector<Aws::String>>
113 DeliverySource& WithResourceArns(ResourceArnsT&& value) {
114 SetResourceArns(std::forward<ResourceArnsT>(value));
115 return *this;
116 }
117 template <typename ResourceArnsT = Aws::String>
118 DeliverySource& AddResourceArns(ResourceArnsT&& value) {
119 m_resourceArnsHasBeenSet = true;
120 m_resourceArns.emplace_back(std::forward<ResourceArnsT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetService() const { return m_service; }
130 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
131 template <typename ServiceT = Aws::String>
132 void SetService(ServiceT&& value) {
133 m_serviceHasBeenSet = true;
134 m_service = std::forward<ServiceT>(value);
135 }
136 template <typename ServiceT = Aws::String>
137 DeliverySource& WithService(ServiceT&& value) {
138 SetService(std::forward<ServiceT>(value));
139 return *this;
140 }
142
144
148 inline const Aws::String& GetLogType() const { return m_logType; }
149 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
150 template <typename LogTypeT = Aws::String>
151 void SetLogType(LogTypeT&& value) {
152 m_logTypeHasBeenSet = true;
153 m_logType = std::forward<LogTypeT>(value);
154 }
155 template <typename LogTypeT = Aws::String>
156 DeliverySource& WithLogType(LogTypeT&& value) {
157 SetLogType(std::forward<LogTypeT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
167 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
168 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
169 void SetTags(TagsT&& value) {
170 m_tagsHasBeenSet = true;
171 m_tags = std::forward<TagsT>(value);
172 }
173 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
174 DeliverySource& WithTags(TagsT&& value) {
175 SetTags(std::forward<TagsT>(value));
176 return *this;
177 }
178 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
179 DeliverySource& AddTags(TagsKeyT&& key, TagsValueT&& value) {
180 m_tagsHasBeenSet = true;
181 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
182 return *this;
183 }
185 private:
186 Aws::String m_name;
187
188 Aws::String m_arn;
189
190 Aws::Vector<Aws::String> m_resourceArns;
191
192 Aws::String m_service;
193
194 Aws::String m_logType;
195
197 bool m_nameHasBeenSet = false;
198 bool m_arnHasBeenSet = false;
199 bool m_resourceArnsHasBeenSet = false;
200 bool m_serviceHasBeenSet = false;
201 bool m_logTypeHasBeenSet = false;
202 bool m_tagsHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace CloudWatchLogs
207} // namespace Aws
const Aws::Vector< Aws::String > & GetResourceArns() const
DeliverySource & WithService(ServiceT &&value)
AWS_CLOUDWATCHLOGS_API DeliverySource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API DeliverySource()=default
DeliverySource & WithArn(ArnT &&value)
DeliverySource & WithLogType(LogTypeT &&value)
DeliverySource & WithResourceArns(ResourceArnsT &&value)
DeliverySource & WithName(NameT &&value)
DeliverySource & AddResourceArns(ResourceArnsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetResourceArns(ResourceArnsT &&value)
DeliverySource & WithTags(TagsT &&value)
DeliverySource & AddTags(TagsKeyT &&key, TagsValueT &&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