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/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/NetworkType.h>
12#include <aws/route53-recovery-control-config/model/ClusterEndpoint.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Route53RecoveryControlConfig
26{
27namespace Model
28{
29
38 class Cluster
39 {
40 public:
41 AWS_ROUTE53RECOVERYCONTROLCONFIG_API Cluster() = default;
42 AWS_ROUTE53RECOVERYCONTROLCONFIG_API Cluster(Aws::Utils::Json::JsonView jsonValue);
43 AWS_ROUTE53RECOVERYCONTROLCONFIG_API Cluster& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
52 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
53 template<typename ClusterArnT = Aws::String>
54 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
55 template<typename ClusterArnT = Aws::String>
56 Cluster& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
58
60
66 inline const Aws::Vector<ClusterEndpoint>& GetClusterEndpoints() const { return m_clusterEndpoints; }
67 inline bool ClusterEndpointsHasBeenSet() const { return m_clusterEndpointsHasBeenSet; }
68 template<typename ClusterEndpointsT = Aws::Vector<ClusterEndpoint>>
69 void SetClusterEndpoints(ClusterEndpointsT&& value) { m_clusterEndpointsHasBeenSet = true; m_clusterEndpoints = std::forward<ClusterEndpointsT>(value); }
70 template<typename ClusterEndpointsT = Aws::Vector<ClusterEndpoint>>
71 Cluster& WithClusterEndpoints(ClusterEndpointsT&& value) { SetClusterEndpoints(std::forward<ClusterEndpointsT>(value)); return *this;}
72 template<typename ClusterEndpointsT = ClusterEndpoint>
73 Cluster& AddClusterEndpoints(ClusterEndpointsT&& value) { m_clusterEndpointsHasBeenSet = true; m_clusterEndpoints.emplace_back(std::forward<ClusterEndpointsT>(value)); return *this; }
75
77
80 inline const Aws::String& GetName() const { return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 template<typename NameT = Aws::String>
83 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
84 template<typename NameT = Aws::String>
85 Cluster& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
87
89
93 inline Status GetStatus() const { return m_status; }
94 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
95 inline void SetStatus(Status value) { m_statusHasBeenSet = true; m_status = value; }
96 inline Cluster& WithStatus(Status value) { SetStatus(value); return *this;}
98
100
103 inline const Aws::String& GetOwner() const { return m_owner; }
104 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
105 template<typename OwnerT = Aws::String>
106 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
107 template<typename OwnerT = Aws::String>
108 Cluster& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
110
112
116 inline NetworkType GetNetworkType() const { return m_networkType; }
117 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
118 inline void SetNetworkType(NetworkType value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
119 inline Cluster& WithNetworkType(NetworkType value) { SetNetworkType(value); return *this;}
121 private:
122
123 Aws::String m_clusterArn;
124 bool m_clusterArnHasBeenSet = false;
125
126 Aws::Vector<ClusterEndpoint> m_clusterEndpoints;
127 bool m_clusterEndpointsHasBeenSet = false;
128
129 Aws::String m_name;
130 bool m_nameHasBeenSet = false;
131
132 Status m_status{Status::NOT_SET};
133 bool m_statusHasBeenSet = false;
134
135 Aws::String m_owner;
136 bool m_ownerHasBeenSet = false;
137
138 NetworkType m_networkType{NetworkType::NOT_SET};
139 bool m_networkTypeHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace Route53RecoveryControlConfig
144} // namespace Aws
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Cluster()=default
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Cluster(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetClusterArn() const
Definition Cluster.h:51
Cluster & WithClusterArn(ClusterArnT &&value)
Definition Cluster.h:56
Cluster & WithClusterEndpoints(ClusterEndpointsT &&value)
Definition Cluster.h:71
const Aws::Vector< ClusterEndpoint > & GetClusterEndpoints() const
Definition Cluster.h:66
Cluster & AddClusterEndpoints(ClusterEndpointsT &&value)
Definition Cluster.h:73
void SetClusterEndpoints(ClusterEndpointsT &&value)
Definition Cluster.h:69
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Cluster & operator=(Aws::Utils::Json::JsonView jsonValue)
Cluster & WithNetworkType(NetworkType value)
Definition Cluster.h:119
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue