/** * 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 gRPC gateway route.

See Also:

AWS * API Reference

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

An object that represents the action to take if a match is determined.

*/ inline const GrpcGatewayRouteAction& GetAction() const{ return m_action; } /** *

An object that represents the action to take if a match is determined.

*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *

An object that represents the action to take if a match is determined.

*/ inline void SetAction(const GrpcGatewayRouteAction& value) { m_actionHasBeenSet = true; m_action = value; } /** *

An object that represents the action to take if a match is determined.

*/ inline void SetAction(GrpcGatewayRouteAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *

An object that represents the action to take if a match is determined.

*/ inline GrpcGatewayRoute& WithAction(const GrpcGatewayRouteAction& value) { SetAction(value); return *this;} /** *

An object that represents the action to take if a match is determined.

*/ inline GrpcGatewayRoute& WithAction(GrpcGatewayRouteAction&& value) { SetAction(std::move(value)); return *this;} /** *

An object that represents the criteria for determining a request match.

*/ inline const GrpcGatewayRouteMatch& GetMatch() const{ return m_match; } /** *

An object that represents the criteria for determining a request match.

*/ inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; } /** *

An object that represents the criteria for determining a request match.

*/ inline void SetMatch(const GrpcGatewayRouteMatch& value) { m_matchHasBeenSet = true; m_match = value; } /** *

An object that represents the criteria for determining a request match.

*/ inline void SetMatch(GrpcGatewayRouteMatch&& value) { m_matchHasBeenSet = true; m_match = std::move(value); } /** *

An object that represents the criteria for determining a request match.

*/ inline GrpcGatewayRoute& WithMatch(const GrpcGatewayRouteMatch& value) { SetMatch(value); return *this;} /** *

An object that represents the criteria for determining a request match.

*/ inline GrpcGatewayRoute& WithMatch(GrpcGatewayRouteMatch&& value) { SetMatch(std::move(value)); return *this;} private: GrpcGatewayRouteAction m_action; bool m_actionHasBeenSet = false; GrpcGatewayRouteMatch m_match; bool m_matchHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws