AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Node.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ApplicationSignals {
21namespace Model {
22
30class Node {
31 public:
32 AWS_APPLICATIONSIGNALS_API Node() = default;
33 AWS_APPLICATIONSIGNALS_API Node(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPLICATIONSIGNALS_API Node& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Map<Aws::String, Aws::String>& GetKeyAttributes() const { return m_keyAttributes; }
43 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
44 template <typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
45 void SetKeyAttributes(KeyAttributesT&& value) {
46 m_keyAttributesHasBeenSet = true;
47 m_keyAttributes = std::forward<KeyAttributesT>(value);
48 }
49 template <typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
50 Node& WithKeyAttributes(KeyAttributesT&& value) {
51 SetKeyAttributes(std::forward<KeyAttributesT>(value));
52 return *this;
53 }
54 template <typename KeyAttributesKeyT = Aws::String, typename KeyAttributesValueT = Aws::String>
55 Node& AddKeyAttributes(KeyAttributesKeyT&& key, KeyAttributesValueT&& value) {
56 m_keyAttributesHasBeenSet = true;
57 m_keyAttributes.emplace(std::forward<KeyAttributesKeyT>(key), std::forward<KeyAttributesValueT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetName() const { return m_name; }
67 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
68 template <typename NameT = Aws::String>
69 void SetName(NameT&& value) {
70 m_nameHasBeenSet = true;
71 m_name = std::forward<NameT>(value);
72 }
73 template <typename NameT = Aws::String>
74 Node& WithName(NameT&& value) {
75 SetName(std::forward<NameT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetNodeId() const { return m_nodeId; }
85 inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
86 template <typename NodeIdT = Aws::String>
87 void SetNodeId(NodeIdT&& value) {
88 m_nodeIdHasBeenSet = true;
89 m_nodeId = std::forward<NodeIdT>(value);
90 }
91 template <typename NodeIdT = Aws::String>
92 Node& WithNodeId(NodeIdT&& value) {
93 SetNodeId(std::forward<NodeIdT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetOperation() const { return m_operation; }
103 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
104 template <typename OperationT = Aws::String>
105 void SetOperation(OperationT&& value) {
106 m_operationHasBeenSet = true;
107 m_operation = std::forward<OperationT>(value);
108 }
109 template <typename OperationT = Aws::String>
110 Node& WithOperation(OperationT&& value) {
111 SetOperation(std::forward<OperationT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::String& GetType() const { return m_type; }
122 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
123 template <typename TypeT = Aws::String>
124 void SetType(TypeT&& value) {
125 m_typeHasBeenSet = true;
126 m_type = std::forward<TypeT>(value);
127 }
128 template <typename TypeT = Aws::String>
129 Node& WithType(TypeT&& value) {
130 SetType(std::forward<TypeT>(value));
131 return *this;
132 }
134
136
139 inline double GetDuration() const { return m_duration; }
140 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
141 inline void SetDuration(double value) {
142 m_durationHasBeenSet = true;
143 m_duration = value;
144 }
145 inline Node& WithDuration(double value) {
146 SetDuration(value);
147 return *this;
148 }
150
152
155 inline const Aws::String& GetStatus() const { return m_status; }
156 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
157 template <typename StatusT = Aws::String>
158 void SetStatus(StatusT&& value) {
159 m_statusHasBeenSet = true;
160 m_status = std::forward<StatusT>(value);
161 }
162 template <typename StatusT = Aws::String>
163 Node& WithStatus(StatusT&& value) {
164 SetStatus(std::forward<StatusT>(value));
165 return *this;
166 }
168 private:
170
171 Aws::String m_name;
172
173 Aws::String m_nodeId;
174
175 Aws::String m_operation;
176
177 Aws::String m_type;
178
179 double m_duration{0.0};
180
181 Aws::String m_status;
182 bool m_keyAttributesHasBeenSet = false;
183 bool m_nameHasBeenSet = false;
184 bool m_nodeIdHasBeenSet = false;
185 bool m_operationHasBeenSet = false;
186 bool m_typeHasBeenSet = false;
187 bool m_durationHasBeenSet = false;
188 bool m_statusHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace ApplicationSignals
193} // namespace Aws
const Aws::String & GetType() const
Definition Node.h:121
AWS_APPLICATIONSIGNALS_API Node(Aws::Utils::Json::JsonView jsonValue)
Node & WithOperation(OperationT &&value)
Definition Node.h:110
const Aws::String & GetName() const
Definition Node.h:66
void SetNodeId(NodeIdT &&value)
Definition Node.h:87
void SetStatus(StatusT &&value)
Definition Node.h:158
AWS_APPLICATIONSIGNALS_API Node()=default
const Aws::String & GetOperation() const
Definition Node.h:102
Node & AddKeyAttributes(KeyAttributesKeyT &&key, KeyAttributesValueT &&value)
Definition Node.h:55
Node & WithNodeId(NodeIdT &&value)
Definition Node.h:92
Node & WithKeyAttributes(KeyAttributesT &&value)
Definition Node.h:50
Node & WithName(NameT &&value)
Definition Node.h:74
const Aws::String & GetStatus() const
Definition Node.h:155
Node & WithStatus(StatusT &&value)
Definition Node.h:163
void SetType(TypeT &&value)
Definition Node.h:124
const Aws::String & GetNodeId() const
Definition Node.h:84
Node & WithType(TypeT &&value)
Definition Node.h:129
void SetOperation(OperationT &&value)
Definition Node.h:105
void SetDuration(double value)
Definition Node.h:141
void SetKeyAttributes(KeyAttributesT &&value)
Definition Node.h:45
bool KeyAttributesHasBeenSet() const
Definition Node.h:43
const Aws::Map< Aws::String, Aws::String > & GetKeyAttributes() const
Definition Node.h:42
AWS_APPLICATIONSIGNALS_API Node & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
Definition Node.h:69
Node & WithDuration(double value)
Definition Node.h:145
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() 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
Aws::Utils::Json::JsonValue JsonValue