AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
PathEdge.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/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/crt/cbor/Cbor.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace Context {
23namespace Model {
24
31class PathEdge {
32 public:
33 AWS_CONTEXT_API PathEdge() = default;
34 AWS_CONTEXT_API PathEdge(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CONTEXT_API PathEdge& 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 EdgeIdentifier& GetEdgeId() const { return m_edgeId; }
44 inline bool EdgeIdHasBeenSet() const { return m_edgeIdHasBeenSet; }
45 template <typename EdgeIdT = EdgeIdentifier>
46 void SetEdgeId(EdgeIdT&& value) {
47 m_edgeIdHasBeenSet = true;
48 m_edgeId = std::forward<EdgeIdT>(value);
49 }
50 template <typename EdgeIdT = EdgeIdentifier>
51 PathEdge& WithEdgeId(EdgeIdT&& value) {
52 SetEdgeId(std::forward<EdgeIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Map<Aws::String, AnyValue>& GetProperties() const { return m_properties; }
62 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
63 template <typename PropertiesT = Aws::Map<Aws::String, AnyValue>>
64 void SetProperties(PropertiesT&& value) {
65 m_propertiesHasBeenSet = true;
66 m_properties = std::forward<PropertiesT>(value);
67 }
68 template <typename PropertiesT = Aws::Map<Aws::String, AnyValue>>
69 PathEdge& WithProperties(PropertiesT&& value) {
70 SetProperties(std::forward<PropertiesT>(value));
71 return *this;
72 }
73 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = AnyValue>
74 PathEdge& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
75 m_propertiesHasBeenSet = true;
76 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
77 return *this;
78 }
80 private:
81 EdgeIdentifier m_edgeId;
82
84 bool m_edgeIdHasBeenSet = false;
85 bool m_propertiesHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace Context
90} // namespace Aws
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::Map< Aws::String, AnyValue > & GetProperties() const
Definition PathEdge.h:61
bool EdgeIdHasBeenSet() const
Definition PathEdge.h:44
PathEdge & WithProperties(PropertiesT &&value)
Definition PathEdge.h:69
void SetProperties(PropertiesT &&value)
Definition PathEdge.h:64
bool PropertiesHasBeenSet() const
Definition PathEdge.h:62
PathEdge & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
Definition PathEdge.h:74
const EdgeIdentifier & GetEdgeId() const
Definition PathEdge.h:43
AWS_CONTEXT_API PathEdge()=default
AWS_CONTEXT_API PathEdge & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CONTEXT_API PathEdge(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetEdgeId(EdgeIdT &&value)
Definition PathEdge.h:46
PathEdge & WithEdgeId(EdgeIdT &&value)
Definition PathEdge.h:51
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map