AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListToMap.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/logs/model/FlattenedElement.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudWatchLogs
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_CLOUDWATCHLOGS_API ListToMap() = default;
40 AWS_CLOUDWATCHLOGS_API ListToMap(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDWATCHLOGS_API ListToMap& 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 ListToMap& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
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) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
66 template<typename KeyT = Aws::String>
67 ListToMap& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
69
71
77 inline const Aws::String& GetValueKey() const { return m_valueKey; }
78 inline bool ValueKeyHasBeenSet() const { return m_valueKeyHasBeenSet; }
79 template<typename ValueKeyT = Aws::String>
80 void SetValueKey(ValueKeyT&& value) { m_valueKeyHasBeenSet = true; m_valueKey = std::forward<ValueKeyT>(value); }
81 template<typename ValueKeyT = Aws::String>
82 ListToMap& WithValueKey(ValueKeyT&& value) { SetValueKey(std::forward<ValueKeyT>(value)); return *this;}
84
86
89 inline const Aws::String& GetTarget() const { return m_target; }
90 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
91 template<typename TargetT = Aws::String>
92 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
93 template<typename TargetT = Aws::String>
94 ListToMap& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
96
98
103 inline bool GetFlatten() const { return m_flatten; }
104 inline bool FlattenHasBeenSet() const { return m_flattenHasBeenSet; }
105 inline void SetFlatten(bool value) { m_flattenHasBeenSet = true; m_flatten = value; }
106 inline ListToMap& WithFlatten(bool value) { SetFlatten(value); return *this;}
108
110
116 inline FlattenedElement GetFlattenedElement() const { return m_flattenedElement; }
117 inline bool FlattenedElementHasBeenSet() const { return m_flattenedElementHasBeenSet; }
118 inline void SetFlattenedElement(FlattenedElement value) { m_flattenedElementHasBeenSet = true; m_flattenedElement = value; }
121 private:
122
123 Aws::String m_source;
124 bool m_sourceHasBeenSet = false;
125
126 Aws::String m_key;
127 bool m_keyHasBeenSet = false;
128
129 Aws::String m_valueKey;
130 bool m_valueKeyHasBeenSet = false;
131
132 Aws::String m_target;
133 bool m_targetHasBeenSet = false;
134
135 bool m_flatten{false};
136 bool m_flattenHasBeenSet = false;
137
139 bool m_flattenedElementHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace CloudWatchLogs
144} // namespace Aws
const Aws::String & GetKey() const
Definition ListToMap.h:62
void SetSource(SourceT &&value)
Definition ListToMap.h:53
ListToMap & WithTarget(TargetT &&value)
Definition ListToMap.h:94
ListToMap & WithFlattenedElement(FlattenedElement value)
Definition ListToMap.h:119
const Aws::String & GetValueKey() const
Definition ListToMap.h:77
void SetValueKey(ValueKeyT &&value)
Definition ListToMap.h:80
AWS_CLOUDWATCHLOGS_API ListToMap()=default
const Aws::String & GetTarget() const
Definition ListToMap.h:89
const Aws::String & GetSource() const
Definition ListToMap.h:50
ListToMap & WithValueKey(ValueKeyT &&value)
Definition ListToMap.h:82
ListToMap & WithKey(KeyT &&value)
Definition ListToMap.h:67
ListToMap & WithSource(SourceT &&value)
Definition ListToMap.h:55
void SetTarget(TargetT &&value)
Definition ListToMap.h:92
ListToMap & WithFlatten(bool value)
Definition ListToMap.h:106
void SetFlattenedElement(FlattenedElement value)
Definition ListToMap.h:118
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
FlattenedElement GetFlattenedElement() const
Definition ListToMap.h:116
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