AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
KeyspacesCell.h
1
6#pragma once
7#include <aws/keyspacesstreams/KeyspacesStreams_EXPORTS.h>
8#include <aws/keyspacesstreams/model/KeyspacesMetadata.h>
9#include <aws/core/utils/memory/stl/AWSAllocator.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 KeyspacesStreams
23{
24namespace Model
25{
26 class KeyspacesCellValue;
27
35 {
36 public:
37 AWS_KEYSPACESSTREAMS_API KeyspacesCell() = default;
38 AWS_KEYSPACESSTREAMS_API KeyspacesCell(Aws::Utils::Json::JsonView jsonValue);
39 AWS_KEYSPACESSTREAMS_API KeyspacesCell& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_KEYSPACESSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const KeyspacesCellValue& GetValue() const{
49 return *m_value;
50 }
51 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
52 template<typename ValueT = KeyspacesCellValue>
53 void SetValue(ValueT&& value) {
54 m_valueHasBeenSet = true;
55 m_value = Aws::MakeShared<KeyspacesCellValue>("KeyspacesCell", std::forward<ValueT>(value));
56 }
57 template<typename ValueT = KeyspacesCellValue>
58 KeyspacesCell& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
60
62
66 inline const KeyspacesMetadata& GetMetadata() const { return m_metadata; }
67 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
68 template<typename MetadataT = KeyspacesMetadata>
69 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
70 template<typename MetadataT = KeyspacesMetadata>
71 KeyspacesCell& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
73 private:
74
75 std::shared_ptr<KeyspacesCellValue> m_value;
76 bool m_valueHasBeenSet = false;
77
78 KeyspacesMetadata m_metadata;
79 bool m_metadataHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace KeyspacesStreams
84} // namespace Aws
AWS_KEYSPACESSTREAMS_API KeyspacesCell & operator=(Aws::Utils::Json::JsonView jsonValue)
KeyspacesCell & WithValue(ValueT &&value)
const KeyspacesMetadata & GetMetadata() const
const KeyspacesCellValue & GetValue() const
KeyspacesCell & WithMetadata(MetadataT &&value)
AWS_KEYSPACESSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KEYSPACESSTREAMS_API KeyspacesCell()=default
AWS_KEYSPACESSTREAMS_API KeyspacesCell(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue