/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object that represents a virtual service returned by a describe
* operation.See Also:
AWS
* API Reference
The name of the service mesh that the virtual service resides in.
*/ inline const Aws::String& GetMeshName() const{ return m_meshName; } /** *The name of the service mesh that the virtual service resides in.
*/ inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; } /** *The name of the service mesh that the virtual service resides in.
*/ inline void SetMeshName(const Aws::String& value) { m_meshNameHasBeenSet = true; m_meshName = value; } /** *The name of the service mesh that the virtual service resides in.
*/ inline void SetMeshName(Aws::String&& value) { m_meshNameHasBeenSet = true; m_meshName = std::move(value); } /** *The name of the service mesh that the virtual service resides in.
*/ inline void SetMeshName(const char* value) { m_meshNameHasBeenSet = true; m_meshName.assign(value); } /** *The name of the service mesh that the virtual service resides in.
*/ inline VirtualServiceData& WithMeshName(const Aws::String& value) { SetMeshName(value); return *this;} /** *The name of the service mesh that the virtual service resides in.
*/ inline VirtualServiceData& WithMeshName(Aws::String&& value) { SetMeshName(std::move(value)); return *this;} /** *The name of the service mesh that the virtual service resides in.
*/ inline VirtualServiceData& WithMeshName(const char* value) { SetMeshName(value); return *this;} inline const ResourceMetadata& GetMetadata() const{ return m_metadata; } inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; } inline void SetMetadata(const ResourceMetadata& value) { m_metadataHasBeenSet = true; m_metadata = value; } inline void SetMetadata(ResourceMetadata&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); } inline VirtualServiceData& WithMetadata(const ResourceMetadata& value) { SetMetadata(value); return *this;} inline VirtualServiceData& WithMetadata(ResourceMetadata&& value) { SetMetadata(std::move(value)); return *this;} /** *The specifications of the virtual service.
*/ inline const VirtualServiceSpec& GetSpec() const{ return m_spec; } /** *The specifications of the virtual service.
*/ inline bool SpecHasBeenSet() const { return m_specHasBeenSet; } /** *The specifications of the virtual service.
*/ inline void SetSpec(const VirtualServiceSpec& value) { m_specHasBeenSet = true; m_spec = value; } /** *The specifications of the virtual service.
*/ inline void SetSpec(VirtualServiceSpec&& value) { m_specHasBeenSet = true; m_spec = std::move(value); } /** *The specifications of the virtual service.
*/ inline VirtualServiceData& WithSpec(const VirtualServiceSpec& value) { SetSpec(value); return *this;} /** *The specifications of the virtual service.
*/ inline VirtualServiceData& WithSpec(VirtualServiceSpec&& value) { SetSpec(std::move(value)); return *this;} /** *The current status of the virtual service.
*/ inline const VirtualServiceStatus& GetStatus() const{ return m_status; } /** *The current status of the virtual service.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The current status of the virtual service.
*/ inline void SetStatus(const VirtualServiceStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The current status of the virtual service.
*/ inline void SetStatus(VirtualServiceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The current status of the virtual service.
*/ inline VirtualServiceData& WithStatus(const VirtualServiceStatus& value) { SetStatus(value); return *this;} /** *The current status of the virtual service.
*/ inline VirtualServiceData& WithStatus(VirtualServiceStatus&& value) { SetStatus(std::move(value)); return *this;} /** *The name of the virtual service.
*/ inline const Aws::String& GetVirtualServiceName() const{ return m_virtualServiceName; } /** *The name of the virtual service.
*/ inline bool VirtualServiceNameHasBeenSet() const { return m_virtualServiceNameHasBeenSet; } /** *The name of the virtual service.
*/ inline void SetVirtualServiceName(const Aws::String& value) { m_virtualServiceNameHasBeenSet = true; m_virtualServiceName = value; } /** *The name of the virtual service.
*/ inline void SetVirtualServiceName(Aws::String&& value) { m_virtualServiceNameHasBeenSet = true; m_virtualServiceName = std::move(value); } /** *The name of the virtual service.
*/ inline void SetVirtualServiceName(const char* value) { m_virtualServiceNameHasBeenSet = true; m_virtualServiceName.assign(value); } /** *The name of the virtual service.
*/ inline VirtualServiceData& WithVirtualServiceName(const Aws::String& value) { SetVirtualServiceName(value); return *this;} /** *The name of the virtual service.
*/ inline VirtualServiceData& WithVirtualServiceName(Aws::String&& value) { SetVirtualServiceName(std::move(value)); return *this;} /** *The name of the virtual service.
*/ inline VirtualServiceData& WithVirtualServiceName(const char* value) { SetVirtualServiceName(value); return *this;} private: Aws::String m_meshName; bool m_meshNameHasBeenSet = false; ResourceMetadata m_metadata; bool m_metadataHasBeenSet = false; VirtualServiceSpec m_spec; bool m_specHasBeenSet = false; VirtualServiceStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_virtualServiceName; bool m_virtualServiceNameHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws