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

See Also:

AWS * API Reference

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

The name of the gateway route.

*/ inline const Aws::String& GetGatewayRouteName() const{ return m_gatewayRouteName; } /** *

The name of the gateway route.

*/ inline bool GatewayRouteNameHasBeenSet() const { return m_gatewayRouteNameHasBeenSet; } /** *

The name of the gateway route.

*/ inline void SetGatewayRouteName(const Aws::String& value) { m_gatewayRouteNameHasBeenSet = true; m_gatewayRouteName = value; } /** *

The name of the gateway route.

*/ inline void SetGatewayRouteName(Aws::String&& value) { m_gatewayRouteNameHasBeenSet = true; m_gatewayRouteName = std::move(value); } /** *

The name of the gateway route.

*/ inline void SetGatewayRouteName(const char* value) { m_gatewayRouteNameHasBeenSet = true; m_gatewayRouteName.assign(value); } /** *

The name of the gateway route.

*/ inline GatewayRouteData& WithGatewayRouteName(const Aws::String& value) { SetGatewayRouteName(value); return *this;} /** *

The name of the gateway route.

*/ inline GatewayRouteData& WithGatewayRouteName(Aws::String&& value) { SetGatewayRouteName(std::move(value)); return *this;} /** *

The name of the gateway route.

*/ inline GatewayRouteData& WithGatewayRouteName(const char* value) { SetGatewayRouteName(value); return *this;} /** *

The name of the service mesh that the resource resides in.

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

The name of the service mesh that the resource resides in.

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

The name of the service mesh that the resource resides in.

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

The name of the service mesh that the resource resides in.

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

The name of the service mesh that the resource resides in.

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

The name of the service mesh that the resource resides in.

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

The name of the service mesh that the resource resides in.

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

The name of the service mesh that the resource resides in.

*/ inline GatewayRouteData& 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 GatewayRouteData& WithMetadata(const ResourceMetadata& value) { SetMetadata(value); return *this;} inline GatewayRouteData& WithMetadata(ResourceMetadata&& value) { SetMetadata(std::move(value)); return *this;} /** *

The specifications of the gateway route.

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

The specifications of the gateway route.

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

The specifications of the gateway route.

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

The specifications of the gateway route.

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

The specifications of the gateway route.

*/ inline GatewayRouteData& WithSpec(const GatewayRouteSpec& value) { SetSpec(value); return *this;} /** *

The specifications of the gateway route.

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

The status of the gateway route.

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

The status of the gateway route.

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

The status of the gateway route.

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

The status of the gateway route.

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

The status of the gateway route.

*/ inline GatewayRouteData& WithStatus(const GatewayRouteStatus& value) { SetStatus(value); return *this;} /** *

The status of the gateway route.

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

The virtual gateway that the gateway route is associated with.

*/ inline const Aws::String& GetVirtualGatewayName() const{ return m_virtualGatewayName; } /** *

The virtual gateway that the gateway route is associated with.

*/ inline bool VirtualGatewayNameHasBeenSet() const { return m_virtualGatewayNameHasBeenSet; } /** *

The virtual gateway that the gateway route is associated with.

*/ inline void SetVirtualGatewayName(const Aws::String& value) { m_virtualGatewayNameHasBeenSet = true; m_virtualGatewayName = value; } /** *

The virtual gateway that the gateway route is associated with.

*/ inline void SetVirtualGatewayName(Aws::String&& value) { m_virtualGatewayNameHasBeenSet = true; m_virtualGatewayName = std::move(value); } /** *

The virtual gateway that the gateway route is associated with.

*/ inline void SetVirtualGatewayName(const char* value) { m_virtualGatewayNameHasBeenSet = true; m_virtualGatewayName.assign(value); } /** *

The virtual gateway that the gateway route is associated with.

*/ inline GatewayRouteData& WithVirtualGatewayName(const Aws::String& value) { SetVirtualGatewayName(value); return *this;} /** *

The virtual gateway that the gateway route is associated with.

*/ inline GatewayRouteData& WithVirtualGatewayName(Aws::String&& value) { SetVirtualGatewayName(std::move(value)); return *this;} /** *

The virtual gateway that the gateway route is associated with.

*/ inline GatewayRouteData& WithVirtualGatewayName(const char* value) { SetVirtualGatewayName(value); return *this;} private: Aws::String m_gatewayRouteName; bool m_gatewayRouteNameHasBeenSet = false; Aws::String m_meshName; bool m_meshNameHasBeenSet = false; ResourceMetadata m_metadata; bool m_metadataHasBeenSet = false; GatewayRouteSpec m_spec; bool m_specHasBeenSet = false; GatewayRouteStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_virtualGatewayName; bool m_virtualGatewayNameHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws