AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
NodeStructure.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/neptune-graph/NeptuneGraph_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace NeptuneGraph {
21namespace Model {
22
29 public:
30 AWS_NEPTUNEGRAPH_API NodeStructure() = default;
31 AWS_NEPTUNEGRAPH_API NodeStructure(Aws::Utils::Json::JsonView jsonValue);
32 AWS_NEPTUNEGRAPH_API NodeStructure& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_NEPTUNEGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline long long GetCount() const { return m_count; }
40 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
41 inline void SetCount(long long value) {
42 m_countHasBeenSet = true;
43 m_count = value;
44 }
45 inline NodeStructure& WithCount(long long value) {
46 SetCount(value);
47 return *this;
48 }
50
52
55 inline const Aws::Vector<Aws::String>& GetNodeProperties() const { return m_nodeProperties; }
56 inline bool NodePropertiesHasBeenSet() const { return m_nodePropertiesHasBeenSet; }
57 template <typename NodePropertiesT = Aws::Vector<Aws::String>>
58 void SetNodeProperties(NodePropertiesT&& value) {
59 m_nodePropertiesHasBeenSet = true;
60 m_nodeProperties = std::forward<NodePropertiesT>(value);
61 }
62 template <typename NodePropertiesT = Aws::Vector<Aws::String>>
63 NodeStructure& WithNodeProperties(NodePropertiesT&& value) {
64 SetNodeProperties(std::forward<NodePropertiesT>(value));
65 return *this;
66 }
67 template <typename NodePropertiesT = Aws::String>
68 NodeStructure& AddNodeProperties(NodePropertiesT&& value) {
69 m_nodePropertiesHasBeenSet = true;
70 m_nodeProperties.emplace_back(std::forward<NodePropertiesT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<Aws::String>& GetDistinctOutgoingEdgeLabels() const { return m_distinctOutgoingEdgeLabels; }
80 inline bool DistinctOutgoingEdgeLabelsHasBeenSet() const { return m_distinctOutgoingEdgeLabelsHasBeenSet; }
81 template <typename DistinctOutgoingEdgeLabelsT = Aws::Vector<Aws::String>>
82 void SetDistinctOutgoingEdgeLabels(DistinctOutgoingEdgeLabelsT&& value) {
83 m_distinctOutgoingEdgeLabelsHasBeenSet = true;
84 m_distinctOutgoingEdgeLabels = std::forward<DistinctOutgoingEdgeLabelsT>(value);
85 }
86 template <typename DistinctOutgoingEdgeLabelsT = Aws::Vector<Aws::String>>
87 NodeStructure& WithDistinctOutgoingEdgeLabels(DistinctOutgoingEdgeLabelsT&& value) {
88 SetDistinctOutgoingEdgeLabels(std::forward<DistinctOutgoingEdgeLabelsT>(value));
89 return *this;
90 }
91 template <typename DistinctOutgoingEdgeLabelsT = Aws::String>
92 NodeStructure& AddDistinctOutgoingEdgeLabels(DistinctOutgoingEdgeLabelsT&& value) {
93 m_distinctOutgoingEdgeLabelsHasBeenSet = true;
94 m_distinctOutgoingEdgeLabels.emplace_back(std::forward<DistinctOutgoingEdgeLabelsT>(value));
95 return *this;
96 }
98 private:
99 long long m_count{0};
100
101 Aws::Vector<Aws::String> m_nodeProperties;
102
103 Aws::Vector<Aws::String> m_distinctOutgoingEdgeLabels;
104 bool m_countHasBeenSet = false;
105 bool m_nodePropertiesHasBeenSet = false;
106 bool m_distinctOutgoingEdgeLabelsHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace NeptuneGraph
111} // namespace Aws
NodeStructure & AddNodeProperties(NodePropertiesT &&value)
NodeStructure & AddDistinctOutgoingEdgeLabels(DistinctOutgoingEdgeLabelsT &&value)
void SetNodeProperties(NodePropertiesT &&value)
const Aws::Vector< Aws::String > & GetDistinctOutgoingEdgeLabels() const
AWS_NEPTUNEGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const
NodeStructure & WithCount(long long value)
NodeStructure & WithDistinctOutgoingEdgeLabels(DistinctOutgoingEdgeLabelsT &&value)
AWS_NEPTUNEGRAPH_API NodeStructure & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NEPTUNEGRAPH_API NodeStructure()=default
AWS_NEPTUNEGRAPH_API NodeStructure(Aws::Utils::Json::JsonView jsonValue)
void SetDistinctOutgoingEdgeLabels(DistinctOutgoingEdgeLabelsT &&value)
NodeStructure & WithNodeProperties(NodePropertiesT &&value)
const Aws::Vector< Aws::String > & GetNodeProperties() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue