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

See Also:

AWS * API Reference

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

The name of the service mesh.

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

The name of the service mesh.

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

The name of the service mesh.

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

The name of the service mesh.

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

The name of the service mesh.

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

The name of the service mesh.

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

The name of the service mesh.

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

The name of the service mesh.

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

The associated metadata for the service mesh.

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

The associated metadata for the service mesh.

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

The associated metadata for the service mesh.

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

The associated metadata for the service mesh.

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

The associated metadata for the service mesh.

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

The associated metadata for the service mesh.

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

The associated specification for the service mesh.

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

The associated specification for the service mesh.

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

The associated specification for the service mesh.

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

The associated specification for the service mesh.

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

The associated specification for the service mesh.

*/ inline MeshData& WithSpec(const MeshSpec& value) { SetSpec(value); return *this;} /** *

The associated specification for the service mesh.

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

The status of the service mesh.

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

The status of the service mesh.

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

The status of the service mesh.

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

The status of the service mesh.

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

The status of the service mesh.

*/ inline MeshData& WithStatus(const MeshStatus& value) { SetStatus(value); return *this;} /** *

The status of the service mesh.

*/ inline MeshData& WithStatus(MeshStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_meshName; bool m_meshNameHasBeenSet = false; ResourceMetadata m_metadata; bool m_metadataHasBeenSet = false; MeshSpec m_spec; bool m_specHasBeenSet = false; MeshStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws