/** * 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 AWS_APPMESH_API GatewayRouteSpec { public: GatewayRouteSpec(); GatewayRouteSpec(Aws::Utils::Json::JsonView jsonValue); GatewayRouteSpec& operator=(Aws::Utils::Json::JsonView jsonValue); 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;} private: GrpcGatewayRoute m_grpcRoute; bool m_grpcRouteHasBeenSet; HttpGatewayRoute m_http2Route; bool m_http2RouteHasBeenSet; HttpGatewayRoute m_httpRoute; bool m_httpRouteHasBeenSet; }; } // namespace Model } // namespace AppMesh } // namespace Aws