AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
NeighborNode.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/AnyValue.h>
9#include <aws/context/model/PathEdge.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.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
34 public:
35 AWS_CONTEXT_API NeighborNode() = default;
36 AWS_CONTEXT_API NeighborNode(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_CONTEXT_API NeighborNode& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
39
41
44 inline const Aws::String& GetNodeId() const { return m_nodeId; }
45 inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
46 template <typename NodeIdT = Aws::String>
47 void SetNodeId(NodeIdT&& value) {
48 m_nodeIdHasBeenSet = true;
49 m_nodeId = std::forward<NodeIdT>(value);
50 }
51 template <typename NodeIdT = Aws::String>
52 NeighborNode& WithNodeId(NodeIdT&& value) {
53 SetNodeId(std::forward<NodeIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Map<Aws::String, AnyValue>& GetProperties() const { return m_properties; }
63 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
64 template <typename PropertiesT = Aws::Map<Aws::String, AnyValue>>
65 void SetProperties(PropertiesT&& value) {
66 m_propertiesHasBeenSet = true;
67 m_properties = std::forward<PropertiesT>(value);
68 }
69 template <typename PropertiesT = Aws::Map<Aws::String, AnyValue>>
70 NeighborNode& WithProperties(PropertiesT&& value) {
71 SetProperties(std::forward<PropertiesT>(value));
72 return *this;
73 }
74 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = AnyValue>
75 NeighborNode& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
76 m_propertiesHasBeenSet = true;
77 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
78 return *this;
79 }
81
83
87 inline int64_t GetDepth() const { return m_depth; }
88 inline bool DepthHasBeenSet() const { return m_depthHasBeenSet; }
89 inline void SetDepth(int64_t value) {
90 m_depthHasBeenSet = true;
91 m_depth = value;
92 }
93 inline NeighborNode& WithDepth(int64_t value) {
94 SetDepth(value);
95 return *this;
96 }
98
100
104 inline const Aws::Vector<PathEdge>& GetPathEdges() const { return m_pathEdges; }
105 inline bool PathEdgesHasBeenSet() const { return m_pathEdgesHasBeenSet; }
106 template <typename PathEdgesT = Aws::Vector<PathEdge>>
107 void SetPathEdges(PathEdgesT&& value) {
108 m_pathEdgesHasBeenSet = true;
109 m_pathEdges = std::forward<PathEdgesT>(value);
110 }
111 template <typename PathEdgesT = Aws::Vector<PathEdge>>
112 NeighborNode& WithPathEdges(PathEdgesT&& value) {
113 SetPathEdges(std::forward<PathEdgesT>(value));
114 return *this;
115 }
116 template <typename PathEdgesT = PathEdge>
117 NeighborNode& AddPathEdges(PathEdgesT&& value) {
118 m_pathEdgesHasBeenSet = true;
119 m_pathEdges.emplace_back(std::forward<PathEdgesT>(value));
120 return *this;
121 }
123 private:
124 Aws::String m_nodeId;
125
127
128 int64_t m_depth{0};
129
130 Aws::Vector<PathEdge> m_pathEdges;
131 bool m_nodeIdHasBeenSet = false;
132 bool m_propertiesHasBeenSet = false;
133 bool m_depthHasBeenSet = false;
134 bool m_pathEdgesHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace Context
139} // namespace Aws
NeighborNode & AddPathEdges(PathEdgesT &&value)
void SetNodeId(NodeIdT &&value)
AWS_CONTEXT_API NeighborNode(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Vector< PathEdge > & GetPathEdges() const
NeighborNode & WithNodeId(NodeIdT &&value)
NeighborNode & WithProperties(PropertiesT &&value)
void SetPathEdges(PathEdgesT &&value)
AWS_CONTEXT_API NeighborNode()=default
void SetProperties(PropertiesT &&value)
AWS_CONTEXT_API NeighborNode & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
NeighborNode & WithPathEdges(PathEdgesT &&value)
NeighborNode & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
const Aws::String & GetNodeId() const
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
NeighborNode & WithDepth(int64_t value)
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
std::vector< T, Aws::Allocator< T > > Vector