AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
GrokClassifier.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/Glue_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glue {
21namespace Model {
22
30 public:
31 AWS_GLUE_API GrokClassifier() = default;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 GrokClassifier& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetClassification() const { return m_classification; }
60 inline bool ClassificationHasBeenSet() const { return m_classificationHasBeenSet; }
61 template <typename ClassificationT = Aws::String>
62 void SetClassification(ClassificationT&& value) {
63 m_classificationHasBeenSet = true;
64 m_classification = std::forward<ClassificationT>(value);
65 }
66 template <typename ClassificationT = Aws::String>
67 GrokClassifier& WithClassification(ClassificationT&& value) {
68 SetClassification(std::forward<ClassificationT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
78 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
79 template <typename CreationTimeT = Aws::Utils::DateTime>
80 void SetCreationTime(CreationTimeT&& value) {
81 m_creationTimeHasBeenSet = true;
82 m_creationTime = std::forward<CreationTimeT>(value);
83 }
84 template <typename CreationTimeT = Aws::Utils::DateTime>
85 GrokClassifier& WithCreationTime(CreationTimeT&& value) {
86 SetCreationTime(std::forward<CreationTimeT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetLastUpdated() const { return m_lastUpdated; }
96 inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; }
97 template <typename LastUpdatedT = Aws::Utils::DateTime>
98 void SetLastUpdated(LastUpdatedT&& value) {
99 m_lastUpdatedHasBeenSet = true;
100 m_lastUpdated = std::forward<LastUpdatedT>(value);
101 }
102 template <typename LastUpdatedT = Aws::Utils::DateTime>
103 GrokClassifier& WithLastUpdated(LastUpdatedT&& value) {
104 SetLastUpdated(std::forward<LastUpdatedT>(value));
105 return *this;
106 }
108
110
113 inline long long GetVersion() const { return m_version; }
114 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
115 inline void SetVersion(long long value) {
116 m_versionHasBeenSet = true;
117 m_version = value;
118 }
119 inline GrokClassifier& WithVersion(long long value) {
120 SetVersion(value);
121 return *this;
122 }
124
126
132 inline const Aws::String& GetGrokPattern() const { return m_grokPattern; }
133 inline bool GrokPatternHasBeenSet() const { return m_grokPatternHasBeenSet; }
134 template <typename GrokPatternT = Aws::String>
135 void SetGrokPattern(GrokPatternT&& value) {
136 m_grokPatternHasBeenSet = true;
137 m_grokPattern = std::forward<GrokPatternT>(value);
138 }
139 template <typename GrokPatternT = Aws::String>
140 GrokClassifier& WithGrokPattern(GrokPatternT&& value) {
141 SetGrokPattern(std::forward<GrokPatternT>(value));
142 return *this;
143 }
145
147
153 inline const Aws::String& GetCustomPatterns() const { return m_customPatterns; }
154 inline bool CustomPatternsHasBeenSet() const { return m_customPatternsHasBeenSet; }
155 template <typename CustomPatternsT = Aws::String>
156 void SetCustomPatterns(CustomPatternsT&& value) {
157 m_customPatternsHasBeenSet = true;
158 m_customPatterns = std::forward<CustomPatternsT>(value);
159 }
160 template <typename CustomPatternsT = Aws::String>
161 GrokClassifier& WithCustomPatterns(CustomPatternsT&& value) {
162 SetCustomPatterns(std::forward<CustomPatternsT>(value));
163 return *this;
164 }
166 private:
167 Aws::String m_name;
168
169 Aws::String m_classification;
170
171 Aws::Utils::DateTime m_creationTime{};
172
173 Aws::Utils::DateTime m_lastUpdated{};
174
175 long long m_version{0};
176
177 Aws::String m_grokPattern;
178
179 Aws::String m_customPatterns;
180 bool m_nameHasBeenSet = false;
181 bool m_classificationHasBeenSet = false;
182 bool m_creationTimeHasBeenSet = false;
183 bool m_lastUpdatedHasBeenSet = false;
184 bool m_versionHasBeenSet = false;
185 bool m_grokPatternHasBeenSet = false;
186 bool m_customPatternsHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace Glue
191} // namespace Aws
GrokClassifier & WithCreationTime(CreationTimeT &&value)
AWS_GLUE_API GrokClassifier()=default
const Aws::String & GetGrokPattern() const
const Aws::Utils::DateTime & GetCreationTime() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
GrokClassifier & WithVersion(long long value)
const Aws::String & GetName() const
GrokClassifier & WithLastUpdated(LastUpdatedT &&value)
GrokClassifier & WithCustomPatterns(CustomPatternsT &&value)
AWS_GLUE_API GrokClassifier(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastUpdated() const
const Aws::String & GetCustomPatterns() const
GrokClassifier & WithGrokPattern(GrokPatternT &&value)
void SetVersion(long long value)
void SetCreationTime(CreationTimeT &&value)
void SetLastUpdated(LastUpdatedT &&value)
AWS_GLUE_API GrokClassifier & operator=(Aws::Utils::Json::JsonView jsonValue)
GrokClassifier & WithClassification(ClassificationT &&value)
void SetGrokPattern(GrokPatternT &&value)
void SetCustomPatterns(CustomPatternsT &&value)
const Aws::String & GetClassification() const
GrokClassifier & WithName(NameT &&value)
void SetClassification(ClassificationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue