/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object that represents an HTTP gateway route.See Also:
* AWS
* API Reference
An object that represents the action to take if a match is determined.
*/ inline const HttpGatewayRouteAction& 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 HttpGatewayRouteAction& value) { m_actionHasBeenSet = true; m_action = value; } /** *An object that represents the action to take if a match is determined.
*/ inline void SetAction(HttpGatewayRouteAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *An object that represents the action to take if a match is determined.
*/ inline HttpGatewayRoute& WithAction(const HttpGatewayRouteAction& value) { SetAction(value); return *this;} /** *An object that represents the action to take if a match is determined.
*/ inline HttpGatewayRoute& WithAction(HttpGatewayRouteAction&& value) { SetAction(std::move(value)); return *this;} /** *An object that represents the criteria for determining a request match.
*/ inline const HttpGatewayRouteMatch& 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 HttpGatewayRouteMatch& value) { m_matchHasBeenSet = true; m_match = value; } /** *An object that represents the criteria for determining a request match.
*/ inline void SetMatch(HttpGatewayRouteMatch&& value) { m_matchHasBeenSet = true; m_match = std::move(value); } /** *An object that represents the criteria for determining a request match.
*/ inline HttpGatewayRoute& WithMatch(const HttpGatewayRouteMatch& value) { SetMatch(value); return *this;} /** *An object that represents the criteria for determining a request match.
*/ inline HttpGatewayRoute& WithMatch(HttpGatewayRouteMatch&& value) { SetMatch(std::move(value)); return *this;} private: HttpGatewayRouteAction m_action; bool m_actionHasBeenSet = false; HttpGatewayRouteMatch m_match; bool m_matchHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws