AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConfigurationTemplate.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/logs/model/DeliveryDestinationType.h>
10#include <aws/logs/model/ConfigurationTemplateDeliveryConfigValues.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/logs/model/RecordField.h>
13#include <aws/logs/model/OutputFormat.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace CloudWatchLogs
27{
28namespace Model
29{
30
42 {
43 public:
44 AWS_CLOUDWATCHLOGS_API ConfigurationTemplate();
45 AWS_CLOUDWATCHLOGS_API ConfigurationTemplate(Aws::Utils::Json::JsonView jsonValue);
47 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
57 inline const Aws::String& GetService() const{ return m_service; }
58 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
59 inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
60 inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
61 inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
62 inline ConfigurationTemplate& WithService(const Aws::String& value) { SetService(value); return *this;}
63 inline ConfigurationTemplate& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
64 inline ConfigurationTemplate& WithService(const char* value) { SetService(value); return *this;}
66
68
72 inline const Aws::String& GetLogType() const{ return m_logType; }
73 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
74 inline void SetLogType(const Aws::String& value) { m_logTypeHasBeenSet = true; m_logType = value; }
75 inline void SetLogType(Aws::String&& value) { m_logTypeHasBeenSet = true; m_logType = std::move(value); }
76 inline void SetLogType(const char* value) { m_logTypeHasBeenSet = true; m_logType.assign(value); }
77 inline ConfigurationTemplate& WithLogType(const Aws::String& value) { SetLogType(value); return *this;}
78 inline ConfigurationTemplate& WithLogType(Aws::String&& value) { SetLogType(std::move(value)); return *this;}
79 inline ConfigurationTemplate& WithLogType(const char* value) { SetLogType(value); return *this;}
81
83
87 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
88 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
89 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
90 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
91 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
92 inline ConfigurationTemplate& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
93 inline ConfigurationTemplate& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
94 inline ConfigurationTemplate& WithResourceType(const char* value) { SetResourceType(value); return *this;}
96
98
102 inline const DeliveryDestinationType& GetDeliveryDestinationType() const{ return m_deliveryDestinationType; }
103 inline bool DeliveryDestinationTypeHasBeenSet() const { return m_deliveryDestinationTypeHasBeenSet; }
104 inline void SetDeliveryDestinationType(const DeliveryDestinationType& value) { m_deliveryDestinationTypeHasBeenSet = true; m_deliveryDestinationType = value; }
105 inline void SetDeliveryDestinationType(DeliveryDestinationType&& value) { m_deliveryDestinationTypeHasBeenSet = true; m_deliveryDestinationType = std::move(value); }
109
111
115 inline const ConfigurationTemplateDeliveryConfigValues& GetDefaultDeliveryConfigValues() const{ return m_defaultDeliveryConfigValues; }
116 inline bool DefaultDeliveryConfigValuesHasBeenSet() const { return m_defaultDeliveryConfigValuesHasBeenSet; }
117 inline void SetDefaultDeliveryConfigValues(const ConfigurationTemplateDeliveryConfigValues& value) { m_defaultDeliveryConfigValuesHasBeenSet = true; m_defaultDeliveryConfigValues = value; }
118 inline void SetDefaultDeliveryConfigValues(ConfigurationTemplateDeliveryConfigValues&& value) { m_defaultDeliveryConfigValuesHasBeenSet = true; m_defaultDeliveryConfigValues = std::move(value); }
122
124
132 inline const Aws::Vector<RecordField>& GetAllowedFields() const{ return m_allowedFields; }
133 inline bool AllowedFieldsHasBeenSet() const { return m_allowedFieldsHasBeenSet; }
134 inline void SetAllowedFields(const Aws::Vector<RecordField>& value) { m_allowedFieldsHasBeenSet = true; m_allowedFields = value; }
135 inline void SetAllowedFields(Aws::Vector<RecordField>&& value) { m_allowedFieldsHasBeenSet = true; m_allowedFields = std::move(value); }
137 inline ConfigurationTemplate& WithAllowedFields(Aws::Vector<RecordField>&& value) { SetAllowedFields(std::move(value)); return *this;}
138 inline ConfigurationTemplate& AddAllowedFields(const RecordField& value) { m_allowedFieldsHasBeenSet = true; m_allowedFields.push_back(value); return *this; }
139 inline ConfigurationTemplate& AddAllowedFields(RecordField&& value) { m_allowedFieldsHasBeenSet = true; m_allowedFields.push_back(std::move(value)); return *this; }
141
143
147 inline const Aws::Vector<OutputFormat>& GetAllowedOutputFormats() const{ return m_allowedOutputFormats; }
148 inline bool AllowedOutputFormatsHasBeenSet() const { return m_allowedOutputFormatsHasBeenSet; }
149 inline void SetAllowedOutputFormats(const Aws::Vector<OutputFormat>& value) { m_allowedOutputFormatsHasBeenSet = true; m_allowedOutputFormats = value; }
150 inline void SetAllowedOutputFormats(Aws::Vector<OutputFormat>&& value) { m_allowedOutputFormatsHasBeenSet = true; m_allowedOutputFormats = std::move(value); }
153 inline ConfigurationTemplate& AddAllowedOutputFormats(const OutputFormat& value) { m_allowedOutputFormatsHasBeenSet = true; m_allowedOutputFormats.push_back(value); return *this; }
154 inline ConfigurationTemplate& AddAllowedOutputFormats(OutputFormat&& value) { m_allowedOutputFormatsHasBeenSet = true; m_allowedOutputFormats.push_back(std::move(value)); return *this; }
156
158
163 inline const Aws::String& GetAllowedActionForAllowVendedLogsDeliveryForResource() const{ return m_allowedActionForAllowVendedLogsDeliveryForResource; }
164 inline bool AllowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet() const { return m_allowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet; }
165 inline void SetAllowedActionForAllowVendedLogsDeliveryForResource(const Aws::String& value) { m_allowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet = true; m_allowedActionForAllowVendedLogsDeliveryForResource = value; }
166 inline void SetAllowedActionForAllowVendedLogsDeliveryForResource(Aws::String&& value) { m_allowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet = true; m_allowedActionForAllowVendedLogsDeliveryForResource = std::move(value); }
167 inline void SetAllowedActionForAllowVendedLogsDeliveryForResource(const char* value) { m_allowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet = true; m_allowedActionForAllowVendedLogsDeliveryForResource.assign(value); }
172
174
182 inline const Aws::Vector<Aws::String>& GetAllowedFieldDelimiters() const{ return m_allowedFieldDelimiters; }
183 inline bool AllowedFieldDelimitersHasBeenSet() const { return m_allowedFieldDelimitersHasBeenSet; }
184 inline void SetAllowedFieldDelimiters(const Aws::Vector<Aws::String>& value) { m_allowedFieldDelimitersHasBeenSet = true; m_allowedFieldDelimiters = value; }
185 inline void SetAllowedFieldDelimiters(Aws::Vector<Aws::String>&& value) { m_allowedFieldDelimitersHasBeenSet = true; m_allowedFieldDelimiters = std::move(value); }
188 inline ConfigurationTemplate& AddAllowedFieldDelimiters(const Aws::String& value) { m_allowedFieldDelimitersHasBeenSet = true; m_allowedFieldDelimiters.push_back(value); return *this; }
189 inline ConfigurationTemplate& AddAllowedFieldDelimiters(Aws::String&& value) { m_allowedFieldDelimitersHasBeenSet = true; m_allowedFieldDelimiters.push_back(std::move(value)); return *this; }
190 inline ConfigurationTemplate& AddAllowedFieldDelimiters(const char* value) { m_allowedFieldDelimitersHasBeenSet = true; m_allowedFieldDelimiters.push_back(value); return *this; }
192
194
198 inline const Aws::Vector<Aws::String>& GetAllowedSuffixPathFields() const{ return m_allowedSuffixPathFields; }
199 inline bool AllowedSuffixPathFieldsHasBeenSet() const { return m_allowedSuffixPathFieldsHasBeenSet; }
200 inline void SetAllowedSuffixPathFields(const Aws::Vector<Aws::String>& value) { m_allowedSuffixPathFieldsHasBeenSet = true; m_allowedSuffixPathFields = value; }
201 inline void SetAllowedSuffixPathFields(Aws::Vector<Aws::String>&& value) { m_allowedSuffixPathFieldsHasBeenSet = true; m_allowedSuffixPathFields = std::move(value); }
204 inline ConfigurationTemplate& AddAllowedSuffixPathFields(const Aws::String& value) { m_allowedSuffixPathFieldsHasBeenSet = true; m_allowedSuffixPathFields.push_back(value); return *this; }
205 inline ConfigurationTemplate& AddAllowedSuffixPathFields(Aws::String&& value) { m_allowedSuffixPathFieldsHasBeenSet = true; m_allowedSuffixPathFields.push_back(std::move(value)); return *this; }
206 inline ConfigurationTemplate& AddAllowedSuffixPathFields(const char* value) { m_allowedSuffixPathFieldsHasBeenSet = true; m_allowedSuffixPathFields.push_back(value); return *this; }
208 private:
209
210 Aws::String m_service;
211 bool m_serviceHasBeenSet = false;
212
213 Aws::String m_logType;
214 bool m_logTypeHasBeenSet = false;
215
216 Aws::String m_resourceType;
217 bool m_resourceTypeHasBeenSet = false;
218
219 DeliveryDestinationType m_deliveryDestinationType;
220 bool m_deliveryDestinationTypeHasBeenSet = false;
221
222 ConfigurationTemplateDeliveryConfigValues m_defaultDeliveryConfigValues;
223 bool m_defaultDeliveryConfigValuesHasBeenSet = false;
224
225 Aws::Vector<RecordField> m_allowedFields;
226 bool m_allowedFieldsHasBeenSet = false;
227
228 Aws::Vector<OutputFormat> m_allowedOutputFormats;
229 bool m_allowedOutputFormatsHasBeenSet = false;
230
231 Aws::String m_allowedActionForAllowVendedLogsDeliveryForResource;
232 bool m_allowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet = false;
233
234 Aws::Vector<Aws::String> m_allowedFieldDelimiters;
235 bool m_allowedFieldDelimitersHasBeenSet = false;
236
237 Aws::Vector<Aws::String> m_allowedSuffixPathFields;
238 bool m_allowedSuffixPathFieldsHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace CloudWatchLogs
243} // namespace Aws
ConfigurationTemplate & WithDefaultDeliveryConfigValues(const ConfigurationTemplateDeliveryConfigValues &value)
void SetAllowedActionForAllowVendedLogsDeliveryForResource(const char *value)
void SetAllowedSuffixPathFields(const Aws::Vector< Aws::String > &value)
ConfigurationTemplate & AddAllowedFields(RecordField &&value)
ConfigurationTemplate & AddAllowedFieldDelimiters(const char *value)
AWS_CLOUDWATCHLOGS_API ConfigurationTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAllowedOutputFormats(Aws::Vector< OutputFormat > &&value)
void SetAllowedFields(const Aws::Vector< RecordField > &value)
ConfigurationTemplate & AddAllowedSuffixPathFields(const Aws::String &value)
const Aws::Vector< Aws::String > & GetAllowedFieldDelimiters() const
const Aws::String & GetAllowedActionForAllowVendedLogsDeliveryForResource() const
ConfigurationTemplate & WithResourceType(const Aws::String &value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDeliveryDestinationType(const DeliveryDestinationType &value)
ConfigurationTemplate & WithAllowedFieldDelimiters(const Aws::Vector< Aws::String > &value)
ConfigurationTemplate & AddAllowedOutputFormats(OutputFormat &&value)
ConfigurationTemplate & WithDeliveryDestinationType(const DeliveryDestinationType &value)
ConfigurationTemplate & WithLogType(const Aws::String &value)
ConfigurationTemplate & WithDeliveryDestinationType(DeliveryDestinationType &&value)
void SetDeliveryDestinationType(DeliveryDestinationType &&value)
void SetAllowedActionForAllowVendedLogsDeliveryForResource(const Aws::String &value)
ConfigurationTemplate & AddAllowedSuffixPathFields(const char *value)
ConfigurationTemplate & WithResourceType(Aws::String &&value)
ConfigurationTemplate & WithAllowedSuffixPathFields(const Aws::Vector< Aws::String > &value)
ConfigurationTemplate & WithService(Aws::String &&value)
void SetAllowedFields(Aws::Vector< RecordField > &&value)
ConfigurationTemplate & AddAllowedFields(const RecordField &value)
const Aws::Vector< RecordField > & GetAllowedFields() const
ConfigurationTemplate & WithAllowedFieldDelimiters(Aws::Vector< Aws::String > &&value)
ConfigurationTemplate & WithAllowedFields(const Aws::Vector< RecordField > &value)
ConfigurationTemplate & WithResourceType(const char *value)
const ConfigurationTemplateDeliveryConfigValues & GetDefaultDeliveryConfigValues() const
ConfigurationTemplate & WithAllowedFields(Aws::Vector< RecordField > &&value)
AWS_CLOUDWATCHLOGS_API ConfigurationTemplate(Aws::Utils::Json::JsonView jsonValue)
void SetAllowedFieldDelimiters(Aws::Vector< Aws::String > &&value)
ConfigurationTemplate & WithAllowedActionForAllowVendedLogsDeliveryForResource(const char *value)
const Aws::Vector< Aws::String > & GetAllowedSuffixPathFields() const
void SetAllowedSuffixPathFields(Aws::Vector< Aws::String > &&value)
ConfigurationTemplate & AddAllowedFieldDelimiters(Aws::String &&value)
ConfigurationTemplate & AddAllowedSuffixPathFields(Aws::String &&value)
ConfigurationTemplate & WithAllowedActionForAllowVendedLogsDeliveryForResource(const Aws::String &value)
ConfigurationTemplate & WithService(const Aws::String &value)
ConfigurationTemplate & AddAllowedFieldDelimiters(const Aws::String &value)
void SetAllowedFieldDelimiters(const Aws::Vector< Aws::String > &value)
ConfigurationTemplate & WithAllowedActionForAllowVendedLogsDeliveryForResource(Aws::String &&value)
ConfigurationTemplate & AddAllowedOutputFormats(const OutputFormat &value)
void SetDefaultDeliveryConfigValues(ConfigurationTemplateDeliveryConfigValues &&value)
ConfigurationTemplate & WithAllowedSuffixPathFields(Aws::Vector< Aws::String > &&value)
ConfigurationTemplate & WithAllowedOutputFormats(const Aws::Vector< OutputFormat > &value)
ConfigurationTemplate & WithService(const char *value)
const DeliveryDestinationType & GetDeliveryDestinationType() const
ConfigurationTemplate & WithLogType(Aws::String &&value)
void SetAllowedOutputFormats(const Aws::Vector< OutputFormat > &value)
ConfigurationTemplate & WithLogType(const char *value)
void SetAllowedActionForAllowVendedLogsDeliveryForResource(Aws::String &&value)
void SetDefaultDeliveryConfigValues(const ConfigurationTemplateDeliveryConfigValues &value)
ConfigurationTemplate & WithAllowedOutputFormats(Aws::Vector< OutputFormat > &&value)
const Aws::Vector< OutputFormat > & GetAllowedOutputFormats() const
ConfigurationTemplate & WithDefaultDeliveryConfigValues(ConfigurationTemplateDeliveryConfigValues &&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