/** * 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 secondary Region that processes events when failover is triggered or * replication is enabled.

See Also:

AWS * API Reference

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

Defines the secondary Region.

*/ inline const Aws::String& GetRoute() const{ return m_route; } /** *

Defines the secondary Region.

*/ inline bool RouteHasBeenSet() const { return m_routeHasBeenSet; } /** *

Defines the secondary Region.

*/ inline void SetRoute(const Aws::String& value) { m_routeHasBeenSet = true; m_route = value; } /** *

Defines the secondary Region.

*/ inline void SetRoute(Aws::String&& value) { m_routeHasBeenSet = true; m_route = std::move(value); } /** *

Defines the secondary Region.

*/ inline void SetRoute(const char* value) { m_routeHasBeenSet = true; m_route.assign(value); } /** *

Defines the secondary Region.

*/ inline Secondary& WithRoute(const Aws::String& value) { SetRoute(value); return *this;} /** *

Defines the secondary Region.

*/ inline Secondary& WithRoute(Aws::String&& value) { SetRoute(std::move(value)); return *this;} /** *

Defines the secondary Region.

*/ inline Secondary& WithRoute(const char* value) { SetRoute(value); return *this;} private: Aws::String m_route; bool m_routeHasBeenSet = false; }; } // namespace Model } // namespace EventBridge } // namespace Aws