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

A cluster endpoint. Specify an endpoint when you want to set or retrieve a * routing control state in the cluster.

See Also:

AWS * API Reference

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

A cluster endpoint. Specify an endpoint and Amazon Web Services Region 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::String& GetEndpoint() const{ return m_endpoint; } /** *

A cluster endpoint. Specify an endpoint and Amazon Web Services Region 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 EndpointHasBeenSet() const { return m_endpointHasBeenSet; } /** *

A cluster endpoint. Specify an endpoint and Amazon Web Services Region 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 SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; } /** *

A cluster endpoint. Specify an endpoint and Amazon Web Services Region 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 SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); } /** *

A cluster endpoint. Specify an endpoint and Amazon Web Services Region 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 SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); } /** *

A cluster endpoint. Specify an endpoint and Amazon Web Services Region 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 ClusterEndpoint& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;} /** *

A cluster endpoint. Specify an endpoint and Amazon Web Services Region 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 ClusterEndpoint& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;} /** *

A cluster endpoint. Specify an endpoint and Amazon Web Services Region 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 ClusterEndpoint& WithEndpoint(const char* value) { SetEndpoint(value); return *this;} /** *

The Amazon Web Services Region for a cluster endpoint.

*/ inline const Aws::String& GetRegion() const{ return m_region; } /** *

The Amazon Web Services Region for a cluster endpoint.

*/ inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } /** *

The Amazon Web Services Region for a cluster endpoint.

*/ inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } /** *

The Amazon Web Services Region for a cluster endpoint.

*/ inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } /** *

The Amazon Web Services Region for a cluster endpoint.

*/ inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } /** *

The Amazon Web Services Region for a cluster endpoint.

*/ inline ClusterEndpoint& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} /** *

The Amazon Web Services Region for a cluster endpoint.

*/ inline ClusterEndpoint& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} /** *

The Amazon Web Services Region for a cluster endpoint.

*/ inline ClusterEndpoint& WithRegion(const char* value) { SetRegion(value); return *this;} private: Aws::String m_endpoint; bool m_endpointHasBeenSet = false; Aws::String m_region; bool m_regionHasBeenSet = false; }; } // namespace Model } // namespace Route53RecoveryControlConfig } // namespace Aws