AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ConfigurationTemplate.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/logs/CloudWatchLogs_EXPORTS.h>
10#include <aws/logs/model/ConfigurationTemplateDeliveryConfigValues.h>
11#include <aws/logs/model/DeliveryDestinationType.h>
12#include <aws/logs/model/OutputFormat.h>
13#include <aws/logs/model/RecordField.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CloudWatchLogs {
25namespace Model {
26
38 public:
39 AWS_CLOUDWATCHLOGS_API ConfigurationTemplate() = default;
40 AWS_CLOUDWATCHLOGS_API ConfigurationTemplate(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
51 inline const Aws::String& GetService() const { return m_service; }
52 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
53 template <typename ServiceT = Aws::String>
54 void SetService(ServiceT&& value) {
55 m_serviceHasBeenSet = true;
56 m_service = std::forward<ServiceT>(value);
57 }
58 template <typename ServiceT = Aws::String>
60 SetService(std::forward<ServiceT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::String& GetLogType() const { return m_logType; }
71 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
72 template <typename LogTypeT = Aws::String>
73 void SetLogType(LogTypeT&& value) {
74 m_logTypeHasBeenSet = true;
75 m_logType = std::forward<LogTypeT>(value);
76 }
77 template <typename LogTypeT = Aws::String>
79 SetLogType(std::forward<LogTypeT>(value));
80 return *this;
81 }
83
85
89 inline const Aws::String& GetResourceType() const { return m_resourceType; }
90 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
91 template <typename ResourceTypeT = Aws::String>
92 void SetResourceType(ResourceTypeT&& value) {
93 m_resourceTypeHasBeenSet = true;
94 m_resourceType = std::forward<ResourceTypeT>(value);
95 }
96 template <typename ResourceTypeT = Aws::String>
97 ConfigurationTemplate& WithResourceType(ResourceTypeT&& value) {
98 SetResourceType(std::forward<ResourceTypeT>(value));
99 return *this;
100 }
102
104
108 inline DeliveryDestinationType GetDeliveryDestinationType() const { return m_deliveryDestinationType; }
109 inline bool DeliveryDestinationTypeHasBeenSet() const { return m_deliveryDestinationTypeHasBeenSet; }
111 m_deliveryDestinationTypeHasBeenSet = true;
112 m_deliveryDestinationType = value;
113 }
116 return *this;
117 }
119
121
125 inline const ConfigurationTemplateDeliveryConfigValues& GetDefaultDeliveryConfigValues() const { return m_defaultDeliveryConfigValues; }
126 inline bool DefaultDeliveryConfigValuesHasBeenSet() const { return m_defaultDeliveryConfigValuesHasBeenSet; }
127 template <typename DefaultDeliveryConfigValuesT = ConfigurationTemplateDeliveryConfigValues>
128 void SetDefaultDeliveryConfigValues(DefaultDeliveryConfigValuesT&& value) {
129 m_defaultDeliveryConfigValuesHasBeenSet = true;
130 m_defaultDeliveryConfigValues = std::forward<DefaultDeliveryConfigValuesT>(value);
131 }
132 template <typename DefaultDeliveryConfigValuesT = ConfigurationTemplateDeliveryConfigValues>
133 ConfigurationTemplate& WithDefaultDeliveryConfigValues(DefaultDeliveryConfigValuesT&& value) {
134 SetDefaultDeliveryConfigValues(std::forward<DefaultDeliveryConfigValuesT>(value));
135 return *this;
136 }
138
140
148 inline const Aws::Vector<RecordField>& GetAllowedFields() const { return m_allowedFields; }
149 inline bool AllowedFieldsHasBeenSet() const { return m_allowedFieldsHasBeenSet; }
150 template <typename AllowedFieldsT = Aws::Vector<RecordField>>
151 void SetAllowedFields(AllowedFieldsT&& value) {
152 m_allowedFieldsHasBeenSet = true;
153 m_allowedFields = std::forward<AllowedFieldsT>(value);
154 }
155 template <typename AllowedFieldsT = Aws::Vector<RecordField>>
156 ConfigurationTemplate& WithAllowedFields(AllowedFieldsT&& value) {
157 SetAllowedFields(std::forward<AllowedFieldsT>(value));
158 return *this;
159 }
160 template <typename AllowedFieldsT = RecordField>
161 ConfigurationTemplate& AddAllowedFields(AllowedFieldsT&& value) {
162 m_allowedFieldsHasBeenSet = true;
163 m_allowedFields.emplace_back(std::forward<AllowedFieldsT>(value));
164 return *this;
165 }
167
169
173 inline const Aws::Vector<OutputFormat>& GetAllowedOutputFormats() const { return m_allowedOutputFormats; }
174 inline bool AllowedOutputFormatsHasBeenSet() const { return m_allowedOutputFormatsHasBeenSet; }
175 template <typename AllowedOutputFormatsT = Aws::Vector<OutputFormat>>
176 void SetAllowedOutputFormats(AllowedOutputFormatsT&& value) {
177 m_allowedOutputFormatsHasBeenSet = true;
178 m_allowedOutputFormats = std::forward<AllowedOutputFormatsT>(value);
179 }
180 template <typename AllowedOutputFormatsT = Aws::Vector<OutputFormat>>
181 ConfigurationTemplate& WithAllowedOutputFormats(AllowedOutputFormatsT&& value) {
182 SetAllowedOutputFormats(std::forward<AllowedOutputFormatsT>(value));
183 return *this;
184 }
186 m_allowedOutputFormatsHasBeenSet = true;
187 m_allowedOutputFormats.push_back(value);
188 return *this;
189 }
191
193
199 return m_allowedActionForAllowVendedLogsDeliveryForResource;
200 }
202 return m_allowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet;
203 }
204 template <typename AllowedActionForAllowVendedLogsDeliveryForResourceT = Aws::String>
205 void SetAllowedActionForAllowVendedLogsDeliveryForResource(AllowedActionForAllowVendedLogsDeliveryForResourceT&& value) {
206 m_allowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet = true;
207 m_allowedActionForAllowVendedLogsDeliveryForResource = std::forward<AllowedActionForAllowVendedLogsDeliveryForResourceT>(value);
208 }
209 template <typename AllowedActionForAllowVendedLogsDeliveryForResourceT = Aws::String>
211 AllowedActionForAllowVendedLogsDeliveryForResourceT&& value) {
212 SetAllowedActionForAllowVendedLogsDeliveryForResource(std::forward<AllowedActionForAllowVendedLogsDeliveryForResourceT>(value));
213 return *this;
214 }
216
218
226 inline const Aws::Vector<Aws::String>& GetAllowedFieldDelimiters() const { return m_allowedFieldDelimiters; }
227 inline bool AllowedFieldDelimitersHasBeenSet() const { return m_allowedFieldDelimitersHasBeenSet; }
228 template <typename AllowedFieldDelimitersT = Aws::Vector<Aws::String>>
229 void SetAllowedFieldDelimiters(AllowedFieldDelimitersT&& value) {
230 m_allowedFieldDelimitersHasBeenSet = true;
231 m_allowedFieldDelimiters = std::forward<AllowedFieldDelimitersT>(value);
232 }
233 template <typename AllowedFieldDelimitersT = Aws::Vector<Aws::String>>
234 ConfigurationTemplate& WithAllowedFieldDelimiters(AllowedFieldDelimitersT&& value) {
235 SetAllowedFieldDelimiters(std::forward<AllowedFieldDelimitersT>(value));
236 return *this;
237 }
238 template <typename AllowedFieldDelimitersT = Aws::String>
239 ConfigurationTemplate& AddAllowedFieldDelimiters(AllowedFieldDelimitersT&& value) {
240 m_allowedFieldDelimitersHasBeenSet = true;
241 m_allowedFieldDelimiters.emplace_back(std::forward<AllowedFieldDelimitersT>(value));
242 return *this;
243 }
245
247
251 inline const Aws::Vector<Aws::String>& GetAllowedSuffixPathFields() const { return m_allowedSuffixPathFields; }
252 inline bool AllowedSuffixPathFieldsHasBeenSet() const { return m_allowedSuffixPathFieldsHasBeenSet; }
253 template <typename AllowedSuffixPathFieldsT = Aws::Vector<Aws::String>>
254 void SetAllowedSuffixPathFields(AllowedSuffixPathFieldsT&& value) {
255 m_allowedSuffixPathFieldsHasBeenSet = true;
256 m_allowedSuffixPathFields = std::forward<AllowedSuffixPathFieldsT>(value);
257 }
258 template <typename AllowedSuffixPathFieldsT = Aws::Vector<Aws::String>>
259 ConfigurationTemplate& WithAllowedSuffixPathFields(AllowedSuffixPathFieldsT&& value) {
260 SetAllowedSuffixPathFields(std::forward<AllowedSuffixPathFieldsT>(value));
261 return *this;
262 }
263 template <typename AllowedSuffixPathFieldsT = Aws::String>
264 ConfigurationTemplate& AddAllowedSuffixPathFields(AllowedSuffixPathFieldsT&& value) {
265 m_allowedSuffixPathFieldsHasBeenSet = true;
266 m_allowedSuffixPathFields.emplace_back(std::forward<AllowedSuffixPathFieldsT>(value));
267 return *this;
268 }
270 private:
271 Aws::String m_service;
272
273 Aws::String m_logType;
274
275 Aws::String m_resourceType;
276
278
279 ConfigurationTemplateDeliveryConfigValues m_defaultDeliveryConfigValues;
280
281 Aws::Vector<RecordField> m_allowedFields;
282
283 Aws::Vector<OutputFormat> m_allowedOutputFormats;
284
285 Aws::String m_allowedActionForAllowVendedLogsDeliveryForResource;
286
287 Aws::Vector<Aws::String> m_allowedFieldDelimiters;
288
289 Aws::Vector<Aws::String> m_allowedSuffixPathFields;
290 bool m_serviceHasBeenSet = false;
291 bool m_logTypeHasBeenSet = false;
292 bool m_resourceTypeHasBeenSet = false;
293 bool m_deliveryDestinationTypeHasBeenSet = false;
294 bool m_defaultDeliveryConfigValuesHasBeenSet = false;
295 bool m_allowedFieldsHasBeenSet = false;
296 bool m_allowedOutputFormatsHasBeenSet = false;
297 bool m_allowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet = false;
298 bool m_allowedFieldDelimitersHasBeenSet = false;
299 bool m_allowedSuffixPathFieldsHasBeenSet = false;
300};
301
302} // namespace Model
303} // namespace CloudWatchLogs
304} // namespace Aws
void SetDeliveryDestinationType(DeliveryDestinationType value)
ConfigurationTemplate & WithAllowedFieldDelimiters(AllowedFieldDelimitersT &&value)
AWS_CLOUDWATCHLOGS_API ConfigurationTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetAllowedFieldDelimiters() const
const Aws::String & GetAllowedActionForAllowVendedLogsDeliveryForResource() const
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
ConfigurationTemplate & WithResourceType(ResourceTypeT &&value)
ConfigurationTemplate & AddAllowedOutputFormats(OutputFormat value)
AWS_CLOUDWATCHLOGS_API ConfigurationTemplate()=default
ConfigurationTemplate & WithAllowedFields(AllowedFieldsT &&value)
const Aws::Vector< RecordField > & GetAllowedFields() const
void SetAllowedFieldDelimiters(AllowedFieldDelimitersT &&value)
ConfigurationTemplate & WithLogType(LogTypeT &&value)
void SetAllowedActionForAllowVendedLogsDeliveryForResource(AllowedActionForAllowVendedLogsDeliveryForResourceT &&value)
ConfigurationTemplate & WithService(ServiceT &&value)
ConfigurationTemplate & WithAllowedSuffixPathFields(AllowedSuffixPathFieldsT &&value)
ConfigurationTemplate & WithDefaultDeliveryConfigValues(DefaultDeliveryConfigValuesT &&value)
const ConfigurationTemplateDeliveryConfigValues & GetDefaultDeliveryConfigValues() const
AWS_CLOUDWATCHLOGS_API ConfigurationTemplate(Aws::Utils::Json::JsonView jsonValue)
ConfigurationTemplate & WithAllowedActionForAllowVendedLogsDeliveryForResource(AllowedActionForAllowVendedLogsDeliveryForResourceT &&value)
const Aws::Vector< Aws::String > & GetAllowedSuffixPathFields() const
ConfigurationTemplate & AddAllowedFields(AllowedFieldsT &&value)
ConfigurationTemplate & WithAllowedOutputFormats(AllowedOutputFormatsT &&value)
void SetAllowedOutputFormats(AllowedOutputFormatsT &&value)
ConfigurationTemplate & WithDeliveryDestinationType(DeliveryDestinationType value)
void SetAllowedSuffixPathFields(AllowedSuffixPathFieldsT &&value)
void SetDefaultDeliveryConfigValues(DefaultDeliveryConfigValuesT &&value)
ConfigurationTemplate & AddAllowedSuffixPathFields(AllowedSuffixPathFieldsT &&value)
const Aws::Vector< OutputFormat > & GetAllowedOutputFormats() const
ConfigurationTemplate & AddAllowedFieldDelimiters(AllowedFieldDelimitersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue