AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ListToMap.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9#include <aws/logs/model/FlattenedElement.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudWatchLogs {
21namespace Model {
22
32class ListToMap {
33 public:
34 AWS_CLOUDWATCHLOGS_API ListToMap() = default;
35 AWS_CLOUDWATCHLOGS_API ListToMap(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CLOUDWATCHLOGS_API ListToMap& 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 ListToMap& WithSource(SourceT&& value) {
53 SetSource(std::forward<SourceT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetKey() const { return m_key; }
63 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
64 template <typename KeyT = Aws::String>
65 void SetKey(KeyT&& value) {
66 m_keyHasBeenSet = true;
67 m_key = std::forward<KeyT>(value);
68 }
69 template <typename KeyT = Aws::String>
70 ListToMap& WithKey(KeyT&& value) {
71 SetKey(std::forward<KeyT>(value));
72 return *this;
73 }
75
77
83 inline const Aws::String& GetValueKey() const { return m_valueKey; }
84 inline bool ValueKeyHasBeenSet() const { return m_valueKeyHasBeenSet; }
85 template <typename ValueKeyT = Aws::String>
86 void SetValueKey(ValueKeyT&& value) {
87 m_valueKeyHasBeenSet = true;
88 m_valueKey = std::forward<ValueKeyT>(value);
89 }
90 template <typename ValueKeyT = Aws::String>
91 ListToMap& WithValueKey(ValueKeyT&& value) {
92 SetValueKey(std::forward<ValueKeyT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetTarget() const { return m_target; }
102 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
103 template <typename TargetT = Aws::String>
104 void SetTarget(TargetT&& value) {
105 m_targetHasBeenSet = true;
106 m_target = std::forward<TargetT>(value);
107 }
108 template <typename TargetT = Aws::String>
109 ListToMap& WithTarget(TargetT&& value) {
110 SetTarget(std::forward<TargetT>(value));
111 return *this;
112 }
114
116
121 inline bool GetFlatten() const { return m_flatten; }
122 inline bool FlattenHasBeenSet() const { return m_flattenHasBeenSet; }
123 inline void SetFlatten(bool value) {
124 m_flattenHasBeenSet = true;
125 m_flatten = value;
126 }
127 inline ListToMap& WithFlatten(bool value) {
128 SetFlatten(value);
129 return *this;
130 }
132
134
140 inline FlattenedElement GetFlattenedElement() const { return m_flattenedElement; }
141 inline bool FlattenedElementHasBeenSet() const { return m_flattenedElementHasBeenSet; }
143 m_flattenedElementHasBeenSet = true;
144 m_flattenedElement = value;
145 }
147 SetFlattenedElement(value);
148 return *this;
149 }
151 private:
152 Aws::String m_source;
153
154 Aws::String m_key;
155
156 Aws::String m_valueKey;
157
158 Aws::String m_target;
159
160 bool m_flatten{false};
161
163 bool m_sourceHasBeenSet = false;
164 bool m_keyHasBeenSet = false;
165 bool m_valueKeyHasBeenSet = false;
166 bool m_targetHasBeenSet = false;
167 bool m_flattenHasBeenSet = false;
168 bool m_flattenedElementHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace CloudWatchLogs
173} // namespace Aws
const Aws::String & GetKey() const
Definition ListToMap.h:62
void SetSource(SourceT &&value)
Definition ListToMap.h:47
ListToMap & WithTarget(TargetT &&value)
Definition ListToMap.h:109
ListToMap & WithFlattenedElement(FlattenedElement value)
Definition ListToMap.h:146
const Aws::String & GetValueKey() const
Definition ListToMap.h:83
void SetValueKey(ValueKeyT &&value)
Definition ListToMap.h:86
AWS_CLOUDWATCHLOGS_API ListToMap()=default
const Aws::String & GetTarget() const
Definition ListToMap.h:101
const Aws::String & GetSource() const
Definition ListToMap.h:44
ListToMap & WithValueKey(ValueKeyT &&value)
Definition ListToMap.h:91
ListToMap & WithKey(KeyT &&value)
Definition ListToMap.h:70
ListToMap & WithSource(SourceT &&value)
Definition ListToMap.h:52
void SetTarget(TargetT &&value)
Definition ListToMap.h:104
ListToMap & WithFlatten(bool value)
Definition ListToMap.h:127
void SetFlattenedElement(FlattenedElement value)
Definition ListToMap.h:142
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
FlattenedElement GetFlattenedElement() const
Definition ListToMap.h:140
AWS_CLOUDWATCHLOGS_API ListToMap & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API ListToMap(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue