/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #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 a virtual router returned by a describe * operation.

See Also:

AWS * API Reference

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

The name of the service mesh that the virtual router resides in.

*/ inline const Aws::String& GetMeshName() const{ return m_meshName; } /** *

The name of the service mesh that the virtual router resides in.

*/ inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; } /** *

The name of the service mesh that the virtual router resides in.

*/ inline void SetMeshName(const Aws::String& value) { m_meshNameHasBeenSet = true; m_meshName = value; } /** *

The name of the service mesh that the virtual router 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 router resides in.

*/ inline void SetMeshName(const char* value) { m_meshNameHasBeenSet = true; m_meshName.assign(value); } /** *

The name of the service mesh that the virtual router resides in.

*/ inline VirtualRouterData& WithMeshName(const Aws::String& value) { SetMeshName(value); return *this;} /** *

The name of the service mesh that the virtual router resides in.

*/ inline VirtualRouterData& WithMeshName(Aws::String&& value) { SetMeshName(std::move(value)); return *this;} /** *

The name of the service mesh that the virtual router resides in.

*/ inline VirtualRouterData& WithMeshName(const char* value) { SetMeshName(value); return *this;} /** *

The associated metadata for the virtual router.

*/ inline const ResourceMetadata& GetMetadata() const{ return m_metadata; } /** *

The associated metadata for the virtual router.

*/ inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; } /** *

The associated metadata for the virtual router.

*/ inline void SetMetadata(const ResourceMetadata& value) { m_metadataHasBeenSet = true; m_metadata = value; } /** *

The associated metadata for the virtual router.

*/ inline void SetMetadata(ResourceMetadata&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); } /** *

The associated metadata for the virtual router.

*/ inline VirtualRouterData& WithMetadata(const ResourceMetadata& value) { SetMetadata(value); return *this;} /** *

The associated metadata for the virtual router.

*/ inline VirtualRouterData& WithMetadata(ResourceMetadata&& value) { SetMetadata(std::move(value)); return *this;} /** *

The specifications of the virtual router.

*/ inline const VirtualRouterSpec& GetSpec() const{ return m_spec; } /** *

The specifications of the virtual router.

*/ inline bool SpecHasBeenSet() const { return m_specHasBeenSet; } /** *

The specifications of the virtual router.

*/ inline void SetSpec(const VirtualRouterSpec& value) { m_specHasBeenSet = true; m_spec = value; } /** *

The specifications of the virtual router.

*/ inline void SetSpec(VirtualRouterSpec&& value) { m_specHasBeenSet = true; m_spec = std::move(value); } /** *

The specifications of the virtual router.

*/ inline VirtualRouterData& WithSpec(const VirtualRouterSpec& value) { SetSpec(value); return *this;} /** *

The specifications of the virtual router.

*/ inline VirtualRouterData& WithSpec(VirtualRouterSpec&& value) { SetSpec(std::move(value)); return *this;} /** *

The current status of the virtual router.

*/ inline const VirtualRouterStatus& GetStatus() const{ return m_status; } /** *

The current status of the virtual router.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current status of the virtual router.

*/ inline void SetStatus(const VirtualRouterStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The current status of the virtual router.

*/ inline void SetStatus(VirtualRouterStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The current status of the virtual router.

*/ inline VirtualRouterData& WithStatus(const VirtualRouterStatus& value) { SetStatus(value); return *this;} /** *

The current status of the virtual router.

*/ inline VirtualRouterData& WithStatus(VirtualRouterStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The name of the virtual router.

*/ inline const Aws::String& GetVirtualRouterName() const{ return m_virtualRouterName; } /** *

The name of the virtual router.

*/ inline bool VirtualRouterNameHasBeenSet() const { return m_virtualRouterNameHasBeenSet; } /** *

The name of the virtual router.

*/ inline void SetVirtualRouterName(const Aws::String& value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName = value; } /** *

The name of the virtual router.

*/ inline void SetVirtualRouterName(Aws::String&& value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName = std::move(value); } /** *

The name of the virtual router.

*/ inline void SetVirtualRouterName(const char* value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName.assign(value); } /** *

The name of the virtual router.

*/ inline VirtualRouterData& WithVirtualRouterName(const Aws::String& value) { SetVirtualRouterName(value); return *this;} /** *

The name of the virtual router.

*/ inline VirtualRouterData& WithVirtualRouterName(Aws::String&& value) { SetVirtualRouterName(std::move(value)); return *this;} /** *

The name of the virtual router.

*/ inline VirtualRouterData& WithVirtualRouterName(const char* value) { SetVirtualRouterName(value); return *this;} private: Aws::String m_meshName; bool m_meshNameHasBeenSet = false; ResourceMetadata m_metadata; bool m_metadataHasBeenSet = false; VirtualRouterSpec m_spec; bool m_specHasBeenSet = false; VirtualRouterStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_virtualRouterName; bool m_virtualRouterNameHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws