AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
TraversalStrategy.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/TraversalDirection.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/crt/cbor/Cbor.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace Context {
22namespace Model {
23
31 public:
32 AWS_CONTEXT_API TraversalStrategy() = default;
33 AWS_CONTEXT_API TraversalStrategy(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CONTEXT_API TraversalStrategy& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline const Aws::Vector<Aws::String>& GetEdgeTypes() const { return m_edgeTypes; }
42 inline bool EdgeTypesHasBeenSet() const { return m_edgeTypesHasBeenSet; }
43 template <typename EdgeTypesT = Aws::Vector<Aws::String>>
44 void SetEdgeTypes(EdgeTypesT&& value) {
45 m_edgeTypesHasBeenSet = true;
46 m_edgeTypes = std::forward<EdgeTypesT>(value);
47 }
48 template <typename EdgeTypesT = Aws::Vector<Aws::String>>
49 TraversalStrategy& WithEdgeTypes(EdgeTypesT&& value) {
50 SetEdgeTypes(std::forward<EdgeTypesT>(value));
51 return *this;
52 }
53 template <typename EdgeTypesT = Aws::String>
54 TraversalStrategy& AddEdgeTypes(EdgeTypesT&& value) {
55 m_edgeTypesHasBeenSet = true;
56 m_edgeTypes.emplace_back(std::forward<EdgeTypesT>(value));
57 return *this;
58 }
60
62
69 inline TraversalDirection GetDirection() const { return m_direction; }
70 inline bool DirectionHasBeenSet() const { return m_directionHasBeenSet; }
71 inline void SetDirection(TraversalDirection value) {
72 m_directionHasBeenSet = true;
73 m_direction = value;
74 }
76 SetDirection(value);
77 return *this;
78 }
80
82
85 inline int64_t GetMaxDepth() const { return m_maxDepth; }
86 inline bool MaxDepthHasBeenSet() const { return m_maxDepthHasBeenSet; }
87 inline void SetMaxDepth(int64_t value) {
88 m_maxDepthHasBeenSet = true;
89 m_maxDepth = value;
90 }
91 inline TraversalStrategy& WithMaxDepth(int64_t value) {
92 SetMaxDepth(value);
93 return *this;
94 }
96 private:
97 Aws::Vector<Aws::String> m_edgeTypes;
98
100
101 int64_t m_maxDepth{0};
102 bool m_edgeTypesHasBeenSet = false;
103 bool m_directionHasBeenSet = false;
104 bool m_maxDepthHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace Context
109} // namespace Aws
TraversalDirection GetDirection() const
TraversalStrategy & AddEdgeTypes(EdgeTypesT &&value)
AWS_CONTEXT_API TraversalStrategy(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
TraversalStrategy & WithDirection(TraversalDirection value)
const Aws::Vector< Aws::String > & GetEdgeTypes() const
TraversalStrategy & WithEdgeTypes(EdgeTypesT &&value)
AWS_CONTEXT_API TraversalStrategy()=default
TraversalStrategy & WithMaxDepth(int64_t value)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetDirection(TraversalDirection value)
AWS_CONTEXT_API TraversalStrategy & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::vector< T, Aws::Allocator< T > > Vector