AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GrokClassifier.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glue
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GLUE_API GrokClassifier() = default;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 GrokClassifier& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_classificationHasBeenSet = true; m_classification = std::forward<ClassificationT>(value); }
63 template<typename ClassificationT = Aws::String>
64 GrokClassifier& WithClassification(ClassificationT&& value) { SetClassification(std::forward<ClassificationT>(value)); return *this;}
66
68
71 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
72 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
73 template<typename CreationTimeT = Aws::Utils::DateTime>
74 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
75 template<typename CreationTimeT = Aws::Utils::DateTime>
76 GrokClassifier& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetLastUpdated() const { return m_lastUpdated; }
84 inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; }
85 template<typename LastUpdatedT = Aws::Utils::DateTime>
86 void SetLastUpdated(LastUpdatedT&& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = std::forward<LastUpdatedT>(value); }
87 template<typename LastUpdatedT = Aws::Utils::DateTime>
88 GrokClassifier& WithLastUpdated(LastUpdatedT&& value) { SetLastUpdated(std::forward<LastUpdatedT>(value)); return *this;}
90
92
95 inline long long GetVersion() const { return m_version; }
96 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
97 inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
98 inline GrokClassifier& WithVersion(long long value) { SetVersion(value); return *this;}
100
102
108 inline const Aws::String& GetGrokPattern() const { return m_grokPattern; }
109 inline bool GrokPatternHasBeenSet() const { return m_grokPatternHasBeenSet; }
110 template<typename GrokPatternT = Aws::String>
111 void SetGrokPattern(GrokPatternT&& value) { m_grokPatternHasBeenSet = true; m_grokPattern = std::forward<GrokPatternT>(value); }
112 template<typename GrokPatternT = Aws::String>
113 GrokClassifier& WithGrokPattern(GrokPatternT&& value) { SetGrokPattern(std::forward<GrokPatternT>(value)); return *this;}
115
117
123 inline const Aws::String& GetCustomPatterns() const { return m_customPatterns; }
124 inline bool CustomPatternsHasBeenSet() const { return m_customPatternsHasBeenSet; }
125 template<typename CustomPatternsT = Aws::String>
126 void SetCustomPatterns(CustomPatternsT&& value) { m_customPatternsHasBeenSet = true; m_customPatterns = std::forward<CustomPatternsT>(value); }
127 template<typename CustomPatternsT = Aws::String>
128 GrokClassifier& WithCustomPatterns(CustomPatternsT&& value) { SetCustomPatterns(std::forward<CustomPatternsT>(value)); return *this;}
130 private:
131
132 Aws::String m_name;
133 bool m_nameHasBeenSet = false;
134
135 Aws::String m_classification;
136 bool m_classificationHasBeenSet = false;
137
138 Aws::Utils::DateTime m_creationTime{};
139 bool m_creationTimeHasBeenSet = false;
140
141 Aws::Utils::DateTime m_lastUpdated{};
142 bool m_lastUpdatedHasBeenSet = false;
143
144 long long m_version{0};
145 bool m_versionHasBeenSet = false;
146
147 Aws::String m_grokPattern;
148 bool m_grokPatternHasBeenSet = false;
149
150 Aws::String m_customPatterns;
151 bool m_customPatternsHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace Glue
156} // 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