AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
SearchAgentContextResultEntity.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/EntityType.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/crt/cbor/Cbor.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Cbor {
20class CborValue;
21} // namespace Cbor
22} // namespace Utils
23namespace Context {
24namespace Model {
25
32 public:
33 AWS_CONTEXT_API SearchAgentContextResultEntity() = default;
34 AWS_CONTEXT_API SearchAgentContextResultEntity(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CONTEXT_API SearchAgentContextResultEntity& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
43 inline const Aws::String& GetNodeId() const { return m_nodeId; }
44 inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
45 template <typename NodeIdT = Aws::String>
46 void SetNodeId(NodeIdT&& value) {
47 m_nodeIdHasBeenSet = true;
48 m_nodeId = std::forward<NodeIdT>(value);
49 }
50 template <typename NodeIdT = Aws::String>
52 SetNodeId(std::forward<NodeIdT>(value));
53 return *this;
54 }
56
58
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>
73 SetEdgeId(std::forward<EdgeIdT>(value));
74 return *this;
75 }
77
79
85 inline EntityType GetEntityType() const { return m_entityType; }
86 inline bool EntityTypeHasBeenSet() const { return m_entityTypeHasBeenSet; }
87 inline void SetEntityType(EntityType value) {
88 m_entityTypeHasBeenSet = true;
89 m_entityType = value;
90 }
92 SetEntityType(value);
93 return *this;
94 }
96
98
101 inline const Aws::String& GetSummary() const { return m_summary; }
102 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
103 template <typename SummaryT = Aws::String>
104 void SetSummary(SummaryT&& value) {
105 m_summaryHasBeenSet = true;
106 m_summary = std::forward<SummaryT>(value);
107 }
108 template <typename SummaryT = Aws::String>
110 SetSummary(std::forward<SummaryT>(value));
111 return *this;
112 }
114
116
119 inline double GetScore() const { return m_score; }
120 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
121 inline void SetScore(double value) {
122 m_scoreHasBeenSet = true;
123 m_score = value;
124 }
126 SetScore(value);
127 return *this;
128 }
130
132
135 inline const Aws::Map<Aws::String, AnyValue>& GetProperties() const { return m_properties; }
136 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
137 template <typename PropertiesT = Aws::Map<Aws::String, AnyValue>>
138 void SetProperties(PropertiesT&& value) {
139 m_propertiesHasBeenSet = true;
140 m_properties = std::forward<PropertiesT>(value);
141 }
142 template <typename PropertiesT = Aws::Map<Aws::String, AnyValue>>
144 SetProperties(std::forward<PropertiesT>(value));
145 return *this;
146 }
147 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = AnyValue>
148 SearchAgentContextResultEntity& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
149 m_propertiesHasBeenSet = true;
150 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
151 return *this;
152 }
154 private:
155 Aws::String m_nodeId;
156
157 EdgeIdentifier m_edgeId;
158
159 EntityType m_entityType{EntityType::NOT_SET};
160
161 Aws::String m_summary;
162
163 double m_score{0.0};
164
166 bool m_nodeIdHasBeenSet = false;
167 bool m_edgeIdHasBeenSet = false;
168 bool m_entityTypeHasBeenSet = false;
169 bool m_summaryHasBeenSet = false;
170 bool m_scoreHasBeenSet = false;
171 bool m_propertiesHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace Context
176} // namespace Aws
SearchAgentContextResultEntity & WithEdgeId(EdgeIdT &&value)
SearchAgentContextResultEntity & WithSummary(SummaryT &&value)
SearchAgentContextResultEntity & WithScore(double value)
AWS_CONTEXT_API SearchAgentContextResultEntity()=default
AWS_CONTEXT_API SearchAgentContextResultEntity(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
SearchAgentContextResultEntity & WithEntityType(EntityType value)
SearchAgentContextResultEntity & WithNodeId(NodeIdT &&value)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
SearchAgentContextResultEntity & WithProperties(PropertiesT &&value)
SearchAgentContextResultEntity & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
AWS_CONTEXT_API SearchAgentContextResultEntity & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Map< Aws::String, AnyValue > & GetProperties() const
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