AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
Node.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dax/DAX_EXPORTS.h>
10#include <aws/dax/model/Endpoint.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DAX {
22namespace Model {
23
29class Node {
30 public:
31 AWS_DAX_API Node() = default;
32 AWS_DAX_API Node(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DAX_API Node& operator=(Aws::Utils::Json::JsonView jsonValue);
35
37
40 inline const Aws::String& GetNodeId() const { return m_nodeId; }
41 inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
42 template <typename NodeIdT = Aws::String>
43 void SetNodeId(NodeIdT&& value) {
44 m_nodeIdHasBeenSet = true;
45 m_nodeId = std::forward<NodeIdT>(value);
46 }
47 template <typename NodeIdT = Aws::String>
48 Node& WithNodeId(NodeIdT&& value) {
49 SetNodeId(std::forward<NodeIdT>(value));
50 return *this;
51 }
53
55
61 inline const Endpoint& GetEndpoint() const { return m_endpoint; }
62 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
63 template <typename EndpointT = Endpoint>
64 void SetEndpoint(EndpointT&& value) {
65 m_endpointHasBeenSet = true;
66 m_endpoint = std::forward<EndpointT>(value);
67 }
68 template <typename EndpointT = Endpoint>
69 Node& WithEndpoint(EndpointT&& value) {
70 SetEndpoint(std::forward<EndpointT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Utils::DateTime& GetNodeCreateTime() const { return m_nodeCreateTime; }
80 inline bool NodeCreateTimeHasBeenSet() const { return m_nodeCreateTimeHasBeenSet; }
81 template <typename NodeCreateTimeT = Aws::Utils::DateTime>
82 void SetNodeCreateTime(NodeCreateTimeT&& value) {
83 m_nodeCreateTimeHasBeenSet = true;
84 m_nodeCreateTime = std::forward<NodeCreateTimeT>(value);
85 }
86 template <typename NodeCreateTimeT = Aws::Utils::DateTime>
87 Node& WithNodeCreateTime(NodeCreateTimeT&& value) {
88 SetNodeCreateTime(std::forward<NodeCreateTimeT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
98 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
99 template <typename AvailabilityZoneT = Aws::String>
100 void SetAvailabilityZone(AvailabilityZoneT&& value) {
101 m_availabilityZoneHasBeenSet = true;
102 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
103 }
104 template <typename AvailabilityZoneT = Aws::String>
105 Node& WithAvailabilityZone(AvailabilityZoneT&& value) {
106 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetNodeStatus() const { return m_nodeStatus; }
116 inline bool NodeStatusHasBeenSet() const { return m_nodeStatusHasBeenSet; }
117 template <typename NodeStatusT = Aws::String>
118 void SetNodeStatus(NodeStatusT&& value) {
119 m_nodeStatusHasBeenSet = true;
120 m_nodeStatus = std::forward<NodeStatusT>(value);
121 }
122 template <typename NodeStatusT = Aws::String>
123 Node& WithNodeStatus(NodeStatusT&& value) {
124 SetNodeStatus(std::forward<NodeStatusT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::String& GetParameterGroupStatus() const { return m_parameterGroupStatus; }
135 inline bool ParameterGroupStatusHasBeenSet() const { return m_parameterGroupStatusHasBeenSet; }
136 template <typename ParameterGroupStatusT = Aws::String>
137 void SetParameterGroupStatus(ParameterGroupStatusT&& value) {
138 m_parameterGroupStatusHasBeenSet = true;
139 m_parameterGroupStatus = std::forward<ParameterGroupStatusT>(value);
140 }
141 template <typename ParameterGroupStatusT = Aws::String>
142 Node& WithParameterGroupStatus(ParameterGroupStatusT&& value) {
143 SetParameterGroupStatus(std::forward<ParameterGroupStatusT>(value));
144 return *this;
145 }
147 private:
148 Aws::String m_nodeId;
149
150 Endpoint m_endpoint;
151
152 Aws::Utils::DateTime m_nodeCreateTime{};
153
154 Aws::String m_availabilityZone;
155
156 Aws::String m_nodeStatus;
157
158 Aws::String m_parameterGroupStatus;
159 bool m_nodeIdHasBeenSet = false;
160 bool m_endpointHasBeenSet = false;
161 bool m_nodeCreateTimeHasBeenSet = false;
162 bool m_availabilityZoneHasBeenSet = false;
163 bool m_nodeStatusHasBeenSet = false;
164 bool m_parameterGroupStatusHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace DAX
169} // namespace Aws
void SetNodeCreateTime(NodeCreateTimeT &&value)
Definition Node.h:82
const Aws::String & GetAvailabilityZone() const
Definition Node.h:97
void SetNodeStatus(NodeStatusT &&value)
Definition Node.h:118
AWS_DAX_API Node()=default
AWS_DAX_API Node & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetParameterGroupStatus() const
Definition Node.h:134
AWS_DAX_API Node(Aws::Utils::Json::JsonView jsonValue)
bool AvailabilityZoneHasBeenSet() const
Definition Node.h:98
AWS_DAX_API Aws::Utils::Json::JsonValue Jsonize() const
bool NodeStatusHasBeenSet() const
Definition Node.h:116
Node & WithParameterGroupStatus(ParameterGroupStatusT &&value)
Definition Node.h:142
void SetNodeId(NodeIdT &&value)
Definition Node.h:43
Node & WithEndpoint(EndpointT &&value)
Definition Node.h:69
Node & WithNodeId(NodeIdT &&value)
Definition Node.h:48
void SetParameterGroupStatus(ParameterGroupStatusT &&value)
Definition Node.h:137
Node & WithNodeStatus(NodeStatusT &&value)
Definition Node.h:123
const Aws::Utils::DateTime & GetNodeCreateTime() const
Definition Node.h:79
Node & WithNodeCreateTime(NodeCreateTimeT &&value)
Definition Node.h:87
void SetEndpoint(EndpointT &&value)
Definition Node.h:64
const Endpoint & GetEndpoint() const
Definition Node.h:61
const Aws::String & GetNodeId() const
Definition Node.h:40
bool EndpointHasBeenSet() const
Definition Node.h:62
bool ParameterGroupStatusHasBeenSet() const
Definition Node.h:135
bool NodeIdHasBeenSet() const
Definition Node.h:41
const Aws::String & GetNodeStatus() const
Definition Node.h:115
Node & WithAvailabilityZone(AvailabilityZoneT &&value)
Definition Node.h:105
void SetAvailabilityZone(AvailabilityZoneT &&value)
Definition Node.h:100
bool NodeCreateTimeHasBeenSet() const
Definition Node.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue