/** * 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 Route53RecoveryCluster { namespace Model { /** */ class UpdateRoutingControlStatesRequest : public Route53RecoveryClusterRequest { public: AWS_ROUTE53RECOVERYCLUSTER_API UpdateRoutingControlStatesRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateRoutingControlStates"; } AWS_ROUTE53RECOVERYCLUSTER_API Aws::String SerializePayload() const override; AWS_ROUTE53RECOVERYCLUSTER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A set of routing control entries that you want to update.

*/ inline const Aws::Vector& GetUpdateRoutingControlStateEntries() const{ return m_updateRoutingControlStateEntries; } /** *

A set of routing control entries that you want to update.

*/ inline bool UpdateRoutingControlStateEntriesHasBeenSet() const { return m_updateRoutingControlStateEntriesHasBeenSet; } /** *

A set of routing control entries that you want to update.

*/ inline void SetUpdateRoutingControlStateEntries(const Aws::Vector& value) { m_updateRoutingControlStateEntriesHasBeenSet = true; m_updateRoutingControlStateEntries = value; } /** *

A set of routing control entries that you want to update.

*/ inline void SetUpdateRoutingControlStateEntries(Aws::Vector&& value) { m_updateRoutingControlStateEntriesHasBeenSet = true; m_updateRoutingControlStateEntries = std::move(value); } /** *

A set of routing control entries that you want to update.

*/ inline UpdateRoutingControlStatesRequest& WithUpdateRoutingControlStateEntries(const Aws::Vector& value) { SetUpdateRoutingControlStateEntries(value); return *this;} /** *

A set of routing control entries that you want to update.

*/ inline UpdateRoutingControlStatesRequest& WithUpdateRoutingControlStateEntries(Aws::Vector&& value) { SetUpdateRoutingControlStateEntries(std::move(value)); return *this;} /** *

A set of routing control entries that you want to update.

*/ inline UpdateRoutingControlStatesRequest& AddUpdateRoutingControlStateEntries(const UpdateRoutingControlStateEntry& value) { m_updateRoutingControlStateEntriesHasBeenSet = true; m_updateRoutingControlStateEntries.push_back(value); return *this; } /** *

A set of routing control entries that you want to update.

*/ inline UpdateRoutingControlStatesRequest& AddUpdateRoutingControlStateEntries(UpdateRoutingControlStateEntry&& value) { m_updateRoutingControlStateEntriesHasBeenSet = true; m_updateRoutingControlStateEntries.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Names (ARNs) for the safety rules that you want to * override when you're updating routing control states. You can override one * safety rule or multiple safety rules by including one or more ARNs, separated by * commas.

For more information, see * Override safety rules to reroute traffic in the Amazon Route 53 Application * Recovery Controller Developer Guide.

*/ inline const Aws::Vector& GetSafetyRulesToOverride() const{ return m_safetyRulesToOverride; } /** *

The Amazon Resource Names (ARNs) for the safety rules that you want to * override when you're updating routing control states. You can override one * safety rule or multiple safety rules by including one or more ARNs, separated by * commas.

For more information, see * Override safety rules to reroute traffic in the Amazon Route 53 Application * Recovery Controller Developer Guide.

*/ inline bool SafetyRulesToOverrideHasBeenSet() const { return m_safetyRulesToOverrideHasBeenSet; } /** *

The Amazon Resource Names (ARNs) for the safety rules that you want to * override when you're updating routing control states. You can override one * safety rule or multiple safety rules by including one or more ARNs, separated by * commas.

For more information, see * Override safety rules to reroute traffic in the Amazon Route 53 Application * Recovery Controller Developer Guide.

*/ inline void SetSafetyRulesToOverride(const Aws::Vector& value) { m_safetyRulesToOverrideHasBeenSet = true; m_safetyRulesToOverride = value; } /** *

The Amazon Resource Names (ARNs) for the safety rules that you want to * override when you're updating routing control states. You can override one * safety rule or multiple safety rules by including one or more ARNs, separated by * commas.

For more information, see * Override safety rules to reroute traffic in the Amazon Route 53 Application * Recovery Controller Developer Guide.

*/ inline void SetSafetyRulesToOverride(Aws::Vector&& value) { m_safetyRulesToOverrideHasBeenSet = true; m_safetyRulesToOverride = std::move(value); } /** *

The Amazon Resource Names (ARNs) for the safety rules that you want to * override when you're updating routing control states. You can override one * safety rule or multiple safety rules by including one or more ARNs, separated by * commas.

For more information, see * Override safety rules to reroute traffic in the Amazon Route 53 Application * Recovery Controller Developer Guide.

*/ inline UpdateRoutingControlStatesRequest& WithSafetyRulesToOverride(const Aws::Vector& value) { SetSafetyRulesToOverride(value); return *this;} /** *

The Amazon Resource Names (ARNs) for the safety rules that you want to * override when you're updating routing control states. You can override one * safety rule or multiple safety rules by including one or more ARNs, separated by * commas.

For more information, see * Override safety rules to reroute traffic in the Amazon Route 53 Application * Recovery Controller Developer Guide.

*/ inline UpdateRoutingControlStatesRequest& WithSafetyRulesToOverride(Aws::Vector&& value) { SetSafetyRulesToOverride(std::move(value)); return *this;} /** *

The Amazon Resource Names (ARNs) for the safety rules that you want to * override when you're updating routing control states. You can override one * safety rule or multiple safety rules by including one or more ARNs, separated by * commas.

For more information, see * Override safety rules to reroute traffic in the Amazon Route 53 Application * Recovery Controller Developer Guide.

*/ inline UpdateRoutingControlStatesRequest& AddSafetyRulesToOverride(const Aws::String& value) { m_safetyRulesToOverrideHasBeenSet = true; m_safetyRulesToOverride.push_back(value); return *this; } /** *

The Amazon Resource Names (ARNs) for the safety rules that you want to * override when you're updating routing control states. You can override one * safety rule or multiple safety rules by including one or more ARNs, separated by * commas.

For more information, see * Override safety rules to reroute traffic in the Amazon Route 53 Application * Recovery Controller Developer Guide.

*/ inline UpdateRoutingControlStatesRequest& AddSafetyRulesToOverride(Aws::String&& value) { m_safetyRulesToOverrideHasBeenSet = true; m_safetyRulesToOverride.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Names (ARNs) for the safety rules that you want to * override when you're updating routing control states. You can override one * safety rule or multiple safety rules by including one or more ARNs, separated by * commas.

For more information, see * Override safety rules to reroute traffic in the Amazon Route 53 Application * Recovery Controller Developer Guide.

*/ inline UpdateRoutingControlStatesRequest& AddSafetyRulesToOverride(const char* value) { m_safetyRulesToOverrideHasBeenSet = true; m_safetyRulesToOverride.push_back(value); return *this; } private: Aws::Vector m_updateRoutingControlStateEntries; bool m_updateRoutingControlStateEntriesHasBeenSet = false; Aws::Vector m_safetyRulesToOverride; bool m_safetyRulesToOverrideHasBeenSet = false; }; } // namespace Model } // namespace Route53RecoveryCluster } // namespace Aws