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

A control panel represents a group of routing controls that can be changed * together in a single transaction.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the cluster that includes the control * panel.

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

The Amazon Resource Name (ARN) of the cluster that includes the control * panel.

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

The Amazon Resource Name (ARN) of the cluster that includes the control * panel.

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

The Amazon Resource Name (ARN) of the cluster that includes the control * panel.

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

The Amazon Resource Name (ARN) of the cluster that includes the control * panel.

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

The Amazon Resource Name (ARN) of the cluster that includes the control * panel.

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

The Amazon Resource Name (ARN) of the cluster that includes the control * panel.

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

The Amazon Resource Name (ARN) of the cluster that includes the control * panel.

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

The Amazon Resource Name (ARN) of the control panel.

*/ inline const Aws::String& GetControlPanelArn() const{ return m_controlPanelArn; } /** *

The Amazon Resource Name (ARN) of the control panel.

*/ inline bool ControlPanelArnHasBeenSet() const { return m_controlPanelArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the control panel.

*/ inline void SetControlPanelArn(const Aws::String& value) { m_controlPanelArnHasBeenSet = true; m_controlPanelArn = value; } /** *

The Amazon Resource Name (ARN) of the control panel.

*/ inline void SetControlPanelArn(Aws::String&& value) { m_controlPanelArnHasBeenSet = true; m_controlPanelArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the control panel.

*/ inline void SetControlPanelArn(const char* value) { m_controlPanelArnHasBeenSet = true; m_controlPanelArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the control panel.

*/ inline ControlPanel& WithControlPanelArn(const Aws::String& value) { SetControlPanelArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the control panel.

*/ inline ControlPanel& WithControlPanelArn(Aws::String&& value) { SetControlPanelArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the control panel.

*/ inline ControlPanel& WithControlPanelArn(const char* value) { SetControlPanelArn(value); return *this;} /** *

A flag that Amazon Route 53 Application Recovery Controller sets to true to * designate the default control panel for a cluster. When you create a cluster, * Amazon Route 53 Application Recovery Controller creates a control panel, and * sets this flag for that control panel. If you create a control panel yourself, * this flag is set to false.

*/ inline bool GetDefaultControlPanel() const{ return m_defaultControlPanel; } /** *

A flag that Amazon Route 53 Application Recovery Controller sets to true to * designate the default control panel for a cluster. When you create a cluster, * Amazon Route 53 Application Recovery Controller creates a control panel, and * sets this flag for that control panel. If you create a control panel yourself, * this flag is set to false.

*/ inline bool DefaultControlPanelHasBeenSet() const { return m_defaultControlPanelHasBeenSet; } /** *

A flag that Amazon Route 53 Application Recovery Controller sets to true to * designate the default control panel for a cluster. When you create a cluster, * Amazon Route 53 Application Recovery Controller creates a control panel, and * sets this flag for that control panel. If you create a control panel yourself, * this flag is set to false.

*/ inline void SetDefaultControlPanel(bool value) { m_defaultControlPanelHasBeenSet = true; m_defaultControlPanel = value; } /** *

A flag that Amazon Route 53 Application Recovery Controller sets to true to * designate the default control panel for a cluster. When you create a cluster, * Amazon Route 53 Application Recovery Controller creates a control panel, and * sets this flag for that control panel. If you create a control panel yourself, * this flag is set to false.

*/ inline ControlPanel& WithDefaultControlPanel(bool value) { SetDefaultControlPanel(value); return *this;} /** *

The name of the control panel. You can use any non-white space character in * the name.

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

The name of the control panel. You can use any non-white space character in * the name.

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

The name of the control panel. You can use any non-white space character in * the name.

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

The name of the control panel. You can use any non-white space character in * the name.

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

The name of the control panel. You can use any non-white space character in * the name.

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

The name of the control panel. You can use any non-white space character in * the name.

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

The name of the control panel. You can use any non-white space character in * the name.

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

The name of the control panel. You can use any non-white space character in * the name.

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

The number of routing controls in the control panel.

*/ inline int GetRoutingControlCount() const{ return m_routingControlCount; } /** *

The number of routing controls in the control panel.

*/ inline bool RoutingControlCountHasBeenSet() const { return m_routingControlCountHasBeenSet; } /** *

The number of routing controls in the control panel.

*/ inline void SetRoutingControlCount(int value) { m_routingControlCountHasBeenSet = true; m_routingControlCount = value; } /** *

The number of routing controls in the control panel.

*/ inline ControlPanel& WithRoutingControlCount(int value) { SetRoutingControlCount(value); return *this;} /** *

The deployment status of control panel. Status can be one of the following: * PENDING, DEPLOYED, PENDING_DELETION.

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

The deployment status of control panel. Status can be one of the following: * PENDING, DEPLOYED, PENDING_DELETION.

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

The deployment status of control panel. Status can be one of the following: * PENDING, DEPLOYED, PENDING_DELETION.

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

The deployment status of control panel. Status can be one of the following: * PENDING, DEPLOYED, PENDING_DELETION.

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

The deployment status of control panel. Status can be one of the following: * PENDING, DEPLOYED, PENDING_DELETION.

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

The deployment status of control panel. Status can be one of the following: * PENDING, DEPLOYED, PENDING_DELETION.

*/ inline ControlPanel& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_clusterArn; bool m_clusterArnHasBeenSet = false; Aws::String m_controlPanelArn; bool m_controlPanelArnHasBeenSet = false; bool m_defaultControlPanel; bool m_defaultControlPanelHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; int m_routingControlCount; bool m_routingControlCountHasBeenSet = false; Status m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace Route53RecoveryControlConfig } // namespace Aws