AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
KeyspacesCellMapDefinition.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSAllocator.h>
8#include <aws/keyspacesstreams/KeyspacesStreams_EXPORTS.h>
9#include <aws/keyspacesstreams/model/KeyspacesMetadata.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace KeyspacesStreams {
21namespace Model {
22class KeyspacesCellValue;
23
31 public:
32 AWS_KEYSPACESSTREAMS_API KeyspacesCellMapDefinition() = default;
33 AWS_KEYSPACESSTREAMS_API KeyspacesCellMapDefinition(Aws::Utils::Json::JsonView jsonValue);
35 AWS_KEYSPACESSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const KeyspacesCellValue& GetKey() const { return *m_key; }
42 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
43 template <typename KeyT = KeyspacesCellValue>
44 void SetKey(KeyT&& value) {
45 m_keyHasBeenSet = true;
46 m_key = Aws::MakeShared<KeyspacesCellValue>("KeyspacesCellMapDefinition", std::forward<KeyT>(value));
47 }
48 template <typename KeyT = KeyspacesCellValue>
50 SetKey(std::forward<KeyT>(value));
51 return *this;
52 }
54
56
59 inline const KeyspacesCellValue& GetValue() const { return *m_value; }
60 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
61 template <typename ValueT = KeyspacesCellValue>
62 void SetValue(ValueT&& value) {
63 m_valueHasBeenSet = true;
64 m_value = Aws::MakeShared<KeyspacesCellValue>("KeyspacesCellMapDefinition", std::forward<ValueT>(value));
65 }
66 template <typename ValueT = KeyspacesCellValue>
68 SetValue(std::forward<ValueT>(value));
69 return *this;
70 }
72
74
78 inline const KeyspacesMetadata& GetMetadata() const { return m_metadata; }
79 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
80 template <typename MetadataT = KeyspacesMetadata>
81 void SetMetadata(MetadataT&& value) {
82 m_metadataHasBeenSet = true;
83 m_metadata = std::forward<MetadataT>(value);
84 }
85 template <typename MetadataT = KeyspacesMetadata>
87 SetMetadata(std::forward<MetadataT>(value));
88 return *this;
89 }
91 private:
92 std::shared_ptr<KeyspacesCellValue> m_key;
93
94 std::shared_ptr<KeyspacesCellValue> m_value;
95
96 KeyspacesMetadata m_metadata;
97 bool m_keyHasBeenSet = false;
98 bool m_valueHasBeenSet = false;
99 bool m_metadataHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace KeyspacesStreams
104} // namespace Aws
AWS_KEYSPACESSTREAMS_API KeyspacesCellMapDefinition()=default
KeyspacesCellMapDefinition & WithMetadata(MetadataT &&value)
AWS_KEYSPACESSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KEYSPACESSTREAMS_API KeyspacesCellMapDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KEYSPACESSTREAMS_API KeyspacesCellMapDefinition(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue