/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Route53RecoveryControlConfig { namespace Model { /** *

A set of five redundant Regional endpoints against which you can execute API * calls to update or get the state of routing controls. You can host multiple * control panels and routing controls on one cluster.

See Also:

* AWS * API Reference

*/ class Cluster { public: AWS_ROUTE53RECOVERYCONTROLCONFIG_API Cluster(); AWS_ROUTE53RECOVERYCONTROLCONFIG_API Cluster(Aws::Utils::Json::JsonView jsonValue); AWS_ROUTE53RECOVERYCONTROLCONFIG_API Cluster& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) of the cluster.

*/ inline const Aws::String& GetClusterArn() const{ return m_clusterArn; } /** *

The Amazon Resource Name (ARN) of the cluster.

*/ inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the cluster.

*/ inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; } /** *

The Amazon Resource Name (ARN) of the cluster.

*/ inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the cluster.

*/ inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the cluster.

*/ inline Cluster& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the cluster.

*/ inline Cluster& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the cluster.

*/ inline Cluster& WithClusterArn(const char* value) { SetClusterArn(value); return *this;} /** *

Endpoints for a cluster. Specify one of these endpoints when you want to set * or retrieve a routing control state in the cluster.

To get or update the * routing control state, see the Amazon Route 53 Application Recovery Controller * Routing Control Actions.

*/ inline const Aws::Vector& GetClusterEndpoints() const{ return m_clusterEndpoints; } /** *

Endpoints for a cluster. Specify one of these endpoints when you want to set * or retrieve a routing control state in the cluster.

To get or update the * routing control state, see the Amazon Route 53 Application Recovery Controller * Routing Control Actions.

*/ inline bool ClusterEndpointsHasBeenSet() const { return m_clusterEndpointsHasBeenSet; } /** *

Endpoints for a cluster. Specify one of these endpoints when you want to set * or retrieve a routing control state in the cluster.

To get or update the * routing control state, see the Amazon Route 53 Application Recovery Controller * Routing Control Actions.

*/ inline void SetClusterEndpoints(const Aws::Vector& value) { m_clusterEndpointsHasBeenSet = true; m_clusterEndpoints = value; } /** *

Endpoints for a cluster. Specify one of these endpoints when you want to set * or retrieve a routing control state in the cluster.

To get or update the * routing control state, see the Amazon Route 53 Application Recovery Controller * Routing Control Actions.

*/ inline void SetClusterEndpoints(Aws::Vector&& value) { m_clusterEndpointsHasBeenSet = true; m_clusterEndpoints = std::move(value); } /** *

Endpoints for a cluster. Specify one of these endpoints when you want to set * or retrieve a routing control state in the cluster.

To get or update the * routing control state, see the Amazon Route 53 Application Recovery Controller * Routing Control Actions.

*/ inline Cluster& WithClusterEndpoints(const Aws::Vector& value) { SetClusterEndpoints(value); return *this;} /** *

Endpoints for a cluster. Specify one of these endpoints when you want to set * or retrieve a routing control state in the cluster.

To get or update the * routing control state, see the Amazon Route 53 Application Recovery Controller * Routing Control Actions.

*/ inline Cluster& WithClusterEndpoints(Aws::Vector&& value) { SetClusterEndpoints(std::move(value)); return *this;} /** *

Endpoints for a cluster. Specify one of these endpoints when you want to set * or retrieve a routing control state in the cluster.

To get or update the * routing control state, see the Amazon Route 53 Application Recovery Controller * Routing Control Actions.

*/ inline Cluster& AddClusterEndpoints(const ClusterEndpoint& value) { m_clusterEndpointsHasBeenSet = true; m_clusterEndpoints.push_back(value); return *this; } /** *

Endpoints for a cluster. Specify one of these endpoints when you want to set * or retrieve a routing control state in the cluster.

To get or update the * routing control state, see the Amazon Route 53 Application Recovery Controller * Routing Control Actions.

*/ inline Cluster& AddClusterEndpoints(ClusterEndpoint&& value) { m_clusterEndpointsHasBeenSet = true; m_clusterEndpoints.push_back(std::move(value)); return *this; } /** *

The name of the cluster.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the cluster.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the cluster.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the cluster.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the cluster.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the cluster.

*/ inline Cluster& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the cluster.

*/ inline Cluster& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the cluster.

*/ inline Cluster& WithName(const char* value) { SetName(value); return *this;} /** *

Deployment status of a resource. Status can be one of the following: PENDING, * DEPLOYED, PENDING_DELETION.

*/ inline const Status& GetStatus() const{ return m_status; } /** *

Deployment status of a resource. Status can be one of the following: PENDING, * DEPLOYED, PENDING_DELETION.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

Deployment status of a resource. Status can be one of the following: PENDING, * DEPLOYED, PENDING_DELETION.

*/ inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; } /** *

Deployment status of a resource. Status can be one of the following: PENDING, * DEPLOYED, PENDING_DELETION.

*/ inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

Deployment status of a resource. Status can be one of the following: PENDING, * DEPLOYED, PENDING_DELETION.

*/ inline Cluster& WithStatus(const Status& value) { SetStatus(value); return *this;} /** *

Deployment status of a resource. Status can be one of the following: PENDING, * DEPLOYED, PENDING_DELETION.

*/ inline Cluster& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_clusterArn; bool m_clusterArnHasBeenSet = false; Aws::Vector m_clusterEndpoints; bool m_clusterEndpointsHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Status m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace Route53RecoveryControlConfig } // namespace Aws