AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Cluster.h
1
6#pragma once
7#include <aws/dax/DAX_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dax/model/Endpoint.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/dax/model/NotificationConfiguration.h>
12#include <aws/dax/model/ParameterGroupStatus.h>
13#include <aws/dax/model/SSEDescription.h>
14#include <aws/dax/model/ClusterEndpointEncryptionType.h>
15#include <aws/dax/model/Node.h>
16#include <aws/dax/model/SecurityGroupMembership.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace DAX
30{
31namespace Model
32{
33
40 class Cluster
41 {
42 public:
43 AWS_DAX_API Cluster() = default;
44 AWS_DAX_API Cluster(Aws::Utils::Json::JsonView jsonValue);
47
48
50
53 inline const Aws::String& GetClusterName() const { return m_clusterName; }
54 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
55 template<typename ClusterNameT = Aws::String>
56 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
57 template<typename ClusterNameT = Aws::String>
58 Cluster& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
60
62
65 inline const Aws::String& GetDescription() const { return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 template<typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
69 template<typename DescriptionT = Aws::String>
70 Cluster& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
72
74
77 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
78 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
79 template<typename ClusterArnT = Aws::String>
80 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
81 template<typename ClusterArnT = Aws::String>
82 Cluster& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
84
86
89 inline int GetTotalNodes() const { return m_totalNodes; }
90 inline bool TotalNodesHasBeenSet() const { return m_totalNodesHasBeenSet; }
91 inline void SetTotalNodes(int value) { m_totalNodesHasBeenSet = true; m_totalNodes = value; }
92 inline Cluster& WithTotalNodes(int value) { SetTotalNodes(value); return *this;}
94
96
100 inline int GetActiveNodes() const { return m_activeNodes; }
101 inline bool ActiveNodesHasBeenSet() const { return m_activeNodesHasBeenSet; }
102 inline void SetActiveNodes(int value) { m_activeNodesHasBeenSet = true; m_activeNodes = value; }
103 inline Cluster& WithActiveNodes(int value) { SetActiveNodes(value); return *this;}
105
107
111 inline const Aws::String& GetNodeType() const { return m_nodeType; }
112 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
113 template<typename NodeTypeT = Aws::String>
114 void SetNodeType(NodeTypeT&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = std::forward<NodeTypeT>(value); }
115 template<typename NodeTypeT = Aws::String>
116 Cluster& WithNodeType(NodeTypeT&& value) { SetNodeType(std::forward<NodeTypeT>(value)); return *this;}
118
120
123 inline const Aws::String& GetStatus() const { return m_status; }
124 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
125 template<typename StatusT = Aws::String>
126 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
127 template<typename StatusT = Aws::String>
128 Cluster& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
130
132
137 inline const Endpoint& GetClusterDiscoveryEndpoint() const { return m_clusterDiscoveryEndpoint; }
138 inline bool ClusterDiscoveryEndpointHasBeenSet() const { return m_clusterDiscoveryEndpointHasBeenSet; }
139 template<typename ClusterDiscoveryEndpointT = Endpoint>
140 void SetClusterDiscoveryEndpoint(ClusterDiscoveryEndpointT&& value) { m_clusterDiscoveryEndpointHasBeenSet = true; m_clusterDiscoveryEndpoint = std::forward<ClusterDiscoveryEndpointT>(value); }
141 template<typename ClusterDiscoveryEndpointT = Endpoint>
142 Cluster& WithClusterDiscoveryEndpoint(ClusterDiscoveryEndpointT&& value) { SetClusterDiscoveryEndpoint(std::forward<ClusterDiscoveryEndpointT>(value)); return *this;}
144
146
149 inline const Aws::Vector<Aws::String>& GetNodeIdsToRemove() const { return m_nodeIdsToRemove; }
150 inline bool NodeIdsToRemoveHasBeenSet() const { return m_nodeIdsToRemoveHasBeenSet; }
151 template<typename NodeIdsToRemoveT = Aws::Vector<Aws::String>>
152 void SetNodeIdsToRemove(NodeIdsToRemoveT&& value) { m_nodeIdsToRemoveHasBeenSet = true; m_nodeIdsToRemove = std::forward<NodeIdsToRemoveT>(value); }
153 template<typename NodeIdsToRemoveT = Aws::Vector<Aws::String>>
154 Cluster& WithNodeIdsToRemove(NodeIdsToRemoveT&& value) { SetNodeIdsToRemove(std::forward<NodeIdsToRemoveT>(value)); return *this;}
155 template<typename NodeIdsToRemoveT = Aws::String>
156 Cluster& AddNodeIdsToRemove(NodeIdsToRemoveT&& value) { m_nodeIdsToRemoveHasBeenSet = true; m_nodeIdsToRemove.emplace_back(std::forward<NodeIdsToRemoveT>(value)); return *this; }
158
160
163 inline const Aws::Vector<Node>& GetNodes() const { return m_nodes; }
164 inline bool NodesHasBeenSet() const { return m_nodesHasBeenSet; }
165 template<typename NodesT = Aws::Vector<Node>>
166 void SetNodes(NodesT&& value) { m_nodesHasBeenSet = true; m_nodes = std::forward<NodesT>(value); }
167 template<typename NodesT = Aws::Vector<Node>>
168 Cluster& WithNodes(NodesT&& value) { SetNodes(std::forward<NodesT>(value)); return *this;}
169 template<typename NodesT = Node>
170 Cluster& AddNodes(NodesT&& value) { m_nodesHasBeenSet = true; m_nodes.emplace_back(std::forward<NodesT>(value)); return *this; }
172
174
180 inline const Aws::String& GetPreferredMaintenanceWindow() const { return m_preferredMaintenanceWindow; }
181 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
182 template<typename PreferredMaintenanceWindowT = Aws::String>
183 void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::forward<PreferredMaintenanceWindowT>(value); }
184 template<typename PreferredMaintenanceWindowT = Aws::String>
185 Cluster& WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) { SetPreferredMaintenanceWindow(std::forward<PreferredMaintenanceWindowT>(value)); return *this;}
187
189
194 inline const NotificationConfiguration& GetNotificationConfiguration() const { return m_notificationConfiguration; }
195 inline bool NotificationConfigurationHasBeenSet() const { return m_notificationConfigurationHasBeenSet; }
196 template<typename NotificationConfigurationT = NotificationConfiguration>
197 void SetNotificationConfiguration(NotificationConfigurationT&& value) { m_notificationConfigurationHasBeenSet = true; m_notificationConfiguration = std::forward<NotificationConfigurationT>(value); }
198 template<typename NotificationConfigurationT = NotificationConfiguration>
199 Cluster& WithNotificationConfiguration(NotificationConfigurationT&& value) { SetNotificationConfiguration(std::forward<NotificationConfigurationT>(value)); return *this;}
201
203
206 inline const Aws::String& GetSubnetGroup() const { return m_subnetGroup; }
207 inline bool SubnetGroupHasBeenSet() const { return m_subnetGroupHasBeenSet; }
208 template<typename SubnetGroupT = Aws::String>
209 void SetSubnetGroup(SubnetGroupT&& value) { m_subnetGroupHasBeenSet = true; m_subnetGroup = std::forward<SubnetGroupT>(value); }
210 template<typename SubnetGroupT = Aws::String>
211 Cluster& WithSubnetGroup(SubnetGroupT&& value) { SetSubnetGroup(std::forward<SubnetGroupT>(value)); return *this;}
213
215
219 inline const Aws::Vector<SecurityGroupMembership>& GetSecurityGroups() const { return m_securityGroups; }
220 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
221 template<typename SecurityGroupsT = Aws::Vector<SecurityGroupMembership>>
222 void SetSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::forward<SecurityGroupsT>(value); }
223 template<typename SecurityGroupsT = Aws::Vector<SecurityGroupMembership>>
224 Cluster& WithSecurityGroups(SecurityGroupsT&& value) { SetSecurityGroups(std::forward<SecurityGroupsT>(value)); return *this;}
225 template<typename SecurityGroupsT = SecurityGroupMembership>
226 Cluster& AddSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value)); return *this; }
228
230
235 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
236 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
237 template<typename IamRoleArnT = Aws::String>
238 void SetIamRoleArn(IamRoleArnT&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::forward<IamRoleArnT>(value); }
239 template<typename IamRoleArnT = Aws::String>
240 Cluster& WithIamRoleArn(IamRoleArnT&& value) { SetIamRoleArn(std::forward<IamRoleArnT>(value)); return *this;}
242
244
247 inline const ParameterGroupStatus& GetParameterGroup() const { return m_parameterGroup; }
248 inline bool ParameterGroupHasBeenSet() const { return m_parameterGroupHasBeenSet; }
249 template<typename ParameterGroupT = ParameterGroupStatus>
250 void SetParameterGroup(ParameterGroupT&& value) { m_parameterGroupHasBeenSet = true; m_parameterGroup = std::forward<ParameterGroupT>(value); }
251 template<typename ParameterGroupT = ParameterGroupStatus>
252 Cluster& WithParameterGroup(ParameterGroupT&& value) { SetParameterGroup(std::forward<ParameterGroupT>(value)); return *this;}
254
256
260 inline const SSEDescription& GetSSEDescription() const { return m_sSEDescription; }
261 inline bool SSEDescriptionHasBeenSet() const { return m_sSEDescriptionHasBeenSet; }
262 template<typename SSEDescriptionT = SSEDescription>
263 void SetSSEDescription(SSEDescriptionT&& value) { m_sSEDescriptionHasBeenSet = true; m_sSEDescription = std::forward<SSEDescriptionT>(value); }
264 template<typename SSEDescriptionT = SSEDescription>
265 Cluster& WithSSEDescription(SSEDescriptionT&& value) { SetSSEDescription(std::forward<SSEDescriptionT>(value)); return *this;}
267
269
274 inline ClusterEndpointEncryptionType GetClusterEndpointEncryptionType() const { return m_clusterEndpointEncryptionType; }
275 inline bool ClusterEndpointEncryptionTypeHasBeenSet() const { return m_clusterEndpointEncryptionTypeHasBeenSet; }
276 inline void SetClusterEndpointEncryptionType(ClusterEndpointEncryptionType value) { m_clusterEndpointEncryptionTypeHasBeenSet = true; m_clusterEndpointEncryptionType = value; }
279 private:
280
281 Aws::String m_clusterName;
282 bool m_clusterNameHasBeenSet = false;
283
284 Aws::String m_description;
285 bool m_descriptionHasBeenSet = false;
286
287 Aws::String m_clusterArn;
288 bool m_clusterArnHasBeenSet = false;
289
290 int m_totalNodes{0};
291 bool m_totalNodesHasBeenSet = false;
292
293 int m_activeNodes{0};
294 bool m_activeNodesHasBeenSet = false;
295
296 Aws::String m_nodeType;
297 bool m_nodeTypeHasBeenSet = false;
298
299 Aws::String m_status;
300 bool m_statusHasBeenSet = false;
301
302 Endpoint m_clusterDiscoveryEndpoint;
303 bool m_clusterDiscoveryEndpointHasBeenSet = false;
304
305 Aws::Vector<Aws::String> m_nodeIdsToRemove;
306 bool m_nodeIdsToRemoveHasBeenSet = false;
307
308 Aws::Vector<Node> m_nodes;
309 bool m_nodesHasBeenSet = false;
310
311 Aws::String m_preferredMaintenanceWindow;
312 bool m_preferredMaintenanceWindowHasBeenSet = false;
313
314 NotificationConfiguration m_notificationConfiguration;
315 bool m_notificationConfigurationHasBeenSet = false;
316
317 Aws::String m_subnetGroup;
318 bool m_subnetGroupHasBeenSet = false;
319
321 bool m_securityGroupsHasBeenSet = false;
322
323 Aws::String m_iamRoleArn;
324 bool m_iamRoleArnHasBeenSet = false;
325
326 ParameterGroupStatus m_parameterGroup;
327 bool m_parameterGroupHasBeenSet = false;
328
329 SSEDescription m_sSEDescription;
330 bool m_sSEDescriptionHasBeenSet = false;
331
333 bool m_clusterEndpointEncryptionTypeHasBeenSet = false;
334 };
335
336} // namespace Model
337} // namespace DAX
338} // namespace Aws
bool PreferredMaintenanceWindowHasBeenSet() const
Definition Cluster.h:181
void SetDescription(DescriptionT &&value)
Definition Cluster.h:68
bool TotalNodesHasBeenSet() const
Definition Cluster.h:90
const Aws::String & GetPreferredMaintenanceWindow() const
Definition Cluster.h:180
void SetNotificationConfiguration(NotificationConfigurationT &&value)
Definition Cluster.h:197
const SSEDescription & GetSSEDescription() const
Definition Cluster.h:260
Cluster & WithClusterName(ClusterNameT &&value)
Definition Cluster.h:58
const NotificationConfiguration & GetNotificationConfiguration() const
Definition Cluster.h:194
Cluster & WithSecurityGroups(SecurityGroupsT &&value)
Definition Cluster.h:224
void SetSubnetGroup(SubnetGroupT &&value)
Definition Cluster.h:209
Cluster & AddNodeIdsToRemove(NodeIdsToRemoveT &&value)
Definition Cluster.h:156
const Aws::String & GetStatus() const
Definition Cluster.h:123
Cluster & WithNodes(NodesT &&value)
Definition Cluster.h:168
AWS_DAX_API Aws::Utils::Json::JsonValue Jsonize() const
Cluster & AddSecurityGroups(SecurityGroupsT &&value)
Definition Cluster.h:226
const Aws::String & GetClusterArn() const
Definition Cluster.h:77
void SetSSEDescription(SSEDescriptionT &&value)
Definition Cluster.h:263
const Aws::String & GetDescription() const
Definition Cluster.h:65
void SetClusterName(ClusterNameT &&value)
Definition Cluster.h:56
int GetTotalNodes() const
Definition Cluster.h:89
bool DescriptionHasBeenSet() const
Definition Cluster.h:66
AWS_DAX_API Cluster(Aws::Utils::Json::JsonView jsonValue)
void SetActiveNodes(int value)
Definition Cluster.h:102
bool NodeTypeHasBeenSet() const
Definition Cluster.h:112
AWS_DAX_API Cluster()=default
Cluster & WithParameterGroup(ParameterGroupT &&value)
Definition Cluster.h:252
Cluster & WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT &&value)
Definition Cluster.h:185
bool SecurityGroupsHasBeenSet() const
Definition Cluster.h:220
void SetClusterEndpointEncryptionType(ClusterEndpointEncryptionType value)
Definition Cluster.h:276
bool SubnetGroupHasBeenSet() const
Definition Cluster.h:207
Cluster & AddNodes(NodesT &&value)
Definition Cluster.h:170
ClusterEndpointEncryptionType GetClusterEndpointEncryptionType() const
Definition Cluster.h:274
Cluster & WithSSEDescription(SSEDescriptionT &&value)
Definition Cluster.h:265
const Aws::String & GetClusterName() const
Definition Cluster.h:53
bool NotificationConfigurationHasBeenSet() const
Definition Cluster.h:195
AWS_DAX_API Cluster & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ClusterDiscoveryEndpointHasBeenSet() const
Definition Cluster.h:138
const Aws::Vector< Node > & GetNodes() const
Definition Cluster.h:163
Cluster & WithActiveNodes(int value)
Definition Cluster.h:103
void SetClusterArn(ClusterArnT &&value)
Definition Cluster.h:80
int GetActiveNodes() const
Definition Cluster.h:100
Cluster & WithDescription(DescriptionT &&value)
Definition Cluster.h:70
void SetIamRoleArn(IamRoleArnT &&value)
Definition Cluster.h:238
const ParameterGroupStatus & GetParameterGroup() const
Definition Cluster.h:247
void SetClusterDiscoveryEndpoint(ClusterDiscoveryEndpointT &&value)
Definition Cluster.h:140
void SetSecurityGroups(SecurityGroupsT &&value)
Definition Cluster.h:222
bool ParameterGroupHasBeenSet() const
Definition Cluster.h:248
void SetNodeIdsToRemove(NodeIdsToRemoveT &&value)
Definition Cluster.h:152
void SetParameterGroup(ParameterGroupT &&value)
Definition Cluster.h:250
Cluster & WithIamRoleArn(IamRoleArnT &&value)
Definition Cluster.h:240
void SetNodes(NodesT &&value)
Definition Cluster.h:166
bool ClusterEndpointEncryptionTypeHasBeenSet() const
Definition Cluster.h:275
const Aws::String & GetIamRoleArn() const
Definition Cluster.h:235
bool SSEDescriptionHasBeenSet() const
Definition Cluster.h:261
const Aws::String & GetSubnetGroup() const
Definition Cluster.h:206
bool StatusHasBeenSet() const
Definition Cluster.h:124
Cluster & WithNodeIdsToRemove(NodeIdsToRemoveT &&value)
Definition Cluster.h:154
Cluster & WithClusterEndpointEncryptionType(ClusterEndpointEncryptionType value)
Definition Cluster.h:277
const Endpoint & GetClusterDiscoveryEndpoint() const
Definition Cluster.h:137
void SetStatus(StatusT &&value)
Definition Cluster.h:126
void SetTotalNodes(int value)
Definition Cluster.h:91
Cluster & WithSubnetGroup(SubnetGroupT &&value)
Definition Cluster.h:211
bool ActiveNodesHasBeenSet() const
Definition Cluster.h:101
bool NodeIdsToRemoveHasBeenSet() const
Definition Cluster.h:150
bool NodesHasBeenSet() const
Definition Cluster.h:164
void SetNodeType(NodeTypeT &&value)
Definition Cluster.h:114
Cluster & WithClusterArn(ClusterArnT &&value)
Definition Cluster.h:82
Cluster & WithClusterDiscoveryEndpoint(ClusterDiscoveryEndpointT &&value)
Definition Cluster.h:142
bool IamRoleArnHasBeenSet() const
Definition Cluster.h:236
const Aws::String & GetNodeType() const
Definition Cluster.h:111
Cluster & WithNotificationConfiguration(NotificationConfigurationT &&value)
Definition Cluster.h:199
bool ClusterArnHasBeenSet() const
Definition Cluster.h:78
bool ClusterNameHasBeenSet() const
Definition Cluster.h:54
Cluster & WithStatus(StatusT &&value)
Definition Cluster.h:128
Cluster & WithNodeType(NodeTypeT &&value)
Definition Cluster.h:116
void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT &&value)
Definition Cluster.h:183
Cluster & WithTotalNodes(int value)
Definition Cluster.h:92
const Aws::Vector< SecurityGroupMembership > & GetSecurityGroups() const
Definition Cluster.h:219
const Aws::Vector< Aws::String > & GetNodeIdsToRemove() const
Definition Cluster.h:149
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue