AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Cluster.h
1
6#pragma once
7#include <aws/route53-recovery-control-config/Route53RecoveryControlConfig_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/route53-recovery-control-config/model/Status.h>
11#include <aws/route53-recovery-control-config/model/ClusterEndpoint.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Route53RecoveryControlConfig
25{
26namespace Model
27{
28
37 class Cluster
38 {
39 public:
40 AWS_ROUTE53RECOVERYCONTROLCONFIG_API Cluster();
41 AWS_ROUTE53RECOVERYCONTROLCONFIG_API Cluster(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ROUTE53RECOVERYCONTROLCONFIG_API Cluster& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetClusterArn() const{ return m_clusterArn; }
51 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
52 inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; }
53 inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); }
54 inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); }
55 inline Cluster& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
56 inline Cluster& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
57 inline Cluster& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
59
61
67 inline const Aws::Vector<ClusterEndpoint>& GetClusterEndpoints() const{ return m_clusterEndpoints; }
68 inline bool ClusterEndpointsHasBeenSet() const { return m_clusterEndpointsHasBeenSet; }
69 inline void SetClusterEndpoints(const Aws::Vector<ClusterEndpoint>& value) { m_clusterEndpointsHasBeenSet = true; m_clusterEndpoints = value; }
70 inline void SetClusterEndpoints(Aws::Vector<ClusterEndpoint>&& value) { m_clusterEndpointsHasBeenSet = true; m_clusterEndpoints = std::move(value); }
72 inline Cluster& WithClusterEndpoints(Aws::Vector<ClusterEndpoint>&& value) { SetClusterEndpoints(std::move(value)); return *this;}
73 inline Cluster& AddClusterEndpoints(const ClusterEndpoint& value) { m_clusterEndpointsHasBeenSet = true; m_clusterEndpoints.push_back(value); return *this; }
74 inline Cluster& AddClusterEndpoints(ClusterEndpoint&& value) { m_clusterEndpointsHasBeenSet = true; m_clusterEndpoints.push_back(std::move(value)); return *this; }
76
78
81 inline const Aws::String& GetName() const{ return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
84 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
85 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
86 inline Cluster& WithName(const Aws::String& value) { SetName(value); return *this;}
87 inline Cluster& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
88 inline Cluster& WithName(const char* value) { SetName(value); return *this;}
90
92
96 inline const Status& GetStatus() const{ return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; }
99 inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
100 inline Cluster& WithStatus(const Status& value) { SetStatus(value); return *this;}
101 inline Cluster& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
103
105
108 inline const Aws::String& GetOwner() const{ return m_owner; }
109 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
110 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
111 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
112 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
113 inline Cluster& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
114 inline Cluster& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
115 inline Cluster& WithOwner(const char* value) { SetOwner(value); return *this;}
117 private:
118
119 Aws::String m_clusterArn;
120 bool m_clusterArnHasBeenSet = false;
121
122 Aws::Vector<ClusterEndpoint> m_clusterEndpoints;
123 bool m_clusterEndpointsHasBeenSet = false;
124
125 Aws::String m_name;
126 bool m_nameHasBeenSet = false;
127
128 Status m_status;
129 bool m_statusHasBeenSet = false;
130
131 Aws::String m_owner;
132 bool m_ownerHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace Route53RecoveryControlConfig
137} // namespace Aws
Cluster & WithName(const char *value)
Definition Cluster.h:88
Cluster & WithClusterArn(const char *value)
Definition Cluster.h:57
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
Cluster & WithName(Aws::String &&value)
Definition Cluster.h:87
void SetClusterEndpoints(const Aws::Vector< ClusterEndpoint > &value)
Definition Cluster.h:69
Cluster & WithOwner(const char *value)
Definition Cluster.h:115
void SetClusterEndpoints(Aws::Vector< ClusterEndpoint > &&value)
Definition Cluster.h:70
Cluster & AddClusterEndpoints(const ClusterEndpoint &value)
Definition Cluster.h:73
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Cluster(Aws::Utils::Json::JsonView jsonValue)
Cluster & WithClusterArn(const Aws::String &value)
Definition Cluster.h:55
const Aws::String & GetClusterArn() const
Definition Cluster.h:50
Cluster & WithOwner(const Aws::String &value)
Definition Cluster.h:113
void SetName(const Aws::String &value)
Definition Cluster.h:83
void SetOwner(const Aws::String &value)
Definition Cluster.h:110
Cluster & AddClusterEndpoints(ClusterEndpoint &&value)
Definition Cluster.h:74
Cluster & WithClusterEndpoints(const Aws::Vector< ClusterEndpoint > &value)
Definition Cluster.h:71
Cluster & WithName(const Aws::String &value)
Definition Cluster.h:86
Cluster & WithStatus(const Status &value)
Definition Cluster.h:100
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Cluster()
Cluster & WithOwner(Aws::String &&value)
Definition Cluster.h:114
Cluster & WithClusterArn(Aws::String &&value)
Definition Cluster.h:56
Cluster & WithClusterEndpoints(Aws::Vector< ClusterEndpoint > &&value)
Definition Cluster.h:72
const Aws::Vector< ClusterEndpoint > & GetClusterEndpoints() const
Definition Cluster.h:67
void SetClusterArn(const Aws::String &value)
Definition Cluster.h:52
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Cluster & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue