AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ParseKeyValue.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
33 public:
34 AWS_CLOUDWATCHLOGS_API ParseKeyValue() = default;
35 AWS_CLOUDWATCHLOGS_API ParseKeyValue(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CLOUDWATCHLOGS_API ParseKeyValue& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::String& GetSource() const { return m_source; }
45 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
46 template <typename SourceT = Aws::String>
47 void SetSource(SourceT&& value) {
48 m_sourceHasBeenSet = true;
49 m_source = std::forward<SourceT>(value);
50 }
51 template <typename SourceT = Aws::String>
52 ParseKeyValue& WithSource(SourceT&& value) {
53 SetSource(std::forward<SourceT>(value));
54 return *this;
55 }
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) {
66 m_destinationHasBeenSet = true;
67 m_destination = std::forward<DestinationT>(value);
68 }
69 template <typename DestinationT = Aws::String>
70 ParseKeyValue& WithDestination(DestinationT&& value) {
71 SetDestination(std::forward<DestinationT>(value));
72 return *this;
73 }
75
77
82 inline const Aws::String& GetFieldDelimiter() const { return m_fieldDelimiter; }
83 inline bool FieldDelimiterHasBeenSet() const { return m_fieldDelimiterHasBeenSet; }
84 template <typename FieldDelimiterT = Aws::String>
85 void SetFieldDelimiter(FieldDelimiterT&& value) {
86 m_fieldDelimiterHasBeenSet = true;
87 m_fieldDelimiter = std::forward<FieldDelimiterT>(value);
88 }
89 template <typename FieldDelimiterT = Aws::String>
90 ParseKeyValue& WithFieldDelimiter(FieldDelimiterT&& value) {
91 SetFieldDelimiter(std::forward<FieldDelimiterT>(value));
92 return *this;
93 }
95
97
102 inline const Aws::String& GetKeyValueDelimiter() const { return m_keyValueDelimiter; }
103 inline bool KeyValueDelimiterHasBeenSet() const { return m_keyValueDelimiterHasBeenSet; }
104 template <typename KeyValueDelimiterT = Aws::String>
105 void SetKeyValueDelimiter(KeyValueDelimiterT&& value) {
106 m_keyValueDelimiterHasBeenSet = true;
107 m_keyValueDelimiter = std::forward<KeyValueDelimiterT>(value);
108 }
109 template <typename KeyValueDelimiterT = Aws::String>
110 ParseKeyValue& WithKeyValueDelimiter(KeyValueDelimiterT&& value) {
111 SetKeyValueDelimiter(std::forward<KeyValueDelimiterT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetKeyPrefix() const { return m_keyPrefix; }
121 inline bool KeyPrefixHasBeenSet() const { return m_keyPrefixHasBeenSet; }
122 template <typename KeyPrefixT = Aws::String>
123 void SetKeyPrefix(KeyPrefixT&& value) {
124 m_keyPrefixHasBeenSet = true;
125 m_keyPrefix = std::forward<KeyPrefixT>(value);
126 }
127 template <typename KeyPrefixT = Aws::String>
128 ParseKeyValue& WithKeyPrefix(KeyPrefixT&& value) {
129 SetKeyPrefix(std::forward<KeyPrefixT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::String& GetNonMatchValue() const { return m_nonMatchValue; }
140 inline bool NonMatchValueHasBeenSet() const { return m_nonMatchValueHasBeenSet; }
141 template <typename NonMatchValueT = Aws::String>
142 void SetNonMatchValue(NonMatchValueT&& value) {
143 m_nonMatchValueHasBeenSet = true;
144 m_nonMatchValue = std::forward<NonMatchValueT>(value);
145 }
146 template <typename NonMatchValueT = Aws::String>
147 ParseKeyValue& WithNonMatchValue(NonMatchValueT&& value) {
148 SetNonMatchValue(std::forward<NonMatchValueT>(value));
149 return *this;
150 }
152
154
158 inline bool GetOverwriteIfExists() const { return m_overwriteIfExists; }
159 inline bool OverwriteIfExistsHasBeenSet() const { return m_overwriteIfExistsHasBeenSet; }
160 inline void SetOverwriteIfExists(bool value) {
161 m_overwriteIfExistsHasBeenSet = true;
162 m_overwriteIfExists = value;
163 }
166 return *this;
167 }
169 private:
170 Aws::String m_source;
171
172 Aws::String m_destination;
173
174 Aws::String m_fieldDelimiter;
175
176 Aws::String m_keyValueDelimiter;
177
178 Aws::String m_keyPrefix;
179
180 Aws::String m_nonMatchValue;
181
182 bool m_overwriteIfExists{false};
183 bool m_sourceHasBeenSet = false;
184 bool m_destinationHasBeenSet = false;
185 bool m_fieldDelimiterHasBeenSet = false;
186 bool m_keyValueDelimiterHasBeenSet = false;
187 bool m_keyPrefixHasBeenSet = false;
188 bool m_nonMatchValueHasBeenSet = false;
189 bool m_overwriteIfExistsHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace CloudWatchLogs
194} // 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