/** * 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 EventBridge { namespace Model { /** *

The routing configuration of the endpoint.

See Also:

AWS * API Reference

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

The failover configuration for an endpoint. This includes what triggers * failover and what happens when it's triggered.

*/ inline const FailoverConfig& GetFailoverConfig() const{ return m_failoverConfig; } /** *

The failover configuration for an endpoint. This includes what triggers * failover and what happens when it's triggered.

*/ inline bool FailoverConfigHasBeenSet() const { return m_failoverConfigHasBeenSet; } /** *

The failover configuration for an endpoint. This includes what triggers * failover and what happens when it's triggered.

*/ inline void SetFailoverConfig(const FailoverConfig& value) { m_failoverConfigHasBeenSet = true; m_failoverConfig = value; } /** *

The failover configuration for an endpoint. This includes what triggers * failover and what happens when it's triggered.

*/ inline void SetFailoverConfig(FailoverConfig&& value) { m_failoverConfigHasBeenSet = true; m_failoverConfig = std::move(value); } /** *

The failover configuration for an endpoint. This includes what triggers * failover and what happens when it's triggered.

*/ inline RoutingConfig& WithFailoverConfig(const FailoverConfig& value) { SetFailoverConfig(value); return *this;} /** *

The failover configuration for an endpoint. This includes what triggers * failover and what happens when it's triggered.

*/ inline RoutingConfig& WithFailoverConfig(FailoverConfig&& value) { SetFailoverConfig(std::move(value)); return *this;} private: FailoverConfig m_failoverConfig; bool m_failoverConfigHasBeenSet = false; }; } // namespace Model } // namespace EventBridge } // namespace Aws