/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 the criteria for determining a request * match.

See Also:

AWS * API Reference

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

Specifies the path to match requests with. This parameter must always start * with /, which by itself matches all requests to the * virtual service name. You can also match for path-based routing of * requests. For example, if your virtual service name is * my-service.local and you want the route to match requests to * my-service.local/metrics, your prefix should be * /metrics.

*/ inline const Aws::String& GetPrefix() const{ return m_prefix; } /** *

Specifies the path to match requests with. This parameter must always start * with /, which by itself matches all requests to the * virtual service name. You can also match for path-based routing of * requests. For example, if your virtual service name is * my-service.local and you want the route to match requests to * my-service.local/metrics, your prefix should be * /metrics.

*/ inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; } /** *

Specifies the path to match requests with. This parameter must always start * with /, which by itself matches all requests to the * virtual service name. You can also match for path-based routing of * requests. For example, if your virtual service name is * my-service.local and you want the route to match requests to * my-service.local/metrics, your prefix should be * /metrics.

*/ inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; } /** *

Specifies the path to match requests with. This parameter must always start * with /, which by itself matches all requests to the * virtual service name. You can also match for path-based routing of * requests. For example, if your virtual service name is * my-service.local and you want the route to match requests to * my-service.local/metrics, your prefix should be * /metrics.

*/ inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); } /** *

Specifies the path to match requests with. This parameter must always start * with /, which by itself matches all requests to the * virtual service name. You can also match for path-based routing of * requests. For example, if your virtual service name is * my-service.local and you want the route to match requests to * my-service.local/metrics, your prefix should be * /metrics.

*/ inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); } /** *

Specifies the path to match requests with. This parameter must always start * with /, which by itself matches all requests to the * virtual service name. You can also match for path-based routing of * requests. For example, if your virtual service name is * my-service.local and you want the route to match requests to * my-service.local/metrics, your prefix should be * /metrics.

*/ inline HttpGatewayRouteMatch& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;} /** *

Specifies the path to match requests with. This parameter must always start * with /, which by itself matches all requests to the * virtual service name. You can also match for path-based routing of * requests. For example, if your virtual service name is * my-service.local and you want the route to match requests to * my-service.local/metrics, your prefix should be * /metrics.

*/ inline HttpGatewayRouteMatch& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;} /** *

Specifies the path to match requests with. This parameter must always start * with /, which by itself matches all requests to the * virtual service name. You can also match for path-based routing of * requests. For example, if your virtual service name is * my-service.local and you want the route to match requests to * my-service.local/metrics, your prefix should be * /metrics.

*/ inline HttpGatewayRouteMatch& WithPrefix(const char* value) { SetPrefix(value); return *this;} private: Aws::String m_prefix; bool m_prefixHasBeenSet; }; } // namespace Model } // namespace AppMesh } // namespace Aws