/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 specification. Specify one gateway * route type.

See Also:

AWS * API Reference

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

An object that represents the specification of a gRPC gateway route.

*/ inline const GrpcGatewayRoute& GetGrpcRoute() const{ return m_grpcRoute; } /** *

An object that represents the specification of a gRPC gateway route.

*/ inline bool GrpcRouteHasBeenSet() const { return m_grpcRouteHasBeenSet; } /** *

An object that represents the specification of a gRPC gateway route.

*/ inline void SetGrpcRoute(const GrpcGatewayRoute& value) { m_grpcRouteHasBeenSet = true; m_grpcRoute = value; } /** *

An object that represents the specification of a gRPC gateway route.

*/ inline void SetGrpcRoute(GrpcGatewayRoute&& value) { m_grpcRouteHasBeenSet = true; m_grpcRoute = std::move(value); } /** *

An object that represents the specification of a gRPC gateway route.

*/ inline GatewayRouteSpec& WithGrpcRoute(const GrpcGatewayRoute& value) { SetGrpcRoute(value); return *this;} /** *

An object that represents the specification of a gRPC gateway route.

*/ inline GatewayRouteSpec& WithGrpcRoute(GrpcGatewayRoute&& value) { SetGrpcRoute(std::move(value)); return *this;} /** *

An object that represents the specification of an HTTP/2 gateway route.

*/ inline const HttpGatewayRoute& GetHttp2Route() const{ return m_http2Route; } /** *

An object that represents the specification of an HTTP/2 gateway route.

*/ inline bool Http2RouteHasBeenSet() const { return m_http2RouteHasBeenSet; } /** *

An object that represents the specification of an HTTP/2 gateway route.

*/ inline void SetHttp2Route(const HttpGatewayRoute& value) { m_http2RouteHasBeenSet = true; m_http2Route = value; } /** *

An object that represents the specification of an HTTP/2 gateway route.

*/ inline void SetHttp2Route(HttpGatewayRoute&& value) { m_http2RouteHasBeenSet = true; m_http2Route = std::move(value); } /** *

An object that represents the specification of an HTTP/2 gateway route.

*/ inline GatewayRouteSpec& WithHttp2Route(const HttpGatewayRoute& value) { SetHttp2Route(value); return *this;} /** *

An object that represents the specification of an HTTP/2 gateway route.

*/ inline GatewayRouteSpec& WithHttp2Route(HttpGatewayRoute&& value) { SetHttp2Route(std::move(value)); return *this;} /** *

An object that represents the specification of an HTTP gateway route.

*/ inline const HttpGatewayRoute& GetHttpRoute() const{ return m_httpRoute; } /** *

An object that represents the specification of an HTTP gateway route.

*/ inline bool HttpRouteHasBeenSet() const { return m_httpRouteHasBeenSet; } /** *

An object that represents the specification of an HTTP gateway route.

*/ inline void SetHttpRoute(const HttpGatewayRoute& value) { m_httpRouteHasBeenSet = true; m_httpRoute = value; } /** *

An object that represents the specification of an HTTP gateway route.

*/ inline void SetHttpRoute(HttpGatewayRoute&& value) { m_httpRouteHasBeenSet = true; m_httpRoute = std::move(value); } /** *

An object that represents the specification of an HTTP gateway route.

*/ inline GatewayRouteSpec& WithHttpRoute(const HttpGatewayRoute& value) { SetHttpRoute(value); return *this;} /** *

An object that represents the specification of an HTTP gateway route.

*/ inline GatewayRouteSpec& WithHttpRoute(HttpGatewayRoute&& value) { SetHttpRoute(std::move(value)); return *this;} /** *

The ordering of the gateway routes spec.

*/ inline int GetPriority() const{ return m_priority; } /** *

The ordering of the gateway routes spec.

*/ inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; } /** *

The ordering of the gateway routes spec.

*/ inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; } /** *

The ordering of the gateway routes spec.

*/ inline GatewayRouteSpec& WithPriority(int value) { SetPriority(value); return *this;} private: GrpcGatewayRoute m_grpcRoute; bool m_grpcRouteHasBeenSet = false; HttpGatewayRoute m_http2Route; bool m_http2RouteHasBeenSet = false; HttpGatewayRoute m_httpRoute; bool m_httpRouteHasBeenSet = false; int m_priority; bool m_priorityHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws