/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object that represents a route returned by a describe
* operation.See Also:
AWS
* API Reference
The name of the service mesh that the route resides in.
*/ inline const Aws::String& GetMeshName() const{ return m_meshName; } /** *The name of the service mesh that the route resides in.
*/ inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; } /** *The name of the service mesh that the route resides in.
*/ inline void SetMeshName(const Aws::String& value) { m_meshNameHasBeenSet = true; m_meshName = value; } /** *The name of the service mesh that the route resides in.
*/ inline void SetMeshName(Aws::String&& value) { m_meshNameHasBeenSet = true; m_meshName = std::move(value); } /** *The name of the service mesh that the route resides in.
*/ inline void SetMeshName(const char* value) { m_meshNameHasBeenSet = true; m_meshName.assign(value); } /** *The name of the service mesh that the route resides in.
*/ inline RouteData& WithMeshName(const Aws::String& value) { SetMeshName(value); return *this;} /** *The name of the service mesh that the route resides in.
*/ inline RouteData& WithMeshName(Aws::String&& value) { SetMeshName(std::move(value)); return *this;} /** *The name of the service mesh that the route resides in.
*/ inline RouteData& WithMeshName(const char* value) { SetMeshName(value); return *this;} /** *The associated metadata for the route.
*/ inline const ResourceMetadata& GetMetadata() const{ return m_metadata; } /** *The associated metadata for the route.
*/ inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; } /** *The associated metadata for the route.
*/ inline void SetMetadata(const ResourceMetadata& value) { m_metadataHasBeenSet = true; m_metadata = value; } /** *The associated metadata for the route.
*/ inline void SetMetadata(ResourceMetadata&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); } /** *The associated metadata for the route.
*/ inline RouteData& WithMetadata(const ResourceMetadata& value) { SetMetadata(value); return *this;} /** *The associated metadata for the route.
*/ inline RouteData& WithMetadata(ResourceMetadata&& value) { SetMetadata(std::move(value)); return *this;} /** *The name of the route.
*/ inline const Aws::String& GetRouteName() const{ return m_routeName; } /** *The name of the route.
*/ inline bool RouteNameHasBeenSet() const { return m_routeNameHasBeenSet; } /** *The name of the route.
*/ inline void SetRouteName(const Aws::String& value) { m_routeNameHasBeenSet = true; m_routeName = value; } /** *The name of the route.
*/ inline void SetRouteName(Aws::String&& value) { m_routeNameHasBeenSet = true; m_routeName = std::move(value); } /** *The name of the route.
*/ inline void SetRouteName(const char* value) { m_routeNameHasBeenSet = true; m_routeName.assign(value); } /** *The name of the route.
*/ inline RouteData& WithRouteName(const Aws::String& value) { SetRouteName(value); return *this;} /** *The name of the route.
*/ inline RouteData& WithRouteName(Aws::String&& value) { SetRouteName(std::move(value)); return *this;} /** *The name of the route.
*/ inline RouteData& WithRouteName(const char* value) { SetRouteName(value); return *this;} /** *The specifications of the route.
*/ inline const RouteSpec& GetSpec() const{ return m_spec; } /** *The specifications of the route.
*/ inline bool SpecHasBeenSet() const { return m_specHasBeenSet; } /** *The specifications of the route.
*/ inline void SetSpec(const RouteSpec& value) { m_specHasBeenSet = true; m_spec = value; } /** *The specifications of the route.
*/ inline void SetSpec(RouteSpec&& value) { m_specHasBeenSet = true; m_spec = std::move(value); } /** *The specifications of the route.
*/ inline RouteData& WithSpec(const RouteSpec& value) { SetSpec(value); return *this;} /** *The specifications of the route.
*/ inline RouteData& WithSpec(RouteSpec&& value) { SetSpec(std::move(value)); return *this;} /** *The status of the route.
*/ inline const RouteStatus& GetStatus() const{ return m_status; } /** *The status of the route.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the route.
*/ inline void SetStatus(const RouteStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the route.
*/ inline void SetStatus(RouteStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the route.
*/ inline RouteData& WithStatus(const RouteStatus& value) { SetStatus(value); return *this;} /** *The status of the route.
*/ inline RouteData& WithStatus(RouteStatus&& value) { SetStatus(std::move(value)); return *this;} /** *The virtual router that the route is associated with.
*/ inline const Aws::String& GetVirtualRouterName() const{ return m_virtualRouterName; } /** *The virtual router that the route is associated with.
*/ inline bool VirtualRouterNameHasBeenSet() const { return m_virtualRouterNameHasBeenSet; } /** *The virtual router that the route is associated with.
*/ inline void SetVirtualRouterName(const Aws::String& value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName = value; } /** *The virtual router that the route is associated with.
*/ inline void SetVirtualRouterName(Aws::String&& value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName = std::move(value); } /** *The virtual router that the route is associated with.
*/ inline void SetVirtualRouterName(const char* value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName.assign(value); } /** *The virtual router that the route is associated with.
*/ inline RouteData& WithVirtualRouterName(const Aws::String& value) { SetVirtualRouterName(value); return *this;} /** *The virtual router that the route is associated with.
*/ inline RouteData& WithVirtualRouterName(Aws::String&& value) { SetVirtualRouterName(std::move(value)); return *this;} /** *The virtual router that the route is associated with.
*/ inline RouteData& WithVirtualRouterName(const char* value) { SetVirtualRouterName(value); return *this;} private: Aws::String m_meshName; bool m_meshNameHasBeenSet = false; ResourceMetadata m_metadata; bool m_metadataHasBeenSet = false; Aws::String m_routeName; bool m_routeNameHasBeenSet = false; RouteSpec m_spec; bool m_specHasBeenSet = false; RouteStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_virtualRouterName; bool m_virtualRouterNameHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws