7#include <aws/docdb-elastic/DocDBElastic_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/docdb-elastic/model/Auth.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/docdb-elastic/model/Status.h>
12#include <aws/docdb-elastic/model/Shard.h>
51 template<
typename AdminUserNameT = Aws::String>
52 void SetAdminUserName(AdminUserNameT&& value) { m_adminUserNameHasBeenSet =
true; m_adminUserName = std::forward<AdminUserNameT>(value); }
53 template<
typename AdminUserNameT = Aws::String>
63 inline void SetAuthType(
Auth value) { m_authTypeHasBeenSet =
true; m_authType = value; }
83 template<
typename ClusterArnT = Aws::String>
84 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet =
true; m_clusterArn = std::forward<ClusterArnT>(value); }
85 template<
typename ClusterArnT = Aws::String>
95 template<
typename ClusterEndpo
intT = Aws::String>
96 void SetClusterEndpoint(ClusterEndpointT&& value) { m_clusterEndpointHasBeenSet =
true; m_clusterEndpoint = std::forward<ClusterEndpointT>(value); }
97 template<
typename ClusterEndpo
intT = Aws::String>
107 template<
typename ClusterNameT = Aws::String>
108 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet =
true; m_clusterName = std::forward<ClusterNameT>(value); }
109 template<
typename ClusterNameT = Aws::String>
120 template<
typename CreateTimeT = Aws::String>
121 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet =
true; m_createTime = std::forward<CreateTimeT>(value); }
122 template<
typename CreateTimeT = Aws::String>
132 template<
typename KmsKeyIdT = Aws::String>
133 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet =
true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
134 template<
typename KmsKeyIdT = Aws::String>
145 template<
typename PreferredBackupWindowT = Aws::String>
146 void SetPreferredBackupWindow(PreferredBackupWindowT&& value) { m_preferredBackupWindowHasBeenSet =
true; m_preferredBackupWindow = std::forward<PreferredBackupWindowT>(value); }
147 template<
typename PreferredBackupWindowT = Aws::String>
159 template<
typename PreferredMa
intenanceWindowT = Aws::String>
160 void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT&& value) { m_preferredMaintenanceWindowHasBeenSet =
true; m_preferredMaintenanceWindow = std::forward<PreferredMaintenanceWindowT>(value); }
161 template<
typename PreferredMa
intenanceWindowT = Aws::String>
172 inline void SetShardCapacity(
int value) { m_shardCapacityHasBeenSet =
true; m_shardCapacity = value; }
182 inline void SetShardCount(
int value) { m_shardCountHasBeenSet =
true; m_shardCount = value; }
195 inline void SetShardInstanceCount(
int value) { m_shardInstanceCountHasBeenSet =
true; m_shardInstanceCount = value; }
205 template<
typename ShardsT = Aws::Vector<Shard>>
206 void SetShards(ShardsT&& value) { m_shardsHasBeenSet =
true; m_shards = std::forward<ShardsT>(value); }
207 template<
typename ShardsT = Aws::Vector<Shard>>
209 template<
typename ShardsT = Shard>
210 Cluster&
AddShards(ShardsT&& value) { m_shardsHasBeenSet =
true; m_shards.emplace_back(std::forward<ShardsT>(value));
return *
this; }
229 template<
typename SubnetIdsT = Aws::Vector<Aws::String>>
230 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet =
true; m_subnetIds = std::forward<SubnetIdsT>(value); }
231 template<
typename SubnetIdsT = Aws::Vector<Aws::String>>
233 template<
typename SubnetIdsT = Aws::String>
234 Cluster&
AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet =
true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
return *
this; }
243 template<
typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
244 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet =
true; m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value); }
245 template<
typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
247 template<
typename VpcSecurityGroupIdsT = Aws::String>
248 Cluster&
AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet =
true; m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value));
return *
this; }
253 bool m_adminUserNameHasBeenSet =
false;
256 bool m_authTypeHasBeenSet =
false;
258 int m_backupRetentionPeriod{0};
259 bool m_backupRetentionPeriodHasBeenSet =
false;
262 bool m_clusterArnHasBeenSet =
false;
265 bool m_clusterEndpointHasBeenSet =
false;
268 bool m_clusterNameHasBeenSet =
false;
271 bool m_createTimeHasBeenSet =
false;
274 bool m_kmsKeyIdHasBeenSet =
false;
277 bool m_preferredBackupWindowHasBeenSet =
false;
280 bool m_preferredMaintenanceWindowHasBeenSet =
false;
282 int m_shardCapacity{0};
283 bool m_shardCapacityHasBeenSet =
false;
286 bool m_shardCountHasBeenSet =
false;
288 int m_shardInstanceCount{0};
289 bool m_shardInstanceCountHasBeenSet =
false;
292 bool m_shardsHasBeenSet =
false;
295 bool m_statusHasBeenSet =
false;
298 bool m_subnetIdsHasBeenSet =
false;
301 bool m_vpcSecurityGroupIdsHasBeenSet =
false;
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
Cluster & WithBackupRetentionPeriod(int value)
Cluster & WithShardCount(int value)
bool ClusterArnHasBeenSet() const
int GetShardCount() const
Cluster & WithShards(ShardsT &&value)
bool ClusterNameHasBeenSet() const
bool CreateTimeHasBeenSet() const
bool ShardCapacityHasBeenSet() const
bool BackupRetentionPeriodHasBeenSet() const
Cluster & WithShardCapacity(int value)
AWS_DOCDBELASTIC_API Aws::Utils::Json::JsonValue Jsonize() const
Cluster & WithAdminUserName(AdminUserNameT &&value)
void SetStatus(Status value)
bool SubnetIdsHasBeenSet() const
const Aws::String & GetCreateTime() const
void SetShardCapacity(int value)
const Aws::String & GetAdminUserName() const
const Aws::String & GetKmsKeyId() const
void SetSubnetIds(SubnetIdsT &&value)
bool AdminUserNameHasBeenSet() const
int GetShardInstanceCount() const
const Aws::Vector< Aws::String > & GetSubnetIds() const
void SetAdminUserName(AdminUserNameT &&value)
Cluster & WithPreferredMaintenanceWindow(PreferredMaintenanceWindowT &&value)
Cluster & AddSubnetIds(SubnetIdsT &&value)
AWS_DOCDBELASTIC_API Cluster & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DOCDBELASTIC_API Cluster(Aws::Utils::Json::JsonView jsonValue)
int GetBackupRetentionPeriod() const
Cluster & WithClusterArn(ClusterArnT &&value)
bool PreferredBackupWindowHasBeenSet() const
const Aws::String & GetPreferredBackupWindow() const
void SetAuthType(Auth value)
void SetShardInstanceCount(int value)
Cluster & WithClusterEndpoint(ClusterEndpointT &&value)
bool ShardCountHasBeenSet() const
Cluster & WithPreferredBackupWindow(PreferredBackupWindowT &&value)
void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
const Aws::String & GetClusterEndpoint() const
const Aws::String & GetClusterName() const
const Aws::String & GetPreferredMaintenanceWindow() const
const Aws::Vector< Shard > & GetShards() const
Cluster & WithSubnetIds(SubnetIdsT &&value)
void SetKmsKeyId(KmsKeyIdT &&value)
void SetClusterName(ClusterNameT &&value)
void SetShardCount(int value)
void SetClusterArn(ClusterArnT &&value)
void SetPreferredBackupWindow(PreferredBackupWindowT &&value)
AWS_DOCDBELASTIC_API Cluster()=default
int GetShardCapacity() const
Cluster & WithStatus(Status value)
Cluster & WithCreateTime(CreateTimeT &&value)
Cluster & WithKmsKeyId(KmsKeyIdT &&value)
bool VpcSecurityGroupIdsHasBeenSet() const
bool PreferredMaintenanceWindowHasBeenSet() const
bool ShardsHasBeenSet() const
void SetShards(ShardsT &&value)
void SetBackupRetentionPeriod(int value)
Cluster & AddShards(ShardsT &&value)
void SetPreferredMaintenanceWindow(PreferredMaintenanceWindowT &&value)
bool ShardInstanceCountHasBeenSet() const
Cluster & WithClusterName(ClusterNameT &&value)
void SetCreateTime(CreateTimeT &&value)
Cluster & WithVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
bool KmsKeyIdHasBeenSet() const
const Aws::String & GetClusterArn() const
bool StatusHasBeenSet() const
Cluster & WithShardInstanceCount(int value)
bool ClusterEndpointHasBeenSet() const
void SetClusterEndpoint(ClusterEndpointT &&value)
bool AuthTypeHasBeenSet() const
Cluster & AddVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
Cluster & WithAuthType(Auth value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue