/** * 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 node returned by a describe * operation.

See Also:

AWS * API Reference

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

The associated metadata for the virtual node.

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

The associated metadata for the virtual node.

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

The associated metadata for the virtual node.

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

The associated metadata for the virtual node.

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

The associated metadata for the virtual node.

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

The associated metadata for the virtual node.

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

The specifications of the virtual node.

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

The specifications of the virtual node.

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

The specifications of the virtual node.

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

The specifications of the virtual node.

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

The specifications of the virtual node.

*/ inline VirtualNodeData& WithSpec(const VirtualNodeSpec& value) { SetSpec(value); return *this;} /** *

The specifications of the virtual node.

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

The current status for the virtual node.

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

The current status for the virtual node.

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

The current status for the virtual node.

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

The current status for the virtual node.

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

The current status for the virtual node.

*/ inline VirtualNodeData& WithStatus(const VirtualNodeStatus& value) { SetStatus(value); return *this;} /** *

The current status for the virtual node.

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

The name of the virtual node.

*/ inline const Aws::String& GetVirtualNodeName() const{ return m_virtualNodeName; } /** *

The name of the virtual node.

*/ inline bool VirtualNodeNameHasBeenSet() const { return m_virtualNodeNameHasBeenSet; } /** *

The name of the virtual node.

*/ inline void SetVirtualNodeName(const Aws::String& value) { m_virtualNodeNameHasBeenSet = true; m_virtualNodeName = value; } /** *

The name of the virtual node.

*/ inline void SetVirtualNodeName(Aws::String&& value) { m_virtualNodeNameHasBeenSet = true; m_virtualNodeName = std::move(value); } /** *

The name of the virtual node.

*/ inline void SetVirtualNodeName(const char* value) { m_virtualNodeNameHasBeenSet = true; m_virtualNodeName.assign(value); } /** *

The name of the virtual node.

*/ inline VirtualNodeData& WithVirtualNodeName(const Aws::String& value) { SetVirtualNodeName(value); return *this;} /** *

The name of the virtual node.

*/ inline VirtualNodeData& WithVirtualNodeName(Aws::String&& value) { SetVirtualNodeName(std::move(value)); return *this;} /** *

The name of the virtual node.

*/ inline VirtualNodeData& WithVirtualNodeName(const char* value) { SetVirtualNodeName(value); return *this;} private: Aws::String m_meshName; bool m_meshNameHasBeenSet = false; ResourceMetadata m_metadata; bool m_metadataHasBeenSet = false; VirtualNodeSpec m_spec; bool m_specHasBeenSet = false; VirtualNodeStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_virtualNodeName; bool m_virtualNodeNameHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws