AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Grok.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CloudWatchLogs {
20namespace Model {
21
31class Grok {
32 public:
33 AWS_CLOUDWATCHLOGS_API Grok() = default;
34 AWS_CLOUDWATCHLOGS_API Grok(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLOUDWATCHLOGS_API Grok& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetSource() const { return m_source; }
44 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
45 template <typename SourceT = Aws::String>
46 void SetSource(SourceT&& value) {
47 m_sourceHasBeenSet = true;
48 m_source = std::forward<SourceT>(value);
49 }
50 template <typename SourceT = Aws::String>
51 Grok& WithSource(SourceT&& value) {
52 SetSource(std::forward<SourceT>(value));
53 return *this;
54 }
56
58
64 inline const Aws::String& GetMatch() const { return m_match; }
65 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
66 template <typename MatchT = Aws::String>
67 void SetMatch(MatchT&& value) {
68 m_matchHasBeenSet = true;
69 m_match = std::forward<MatchT>(value);
70 }
71 template <typename MatchT = Aws::String>
72 Grok& WithMatch(MatchT&& value) {
73 SetMatch(std::forward<MatchT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_source;
79
80 Aws::String m_match;
81 bool m_sourceHasBeenSet = false;
82 bool m_matchHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace CloudWatchLogs
87} // namespace Aws
AWS_CLOUDWATCHLOGS_API Grok(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API Grok()=default
AWS_CLOUDWATCHLOGS_API Grok & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
bool SourceHasBeenSet() const
Definition Grok.h:44
void SetMatch(MatchT &&value)
Definition Grok.h:67
Grok & WithSource(SourceT &&value)
Definition Grok.h:51
Grok & WithMatch(MatchT &&value)
Definition Grok.h:72
bool MatchHasBeenSet() const
Definition Grok.h:65
const Aws::String & GetMatch() const
Definition Grok.h:64
const Aws::String & GetSource() const
Definition Grok.h:43
void SetSource(SourceT &&value)
Definition Grok.h:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue