AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
Entity.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/EdgeIdentifier.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace Context {
21namespace Model {
22
29class Entity {
30 public:
31 AWS_CONTEXT_API Entity() = default;
32 AWS_CONTEXT_API Entity(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CONTEXT_API Entity& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
41 inline const Aws::String& GetNodeId() const { return m_nodeId; }
42 inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
43 template <typename NodeIdT = Aws::String>
44 void SetNodeId(NodeIdT&& value) {
45 m_nodeIdHasBeenSet = true;
46 m_nodeId = std::forward<NodeIdT>(value);
47 }
48 template <typename NodeIdT = Aws::String>
49 Entity& WithNodeId(NodeIdT&& value) {
50 SetNodeId(std::forward<NodeIdT>(value));
51 return *this;
52 }
54
56
60 inline const EdgeIdentifier& GetEdgeId() const { return m_edgeId; }
61 inline bool EdgeIdHasBeenSet() const { return m_edgeIdHasBeenSet; }
62 template <typename EdgeIdT = EdgeIdentifier>
63 void SetEdgeId(EdgeIdT&& value) {
64 m_edgeIdHasBeenSet = true;
65 m_edgeId = std::forward<EdgeIdT>(value);
66 }
67 template <typename EdgeIdT = EdgeIdentifier>
68 Entity& WithEdgeId(EdgeIdT&& value) {
69 SetEdgeId(std::forward<EdgeIdT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_nodeId;
75
76 EdgeIdentifier m_edgeId;
77 bool m_nodeIdHasBeenSet = false;
78 bool m_edgeIdHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace Context
83} // namespace Aws
AWS_CONTEXT_API Entity & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool EdgeIdHasBeenSet() const
Definition Entity.h:61
AWS_CONTEXT_API Entity(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetNodeId() const
Definition Entity.h:41
const EdgeIdentifier & GetEdgeId() const
Definition Entity.h:60
void SetNodeId(NodeIdT &&value)
Definition Entity.h:44
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
Entity & WithNodeId(NodeIdT &&value)
Definition Entity.h:49
Entity & WithEdgeId(EdgeIdT &&value)
Definition Entity.h:68
AWS_CONTEXT_API Entity()=default
void SetEdgeId(EdgeIdT &&value)
Definition Entity.h:63
bool NodeIdHasBeenSet() const
Definition Entity.h:42
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String