AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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