AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ParseKeyValue.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
37 {
38 public:
39 AWS_CLOUDWATCHLOGS_API ParseKeyValue() = default;
40 AWS_CLOUDWATCHLOGS_API ParseKeyValue(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDWATCHLOGS_API ParseKeyValue& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetSource() const { return m_source; }
51 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
52 template<typename SourceT = Aws::String>
53 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
54 template<typename SourceT = Aws::String>
55 ParseKeyValue& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
57
59
62 inline const Aws::String& GetDestination() const { return m_destination; }
63 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
64 template<typename DestinationT = Aws::String>
65 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
66 template<typename DestinationT = Aws::String>
67 ParseKeyValue& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
69
71
76 inline const Aws::String& GetFieldDelimiter() const { return m_fieldDelimiter; }
77 inline bool FieldDelimiterHasBeenSet() const { return m_fieldDelimiterHasBeenSet; }
78 template<typename FieldDelimiterT = Aws::String>
79 void SetFieldDelimiter(FieldDelimiterT&& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = std::forward<FieldDelimiterT>(value); }
80 template<typename FieldDelimiterT = Aws::String>
81 ParseKeyValue& WithFieldDelimiter(FieldDelimiterT&& value) { SetFieldDelimiter(std::forward<FieldDelimiterT>(value)); return *this;}
83
85
90 inline const Aws::String& GetKeyValueDelimiter() const { return m_keyValueDelimiter; }
91 inline bool KeyValueDelimiterHasBeenSet() const { return m_keyValueDelimiterHasBeenSet; }
92 template<typename KeyValueDelimiterT = Aws::String>
93 void SetKeyValueDelimiter(KeyValueDelimiterT&& value) { m_keyValueDelimiterHasBeenSet = true; m_keyValueDelimiter = std::forward<KeyValueDelimiterT>(value); }
94 template<typename KeyValueDelimiterT = Aws::String>
95 ParseKeyValue& WithKeyValueDelimiter(KeyValueDelimiterT&& value) { SetKeyValueDelimiter(std::forward<KeyValueDelimiterT>(value)); return *this;}
97
99
102 inline const Aws::String& GetKeyPrefix() const { return m_keyPrefix; }
103 inline bool KeyPrefixHasBeenSet() const { return m_keyPrefixHasBeenSet; }
104 template<typename KeyPrefixT = Aws::String>
105 void SetKeyPrefix(KeyPrefixT&& value) { m_keyPrefixHasBeenSet = true; m_keyPrefix = std::forward<KeyPrefixT>(value); }
106 template<typename KeyPrefixT = Aws::String>
107 ParseKeyValue& WithKeyPrefix(KeyPrefixT&& value) { SetKeyPrefix(std::forward<KeyPrefixT>(value)); return *this;}
109
111
115 inline const Aws::String& GetNonMatchValue() const { return m_nonMatchValue; }
116 inline bool NonMatchValueHasBeenSet() const { return m_nonMatchValueHasBeenSet; }
117 template<typename NonMatchValueT = Aws::String>
118 void SetNonMatchValue(NonMatchValueT&& value) { m_nonMatchValueHasBeenSet = true; m_nonMatchValue = std::forward<NonMatchValueT>(value); }
119 template<typename NonMatchValueT = Aws::String>
120 ParseKeyValue& WithNonMatchValue(NonMatchValueT&& value) { SetNonMatchValue(std::forward<NonMatchValueT>(value)); return *this;}
122
124
128 inline bool GetOverwriteIfExists() const { return m_overwriteIfExists; }
129 inline bool OverwriteIfExistsHasBeenSet() const { return m_overwriteIfExistsHasBeenSet; }
130 inline void SetOverwriteIfExists(bool value) { m_overwriteIfExistsHasBeenSet = true; m_overwriteIfExists = value; }
131 inline ParseKeyValue& WithOverwriteIfExists(bool value) { SetOverwriteIfExists(value); return *this;}
133 private:
134
135 Aws::String m_source;
136 bool m_sourceHasBeenSet = false;
137
138 Aws::String m_destination;
139 bool m_destinationHasBeenSet = false;
140
141 Aws::String m_fieldDelimiter;
142 bool m_fieldDelimiterHasBeenSet = false;
143
144 Aws::String m_keyValueDelimiter;
145 bool m_keyValueDelimiterHasBeenSet = false;
146
147 Aws::String m_keyPrefix;
148 bool m_keyPrefixHasBeenSet = false;
149
150 Aws::String m_nonMatchValue;
151 bool m_nonMatchValueHasBeenSet = false;
152
153 bool m_overwriteIfExists{false};
154 bool m_overwriteIfExistsHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace CloudWatchLogs
159} // namespace Aws
const Aws::String & GetFieldDelimiter() const
const Aws::String & GetNonMatchValue() const
ParseKeyValue & WithNonMatchValue(NonMatchValueT &&value)
ParseKeyValue & WithFieldDelimiter(FieldDelimiterT &&value)
void SetDestination(DestinationT &&value)
AWS_CLOUDWATCHLOGS_API ParseKeyValue(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetKeyValueDelimiter() const
AWS_CLOUDWATCHLOGS_API ParseKeyValue & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDestination() const
ParseKeyValue & WithOverwriteIfExists(bool value)
ParseKeyValue & WithDestination(DestinationT &&value)
void SetFieldDelimiter(FieldDelimiterT &&value)
ParseKeyValue & WithSource(SourceT &&value)
ParseKeyValue & WithKeyPrefix(KeyPrefixT &&value)
void SetKeyValueDelimiter(KeyValueDelimiterT &&value)
AWS_CLOUDWATCHLOGS_API ParseKeyValue()=default
void SetNonMatchValue(NonMatchValueT &&value)
const Aws::String & GetSource() const
const Aws::String & GetKeyPrefix() const
ParseKeyValue & WithKeyValueDelimiter(KeyValueDelimiterT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue