/** * 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 specification of a virtual * service.

See Also:

AWS * API Reference

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

The App Mesh object that is acting as the provider for a virtual service. You * can specify a single virtual node or virtual router.

*/ inline const VirtualServiceProvider& GetProvider() const{ return m_provider; } /** *

The App Mesh object that is acting as the provider for a virtual service. You * can specify a single virtual node or virtual router.

*/ inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; } /** *

The App Mesh object that is acting as the provider for a virtual service. You * can specify a single virtual node or virtual router.

*/ inline void SetProvider(const VirtualServiceProvider& value) { m_providerHasBeenSet = true; m_provider = value; } /** *

The App Mesh object that is acting as the provider for a virtual service. You * can specify a single virtual node or virtual router.

*/ inline void SetProvider(VirtualServiceProvider&& value) { m_providerHasBeenSet = true; m_provider = std::move(value); } /** *

The App Mesh object that is acting as the provider for a virtual service. You * can specify a single virtual node or virtual router.

*/ inline VirtualServiceSpec& WithProvider(const VirtualServiceProvider& value) { SetProvider(value); return *this;} /** *

The App Mesh object that is acting as the provider for a virtual service. You * can specify a single virtual node or virtual router.

*/ inline VirtualServiceSpec& WithProvider(VirtualServiceProvider&& value) { SetProvider(std::move(value)); return *this;} private: VirtualServiceProvider m_provider; bool m_providerHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws