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

The configuration for the default route type.

See Also:

AWS * API Reference

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

If set to ACTIVE, traffic is forwarded to this route’s service * after the route is created.

*/ inline const RouteActivationState& GetActivationState() const{ return m_activationState; } /** *

If set to ACTIVE, traffic is forwarded to this route’s service * after the route is created.

*/ inline bool ActivationStateHasBeenSet() const { return m_activationStateHasBeenSet; } /** *

If set to ACTIVE, traffic is forwarded to this route’s service * after the route is created.

*/ inline void SetActivationState(const RouteActivationState& value) { m_activationStateHasBeenSet = true; m_activationState = value; } /** *

If set to ACTIVE, traffic is forwarded to this route’s service * after the route is created.

*/ inline void SetActivationState(RouteActivationState&& value) { m_activationStateHasBeenSet = true; m_activationState = std::move(value); } /** *

If set to ACTIVE, traffic is forwarded to this route’s service * after the route is created.

*/ inline DefaultRouteInput& WithActivationState(const RouteActivationState& value) { SetActivationState(value); return *this;} /** *

If set to ACTIVE, traffic is forwarded to this route’s service * after the route is created.

*/ inline DefaultRouteInput& WithActivationState(RouteActivationState&& value) { SetActivationState(std::move(value)); return *this;} private: RouteActivationState m_activationState; bool m_activationStateHasBeenSet = false; }; } // namespace Model } // namespace MigrationHubRefactorSpaces } // namespace Aws