AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
KeyspacesRow.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/keyspacesstreams/KeyspacesStreams_EXPORTS.h>
10#include <aws/keyspacesstreams/model/KeyspacesCell.h>
11#include <aws/keyspacesstreams/model/KeyspacesMetadata.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace KeyspacesStreams {
23namespace Model {
24
33 public:
34 AWS_KEYSPACESSTREAMS_API KeyspacesRow() = default;
35 AWS_KEYSPACESSTREAMS_API KeyspacesRow(Aws::Utils::Json::JsonView jsonValue);
36 AWS_KEYSPACESSTREAMS_API KeyspacesRow& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_KEYSPACESSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::Map<Aws::String, KeyspacesCell>& GetValueCells() const { return m_valueCells; }
45 inline bool ValueCellsHasBeenSet() const { return m_valueCellsHasBeenSet; }
46 template <typename ValueCellsT = Aws::Map<Aws::String, KeyspacesCell>>
47 void SetValueCells(ValueCellsT&& value) {
48 m_valueCellsHasBeenSet = true;
49 m_valueCells = std::forward<ValueCellsT>(value);
50 }
51 template <typename ValueCellsT = Aws::Map<Aws::String, KeyspacesCell>>
52 KeyspacesRow& WithValueCells(ValueCellsT&& value) {
53 SetValueCells(std::forward<ValueCellsT>(value));
54 return *this;
55 }
56 template <typename ValueCellsKeyT = Aws::String, typename ValueCellsValueT = KeyspacesCell>
57 KeyspacesRow& AddValueCells(ValueCellsKeyT&& key, ValueCellsValueT&& value) {
58 m_valueCellsHasBeenSet = true;
59 m_valueCells.emplace(std::forward<ValueCellsKeyT>(key), std::forward<ValueCellsValueT>(value));
60 return *this;
61 }
63
65
69 inline const Aws::Map<Aws::String, KeyspacesCell>& GetStaticCells() const { return m_staticCells; }
70 inline bool StaticCellsHasBeenSet() const { return m_staticCellsHasBeenSet; }
71 template <typename StaticCellsT = Aws::Map<Aws::String, KeyspacesCell>>
72 void SetStaticCells(StaticCellsT&& value) {
73 m_staticCellsHasBeenSet = true;
74 m_staticCells = std::forward<StaticCellsT>(value);
75 }
76 template <typename StaticCellsT = Aws::Map<Aws::String, KeyspacesCell>>
77 KeyspacesRow& WithStaticCells(StaticCellsT&& value) {
78 SetStaticCells(std::forward<StaticCellsT>(value));
79 return *this;
80 }
81 template <typename StaticCellsKeyT = Aws::String, typename StaticCellsValueT = KeyspacesCell>
82 KeyspacesRow& AddStaticCells(StaticCellsKeyT&& key, StaticCellsValueT&& value) {
83 m_staticCellsHasBeenSet = true;
84 m_staticCells.emplace(std::forward<StaticCellsKeyT>(key), std::forward<StaticCellsValueT>(value));
85 return *this;
86 }
88
90
94 inline const KeyspacesMetadata& GetRowMetadata() const { return m_rowMetadata; }
95 inline bool RowMetadataHasBeenSet() const { return m_rowMetadataHasBeenSet; }
96 template <typename RowMetadataT = KeyspacesMetadata>
97 void SetRowMetadata(RowMetadataT&& value) {
98 m_rowMetadataHasBeenSet = true;
99 m_rowMetadata = std::forward<RowMetadataT>(value);
100 }
101 template <typename RowMetadataT = KeyspacesMetadata>
102 KeyspacesRow& WithRowMetadata(RowMetadataT&& value) {
103 SetRowMetadata(std::forward<RowMetadataT>(value));
104 return *this;
105 }
107 private:
109
111
112 KeyspacesMetadata m_rowMetadata;
113 bool m_valueCellsHasBeenSet = false;
114 bool m_staticCellsHasBeenSet = false;
115 bool m_rowMetadataHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace KeyspacesStreams
120} // namespace Aws
KeyspacesRow & AddValueCells(ValueCellsKeyT &&key, ValueCellsValueT &&value)
AWS_KEYSPACESSTREAMS_API KeyspacesRow & operator=(Aws::Utils::Json::JsonView jsonValue)
const KeyspacesMetadata & GetRowMetadata() const
void SetValueCells(ValueCellsT &&value)
KeyspacesRow & WithValueCells(ValueCellsT &&value)
const Aws::Map< Aws::String, KeyspacesCell > & GetStaticCells() const
AWS_KEYSPACESSTREAMS_API KeyspacesRow(Aws::Utils::Json::JsonView jsonValue)
KeyspacesRow & WithStaticCells(StaticCellsT &&value)
KeyspacesRow & WithRowMetadata(RowMetadataT &&value)
AWS_KEYSPACESSTREAMS_API KeyspacesRow()=default
AWS_KEYSPACESSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
KeyspacesRow & AddStaticCells(StaticCellsKeyT &&key, StaticCellsValueT &&value)
void SetRowMetadata(RowMetadataT &&value)
void SetStaticCells(StaticCellsT &&value)
const Aws::Map< Aws::String, KeyspacesCell > & GetValueCells() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue