AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
RetrievedContext.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/AnyValue.h>
9#include <aws/context/model/EdgeIdentifier.h>
10#include <aws/context/model/RetrievedContextContent.h>
11#include <aws/context/model/RetrievedContextEntityType.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/crt/cbor/Cbor.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Cbor {
21class CborValue;
22} // namespace Cbor
23} // namespace Utils
24namespace Context {
25namespace Model {
26
34 public:
35 AWS_CONTEXT_API RetrievedContext() = default;
36 AWS_CONTEXT_API RetrievedContext(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_CONTEXT_API RetrievedContext& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
39
41
45 inline const Aws::String& GetNodeId() const { return m_nodeId; }
46 inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
47 template <typename NodeIdT = Aws::String>
48 void SetNodeId(NodeIdT&& value) {
49 m_nodeIdHasBeenSet = true;
50 m_nodeId = std::forward<NodeIdT>(value);
51 }
52 template <typename NodeIdT = Aws::String>
53 RetrievedContext& WithNodeId(NodeIdT&& value) {
54 SetNodeId(std::forward<NodeIdT>(value));
55 return *this;
56 }
58
60
64 inline const EdgeIdentifier& GetEdgeId() const { return m_edgeId; }
65 inline bool EdgeIdHasBeenSet() const { return m_edgeIdHasBeenSet; }
66 template <typename EdgeIdT = EdgeIdentifier>
67 void SetEdgeId(EdgeIdT&& value) {
68 m_edgeIdHasBeenSet = true;
69 m_edgeId = std::forward<EdgeIdT>(value);
70 }
71 template <typename EdgeIdT = EdgeIdentifier>
72 RetrievedContext& WithEdgeId(EdgeIdT&& value) {
73 SetEdgeId(std::forward<EdgeIdT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetDocumentId() const { return m_documentId; }
84 inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
85 template <typename DocumentIdT = Aws::String>
86 void SetDocumentId(DocumentIdT&& value) {
87 m_documentIdHasBeenSet = true;
88 m_documentId = std::forward<DocumentIdT>(value);
89 }
90 template <typename DocumentIdT = Aws::String>
91 RetrievedContext& WithDocumentId(DocumentIdT&& value) {
92 SetDocumentId(std::forward<DocumentIdT>(value));
93 return *this;
94 }
96
98
104 inline RetrievedContextEntityType GetEntityType() const { return m_entityType; }
105 inline bool EntityTypeHasBeenSet() const { return m_entityTypeHasBeenSet; }
107 m_entityTypeHasBeenSet = true;
108 m_entityType = value;
109 }
111 SetEntityType(value);
112 return *this;
113 }
115
117
120 inline const Aws::String& GetSummary() const { return m_summary; }
121 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
122 template <typename SummaryT = Aws::String>
123 void SetSummary(SummaryT&& value) {
124 m_summaryHasBeenSet = true;
125 m_summary = std::forward<SummaryT>(value);
126 }
127 template <typename SummaryT = Aws::String>
128 RetrievedContext& WithSummary(SummaryT&& value) {
129 SetSummary(std::forward<SummaryT>(value));
130 return *this;
131 }
133
135
138 inline const RetrievedContextContent& GetContent() const { return m_content; }
139 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
140 template <typename ContentT = RetrievedContextContent>
141 void SetContent(ContentT&& value) {
142 m_contentHasBeenSet = true;
143 m_content = std::forward<ContentT>(value);
144 }
145 template <typename ContentT = RetrievedContextContent>
146 RetrievedContext& WithContent(ContentT&& value) {
147 SetContent(std::forward<ContentT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::Map<Aws::String, AnyValue>& GetProperties() const { return m_properties; }
157 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
158 template <typename PropertiesT = Aws::Map<Aws::String, AnyValue>>
159 void SetProperties(PropertiesT&& value) {
160 m_propertiesHasBeenSet = true;
161 m_properties = std::forward<PropertiesT>(value);
162 }
163 template <typename PropertiesT = Aws::Map<Aws::String, AnyValue>>
164 RetrievedContext& WithProperties(PropertiesT&& value) {
165 SetProperties(std::forward<PropertiesT>(value));
166 return *this;
167 }
168 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = AnyValue>
169 RetrievedContext& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
170 m_propertiesHasBeenSet = true;
171 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
172 return *this;
173 }
175 private:
176 Aws::String m_nodeId;
177
178 EdgeIdentifier m_edgeId;
179
180 Aws::String m_documentId;
181
183
184 Aws::String m_summary;
185
186 RetrievedContextContent m_content;
187
189 bool m_nodeIdHasBeenSet = false;
190 bool m_edgeIdHasBeenSet = false;
191 bool m_documentIdHasBeenSet = false;
192 bool m_entityTypeHasBeenSet = false;
193 bool m_summaryHasBeenSet = false;
194 bool m_contentHasBeenSet = false;
195 bool m_propertiesHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace Context
200} // namespace Aws
const RetrievedContextContent & GetContent() const
AWS_CONTEXT_API RetrievedContext(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
RetrievedContext & WithSummary(SummaryT &&value)
const Aws::String & GetDocumentId() const
void SetDocumentId(DocumentIdT &&value)
RetrievedContext & WithProperties(PropertiesT &&value)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetSummary() const
const Aws::String & GetNodeId() const
void SetProperties(PropertiesT &&value)
const EdgeIdentifier & GetEdgeId() const
void SetEntityType(RetrievedContextEntityType value)
RetrievedContextEntityType GetEntityType() const
AWS_CONTEXT_API RetrievedContext & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CONTEXT_API RetrievedContext()=default
RetrievedContext & WithEdgeId(EdgeIdT &&value)
RetrievedContext & WithEntityType(RetrievedContextEntityType value)
RetrievedContext & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
const Aws::Map< Aws::String, AnyValue > & GetProperties() const
RetrievedContext & WithContent(ContentT &&value)
RetrievedContext & WithDocumentId(DocumentIdT &&value)
RetrievedContext & WithNodeId(NodeIdT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String