/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object that represents a gRPC gateway route.See Also:
AWS
* API Reference
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