/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The routing configuration of the endpoint.See Also:
AWS
* API Reference
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