AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ServiceT = Aws::String>
60 void SetService(ServiceT&& value) { m_serviceHasBeenSet = true; m_service = std::forward<ServiceT>(value); }
61 template<typename ServiceT = Aws::String>
62 ConfigurationTemplate& WithService(ServiceT&& value) { SetService(std::forward<ServiceT>(value)); return *this;}
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) { m_logTypeHasBeenSet = true; m_logType = std::forward<LogTypeT>(value); }
74 template<typename LogTypeT = Aws::String>
75 ConfigurationTemplate& WithLogType(LogTypeT&& value) { SetLogType(std::forward<LogTypeT>(value)); return *this;}
77
79
83 inline const Aws::String& GetResourceType() const { return m_resourceType; }
84 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
85 template<typename ResourceTypeT = Aws::String>
86 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
87 template<typename ResourceTypeT = Aws::String>
88 ConfigurationTemplate& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
90
92
96 inline DeliveryDestinationType GetDeliveryDestinationType() const { return m_deliveryDestinationType; }
97 inline bool DeliveryDestinationTypeHasBeenSet() const { return m_deliveryDestinationTypeHasBeenSet; }
98 inline void SetDeliveryDestinationType(DeliveryDestinationType value) { m_deliveryDestinationTypeHasBeenSet = true; m_deliveryDestinationType = value; }
101
103
107 inline const ConfigurationTemplateDeliveryConfigValues& GetDefaultDeliveryConfigValues() const { return m_defaultDeliveryConfigValues; }
108 inline bool DefaultDeliveryConfigValuesHasBeenSet() const { return m_defaultDeliveryConfigValuesHasBeenSet; }
109 template<typename DefaultDeliveryConfigValuesT = ConfigurationTemplateDeliveryConfigValues>
110 void SetDefaultDeliveryConfigValues(DefaultDeliveryConfigValuesT&& value) { m_defaultDeliveryConfigValuesHasBeenSet = true; m_defaultDeliveryConfigValues = std::forward<DefaultDeliveryConfigValuesT>(value); }
111 template<typename DefaultDeliveryConfigValuesT = ConfigurationTemplateDeliveryConfigValues>
112 ConfigurationTemplate& WithDefaultDeliveryConfigValues(DefaultDeliveryConfigValuesT&& value) { SetDefaultDeliveryConfigValues(std::forward<DefaultDeliveryConfigValuesT>(value)); return *this;}
114
116
124 inline const Aws::Vector<RecordField>& GetAllowedFields() const { return m_allowedFields; }
125 inline bool AllowedFieldsHasBeenSet() const { return m_allowedFieldsHasBeenSet; }
126 template<typename AllowedFieldsT = Aws::Vector<RecordField>>
127 void SetAllowedFields(AllowedFieldsT&& value) { m_allowedFieldsHasBeenSet = true; m_allowedFields = std::forward<AllowedFieldsT>(value); }
128 template<typename AllowedFieldsT = Aws::Vector<RecordField>>
129 ConfigurationTemplate& WithAllowedFields(AllowedFieldsT&& value) { SetAllowedFields(std::forward<AllowedFieldsT>(value)); return *this;}
130 template<typename AllowedFieldsT = RecordField>
131 ConfigurationTemplate& AddAllowedFields(AllowedFieldsT&& value) { m_allowedFieldsHasBeenSet = true; m_allowedFields.emplace_back(std::forward<AllowedFieldsT>(value)); return *this; }
133
135
139 inline const Aws::Vector<OutputFormat>& GetAllowedOutputFormats() const { return m_allowedOutputFormats; }
140 inline bool AllowedOutputFormatsHasBeenSet() const { return m_allowedOutputFormatsHasBeenSet; }
141 template<typename AllowedOutputFormatsT = Aws::Vector<OutputFormat>>
142 void SetAllowedOutputFormats(AllowedOutputFormatsT&& value) { m_allowedOutputFormatsHasBeenSet = true; m_allowedOutputFormats = std::forward<AllowedOutputFormatsT>(value); }
143 template<typename AllowedOutputFormatsT = Aws::Vector<OutputFormat>>
144 ConfigurationTemplate& WithAllowedOutputFormats(AllowedOutputFormatsT&& value) { SetAllowedOutputFormats(std::forward<AllowedOutputFormatsT>(value)); return *this;}
145 inline ConfigurationTemplate& AddAllowedOutputFormats(OutputFormat value) { m_allowedOutputFormatsHasBeenSet = true; m_allowedOutputFormats.push_back(value); return *this; }
147
149
154 inline const Aws::String& GetAllowedActionForAllowVendedLogsDeliveryForResource() const { return m_allowedActionForAllowVendedLogsDeliveryForResource; }
155 inline bool AllowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet() const { return m_allowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet; }
156 template<typename AllowedActionForAllowVendedLogsDeliveryForResourceT = Aws::String>
157 void SetAllowedActionForAllowVendedLogsDeliveryForResource(AllowedActionForAllowVendedLogsDeliveryForResourceT&& value) { m_allowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet = true; m_allowedActionForAllowVendedLogsDeliveryForResource = std::forward<AllowedActionForAllowVendedLogsDeliveryForResourceT>(value); }
158 template<typename AllowedActionForAllowVendedLogsDeliveryForResourceT = Aws::String>
159 ConfigurationTemplate& WithAllowedActionForAllowVendedLogsDeliveryForResource(AllowedActionForAllowVendedLogsDeliveryForResourceT&& value) { SetAllowedActionForAllowVendedLogsDeliveryForResource(std::forward<AllowedActionForAllowVendedLogsDeliveryForResourceT>(value)); return *this;}
161
163
171 inline const Aws::Vector<Aws::String>& GetAllowedFieldDelimiters() const { return m_allowedFieldDelimiters; }
172 inline bool AllowedFieldDelimitersHasBeenSet() const { return m_allowedFieldDelimitersHasBeenSet; }
173 template<typename AllowedFieldDelimitersT = Aws::Vector<Aws::String>>
174 void SetAllowedFieldDelimiters(AllowedFieldDelimitersT&& value) { m_allowedFieldDelimitersHasBeenSet = true; m_allowedFieldDelimiters = std::forward<AllowedFieldDelimitersT>(value); }
175 template<typename AllowedFieldDelimitersT = Aws::Vector<Aws::String>>
176 ConfigurationTemplate& WithAllowedFieldDelimiters(AllowedFieldDelimitersT&& value) { SetAllowedFieldDelimiters(std::forward<AllowedFieldDelimitersT>(value)); return *this;}
177 template<typename AllowedFieldDelimitersT = Aws::String>
178 ConfigurationTemplate& AddAllowedFieldDelimiters(AllowedFieldDelimitersT&& value) { m_allowedFieldDelimitersHasBeenSet = true; m_allowedFieldDelimiters.emplace_back(std::forward<AllowedFieldDelimitersT>(value)); return *this; }
180
182
186 inline const Aws::Vector<Aws::String>& GetAllowedSuffixPathFields() const { return m_allowedSuffixPathFields; }
187 inline bool AllowedSuffixPathFieldsHasBeenSet() const { return m_allowedSuffixPathFieldsHasBeenSet; }
188 template<typename AllowedSuffixPathFieldsT = Aws::Vector<Aws::String>>
189 void SetAllowedSuffixPathFields(AllowedSuffixPathFieldsT&& value) { m_allowedSuffixPathFieldsHasBeenSet = true; m_allowedSuffixPathFields = std::forward<AllowedSuffixPathFieldsT>(value); }
190 template<typename AllowedSuffixPathFieldsT = Aws::Vector<Aws::String>>
191 ConfigurationTemplate& WithAllowedSuffixPathFields(AllowedSuffixPathFieldsT&& value) { SetAllowedSuffixPathFields(std::forward<AllowedSuffixPathFieldsT>(value)); return *this;}
192 template<typename AllowedSuffixPathFieldsT = Aws::String>
193 ConfigurationTemplate& AddAllowedSuffixPathFields(AllowedSuffixPathFieldsT&& value) { m_allowedSuffixPathFieldsHasBeenSet = true; m_allowedSuffixPathFields.emplace_back(std::forward<AllowedSuffixPathFieldsT>(value)); return *this; }
195 private:
196
197 Aws::String m_service;
198 bool m_serviceHasBeenSet = false;
199
200 Aws::String m_logType;
201 bool m_logTypeHasBeenSet = false;
202
203 Aws::String m_resourceType;
204 bool m_resourceTypeHasBeenSet = false;
205
207 bool m_deliveryDestinationTypeHasBeenSet = false;
208
209 ConfigurationTemplateDeliveryConfigValues m_defaultDeliveryConfigValues;
210 bool m_defaultDeliveryConfigValuesHasBeenSet = false;
211
212 Aws::Vector<RecordField> m_allowedFields;
213 bool m_allowedFieldsHasBeenSet = false;
214
215 Aws::Vector<OutputFormat> m_allowedOutputFormats;
216 bool m_allowedOutputFormatsHasBeenSet = false;
217
218 Aws::String m_allowedActionForAllowVendedLogsDeliveryForResource;
219 bool m_allowedActionForAllowVendedLogsDeliveryForResourceHasBeenSet = false;
220
221 Aws::Vector<Aws::String> m_allowedFieldDelimiters;
222 bool m_allowedFieldDelimitersHasBeenSet = false;
223
224 Aws::Vector<Aws::String> m_allowedSuffixPathFields;
225 bool m_allowedSuffixPathFieldsHasBeenSet = false;
226 };
227
228} // namespace Model
229} // namespace CloudWatchLogs
230} // 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
DeliveryDestinationType GetDeliveryDestinationType() 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