AWS SDK for C++

AWS SDK for C++ Version 1.11.816

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/DeliverySourceConfigurationSchema.h>
13#include <aws/logs/model/OutputFormat.h>
14#include <aws/logs/model/RecordField.h>
15#include <aws/logs/model/S3TablesIntegration.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace CloudWatchLogs {
27namespace Model {
28
40 public:
41 AWS_CLOUDWATCHLOGS_API ConfigurationTemplate() = default;
42 AWS_CLOUDWATCHLOGS_API ConfigurationTemplate(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
53 inline const Aws::String& GetService() const { return m_service; }
54 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
55 template <typename ServiceT = Aws::String>
56 void SetService(ServiceT&& value) {
57 m_serviceHasBeenSet = true;
58 m_service = std::forward<ServiceT>(value);
59 }
60 template <typename ServiceT = Aws::String>
62 SetService(std::forward<ServiceT>(value));
63 return *this;
64 }
66
68
72 inline const Aws::String& GetLogType() const { return m_logType; }
73 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
74 template <typename LogTypeT = Aws::String>
75 void SetLogType(LogTypeT&& value) {
76 m_logTypeHasBeenSet = true;
77 m_logType = std::forward<LogTypeT>(value);
78 }
79 template <typename LogTypeT = Aws::String>
81 SetLogType(std::forward<LogTypeT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::String& GetResourceType() const { return m_resourceType; }
92 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
93 template <typename ResourceTypeT = Aws::String>
94 void SetResourceType(ResourceTypeT&& value) {
95 m_resourceTypeHasBeenSet = true;
96 m_resourceType = std::forward<ResourceTypeT>(value);
97 }
98 template <typename ResourceTypeT = Aws::String>
99 ConfigurationTemplate& WithResourceType(ResourceTypeT&& value) {
100 SetResourceType(std::forward<ResourceTypeT>(value));
101 return *this;
102 }
104
106
110 inline DeliveryDestinationType GetDeliveryDestinationType() const { return m_deliveryDestinationType; }
111 inline bool DeliveryDestinationTypeHasBeenSet() const { return m_deliveryDestinationTypeHasBeenSet; }
113 m_deliveryDestinationTypeHasBeenSet = true;
114 m_deliveryDestinationType = value;
115 }
118 return *this;
119 }
121
123
127 inline const ConfigurationTemplateDeliveryConfigValues& GetDefaultDeliveryConfigValues() const { return m_defaultDeliveryConfigValues; }
128 inline bool DefaultDeliveryConfigValuesHasBeenSet() const { return m_defaultDeliveryConfigValuesHasBeenSet; }
129 template <typename DefaultDeliveryConfigValuesT = ConfigurationTemplateDeliveryConfigValues>
130 void SetDefaultDeliveryConfigValues(DefaultDeliveryConfigValuesT&& value) {
131 m_defaultDeliveryConfigValuesHasBeenSet = true;
132 m_defaultDeliveryConfigValues = std::forward<DefaultDeliveryConfigValuesT>(value);
133 }
134 template <typename DefaultDeliveryConfigValuesT = ConfigurationTemplateDeliveryConfigValues>
135 ConfigurationTemplate& WithDefaultDeliveryConfigValues(DefaultDeliveryConfigValuesT&& value) {
136 SetDefaultDeliveryConfigValues(std::forward<DefaultDeliveryConfigValuesT>(value));
137 return *this;
138 }
140
142
150 inline const Aws::Vector<RecordField>& GetAllowedFields() const { return m_allowedFields; }
151 inline bool AllowedFieldsHasBeenSet() const { return m_allowedFieldsHasBeenSet; }
152 template <typename AllowedFieldsT = Aws::Vector<RecordField>>
153 void SetAllowedFields(AllowedFieldsT&& value) {
154 m_allowedFieldsHasBeenSet = true;
155 m_allowedFields = std::forward<AllowedFieldsT>(value);
156 }
157 template <typename AllowedFieldsT = Aws::Vector<RecordField>>
158 ConfigurationTemplate& WithAllowedFields(AllowedFieldsT&& value) {
159 SetAllowedFields(std::forward<AllowedFieldsT>(value));
160 return *this;
161 }
162 template <typename AllowedFieldsT = RecordField>
163 ConfigurationTemplate& AddAllowedFields(AllowedFieldsT&& value) {
164 m_allowedFieldsHasBeenSet = true;
165 m_allowedFields.emplace_back(std::forward<AllowedFieldsT>(value));
166 return *this;
167 }
169
171
175 inline const Aws::Vector<OutputFormat>& GetAllowedOutputFormats() const { return m_allowedOutputFormats; }
176 inline bool AllowedOutputFormatsHasBeenSet() const { return m_allowedOutputFormatsHasBeenSet; }
177 template <typename AllowedOutputFormatsT = Aws::Vector<OutputFormat>>
178 void SetAllowedOutputFormats(AllowedOutputFormatsT&& value) {
179 m_allowedOutputFormatsHasBeenSet = true;
180 m_allowedOutputFormats = std::forward<AllowedOutputFormatsT>(value);
181 }
182 template <typename AllowedOutputFormatsT = Aws::Vector<OutputFormat>>
183 ConfigurationTemplate& WithAllowedOutputFormats(AllowedOutputFormatsT&& value) {
184 SetAllowedOutputFormats(std::forward<AllowedOutputFormatsT>(value));
185 return *this;
186 }
188 m_allowedOutputFormatsHasBeenSet = true;
189 m_allowedOutputFormats.push_back(value);
190 return *this;
191 }
193
195
201 return m_allowedActionForAllowVendedLogsDeliveryForResource;
202 }
204 return m_allowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet;
205 }
206 template <typename AllowedActionForAllowVendedLogsDeliveryForResourceT = Aws::String>
207 void SetAllowedActionForAllowVendedLogsDeliveryForResource(AllowedActionForAllowVendedLogsDeliveryForResourceT&& value) {
208 m_allowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet = true;
209 m_allowedActionForAllowVendedLogsDeliveryForResource = std::forward<AllowedActionForAllowVendedLogsDeliveryForResourceT>(value);
210 }
211 template <typename AllowedActionForAllowVendedLogsDeliveryForResourceT = Aws::String>
213 AllowedActionForAllowVendedLogsDeliveryForResourceT&& value) {
214 SetAllowedActionForAllowVendedLogsDeliveryForResource(std::forward<AllowedActionForAllowVendedLogsDeliveryForResourceT>(value));
215 return *this;
216 }
218
220
228 inline const Aws::Vector<Aws::String>& GetAllowedFieldDelimiters() const { return m_allowedFieldDelimiters; }
229 inline bool AllowedFieldDelimitersHasBeenSet() const { return m_allowedFieldDelimitersHasBeenSet; }
230 template <typename AllowedFieldDelimitersT = Aws::Vector<Aws::String>>
231 void SetAllowedFieldDelimiters(AllowedFieldDelimitersT&& value) {
232 m_allowedFieldDelimitersHasBeenSet = true;
233 m_allowedFieldDelimiters = std::forward<AllowedFieldDelimitersT>(value);
234 }
235 template <typename AllowedFieldDelimitersT = Aws::Vector<Aws::String>>
236 ConfigurationTemplate& WithAllowedFieldDelimiters(AllowedFieldDelimitersT&& value) {
237 SetAllowedFieldDelimiters(std::forward<AllowedFieldDelimitersT>(value));
238 return *this;
239 }
240 template <typename AllowedFieldDelimitersT = Aws::String>
241 ConfigurationTemplate& AddAllowedFieldDelimiters(AllowedFieldDelimitersT&& value) {
242 m_allowedFieldDelimitersHasBeenSet = true;
243 m_allowedFieldDelimiters.emplace_back(std::forward<AllowedFieldDelimitersT>(value));
244 return *this;
245 }
247
249
253 inline const Aws::Vector<Aws::String>& GetAllowedSuffixPathFields() const { return m_allowedSuffixPathFields; }
254 inline bool AllowedSuffixPathFieldsHasBeenSet() const { return m_allowedSuffixPathFieldsHasBeenSet; }
255 template <typename AllowedSuffixPathFieldsT = Aws::Vector<Aws::String>>
256 void SetAllowedSuffixPathFields(AllowedSuffixPathFieldsT&& value) {
257 m_allowedSuffixPathFieldsHasBeenSet = true;
258 m_allowedSuffixPathFields = std::forward<AllowedSuffixPathFieldsT>(value);
259 }
260 template <typename AllowedSuffixPathFieldsT = Aws::Vector<Aws::String>>
261 ConfigurationTemplate& WithAllowedSuffixPathFields(AllowedSuffixPathFieldsT&& value) {
262 SetAllowedSuffixPathFields(std::forward<AllowedSuffixPathFieldsT>(value));
263 return *this;
264 }
265 template <typename AllowedSuffixPathFieldsT = Aws::String>
266 ConfigurationTemplate& AddAllowedSuffixPathFields(AllowedSuffixPathFieldsT&& value) {
267 m_allowedSuffixPathFieldsHasBeenSet = true;
268 m_allowedSuffixPathFields.emplace_back(std::forward<AllowedSuffixPathFieldsT>(value));
269 return *this;
270 }
272
274
281 return m_deliverySourceConfiguration;
282 }
283 inline bool DeliverySourceConfigurationHasBeenSet() const { return m_deliverySourceConfigurationHasBeenSet; }
284 template <typename DeliverySourceConfigurationT = Aws::Vector<DeliverySourceConfigurationSchema>>
285 void SetDeliverySourceConfiguration(DeliverySourceConfigurationT&& value) {
286 m_deliverySourceConfigurationHasBeenSet = true;
287 m_deliverySourceConfiguration = std::forward<DeliverySourceConfigurationT>(value);
288 }
289 template <typename DeliverySourceConfigurationT = Aws::Vector<DeliverySourceConfigurationSchema>>
290 ConfigurationTemplate& WithDeliverySourceConfiguration(DeliverySourceConfigurationT&& value) {
291 SetDeliverySourceConfiguration(std::forward<DeliverySourceConfigurationT>(value));
292 return *this;
293 }
294 template <typename DeliverySourceConfigurationT = DeliverySourceConfigurationSchema>
295 ConfigurationTemplate& AddDeliverySourceConfiguration(DeliverySourceConfigurationT&& value) {
296 m_deliverySourceConfigurationHasBeenSet = true;
297 m_deliverySourceConfiguration.emplace_back(std::forward<DeliverySourceConfigurationT>(value));
298 return *this;
299 }
301
303
307 inline const S3TablesIntegration& GetS3TablesIntegration() const { return m_s3TablesIntegration; }
308 inline bool S3TablesIntegrationHasBeenSet() const { return m_s3TablesIntegrationHasBeenSet; }
309 template <typename S3TablesIntegrationT = S3TablesIntegration>
310 void SetS3TablesIntegration(S3TablesIntegrationT&& value) {
311 m_s3TablesIntegrationHasBeenSet = true;
312 m_s3TablesIntegration = std::forward<S3TablesIntegrationT>(value);
313 }
314 template <typename S3TablesIntegrationT = S3TablesIntegration>
315 ConfigurationTemplate& WithS3TablesIntegration(S3TablesIntegrationT&& value) {
316 SetS3TablesIntegration(std::forward<S3TablesIntegrationT>(value));
317 return *this;
318 }
320 private:
321 Aws::String m_service;
322
323 Aws::String m_logType;
324
325 Aws::String m_resourceType;
326
328
329 ConfigurationTemplateDeliveryConfigValues m_defaultDeliveryConfigValues;
330
331 Aws::Vector<RecordField> m_allowedFields;
332
333 Aws::Vector<OutputFormat> m_allowedOutputFormats;
334
335 Aws::String m_allowedActionForAllowVendedLogsDeliveryForResource;
336
337 Aws::Vector<Aws::String> m_allowedFieldDelimiters;
338
339 Aws::Vector<Aws::String> m_allowedSuffixPathFields;
340
341 Aws::Vector<DeliverySourceConfigurationSchema> m_deliverySourceConfiguration;
342
343 S3TablesIntegration m_s3TablesIntegration;
344 bool m_serviceHasBeenSet = false;
345 bool m_logTypeHasBeenSet = false;
346 bool m_resourceTypeHasBeenSet = false;
347 bool m_deliveryDestinationTypeHasBeenSet = false;
348 bool m_defaultDeliveryConfigValuesHasBeenSet = false;
349 bool m_allowedFieldsHasBeenSet = false;
350 bool m_allowedOutputFormatsHasBeenSet = false;
351 bool m_allowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet = false;
352 bool m_allowedFieldDelimitersHasBeenSet = false;
353 bool m_allowedSuffixPathFieldsHasBeenSet = false;
354 bool m_deliverySourceConfigurationHasBeenSet = false;
355 bool m_s3TablesIntegrationHasBeenSet = false;
356};
357
358} // namespace Model
359} // namespace CloudWatchLogs
360} // 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)
const S3TablesIntegration & GetS3TablesIntegration() const
ConfigurationTemplate & WithS3TablesIntegration(S3TablesIntegrationT &&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
void SetDeliverySourceConfiguration(DeliverySourceConfigurationT &&value)
AWS_CLOUDWATCHLOGS_API ConfigurationTemplate(Aws::Utils::Json::JsonView jsonValue)
ConfigurationTemplate & WithAllowedActionForAllowVendedLogsDeliveryForResource(AllowedActionForAllowVendedLogsDeliveryForResourceT &&value)
void SetS3TablesIntegration(S3TablesIntegrationT &&value)
const Aws::Vector< Aws::String > & GetAllowedSuffixPathFields() const
ConfigurationTemplate & AddAllowedFields(AllowedFieldsT &&value)
const Aws::Vector< DeliverySourceConfigurationSchema > & GetDeliverySourceConfiguration() const
ConfigurationTemplate & WithAllowedOutputFormats(AllowedOutputFormatsT &&value)
void SetAllowedOutputFormats(AllowedOutputFormatsT &&value)
ConfigurationTemplate & WithDeliveryDestinationType(DeliveryDestinationType value)
ConfigurationTemplate & WithDeliverySourceConfiguration(DeliverySourceConfigurationT &&value)
void SetAllowedSuffixPathFields(AllowedSuffixPathFieldsT &&value)
void SetDefaultDeliveryConfigValues(DefaultDeliveryConfigValuesT &&value)
ConfigurationTemplate & AddDeliverySourceConfiguration(DeliverySourceConfigurationT &&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