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

An object that represents the virtual service that traffic is routed * to.

See Also:

AWS * API Reference

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

The name of the virtual service that traffic is routed to.

*/ inline const Aws::String& GetVirtualServiceName() const{ return m_virtualServiceName; } /** *

The name of the virtual service that traffic is routed to.

*/ inline bool VirtualServiceNameHasBeenSet() const { return m_virtualServiceNameHasBeenSet; } /** *

The name of the virtual service that traffic is routed to.

*/ inline void SetVirtualServiceName(const Aws::String& value) { m_virtualServiceNameHasBeenSet = true; m_virtualServiceName = value; } /** *

The name of the virtual service that traffic is routed to.

*/ inline void SetVirtualServiceName(Aws::String&& value) { m_virtualServiceNameHasBeenSet = true; m_virtualServiceName = std::move(value); } /** *

The name of the virtual service that traffic is routed to.

*/ inline void SetVirtualServiceName(const char* value) { m_virtualServiceNameHasBeenSet = true; m_virtualServiceName.assign(value); } /** *

The name of the virtual service that traffic is routed to.

*/ inline GatewayRouteVirtualService& WithVirtualServiceName(const Aws::String& value) { SetVirtualServiceName(value); return *this;} /** *

The name of the virtual service that traffic is routed to.

*/ inline GatewayRouteVirtualService& WithVirtualServiceName(Aws::String&& value) { SetVirtualServiceName(std::move(value)); return *this;} /** *

The name of the virtual service that traffic is routed to.

*/ inline GatewayRouteVirtualService& WithVirtualServiceName(const char* value) { SetVirtualServiceName(value); return *this;} private: Aws::String m_virtualServiceName; bool m_virtualServiceNameHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws