/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object that represents a TCP route type.See Also:
AWS
* API Reference
The action to take if a match is determined.
*/ inline const TcpRouteAction& GetAction() const{ return m_action; } /** *The action to take if a match is determined.
*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *The action to take if a match is determined.
*/ inline void SetAction(const TcpRouteAction& value) { m_actionHasBeenSet = true; m_action = value; } /** *The action to take if a match is determined.
*/ inline void SetAction(TcpRouteAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *The action to take if a match is determined.
*/ inline TcpRoute& WithAction(const TcpRouteAction& value) { SetAction(value); return *this;} /** *The action to take if a match is determined.
*/ inline TcpRoute& WithAction(TcpRouteAction&& value) { SetAction(std::move(value)); return *this;} /** *An object that represents the criteria for determining a request match.
*/ inline const TcpRouteMatch& 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 TcpRouteMatch& value) { m_matchHasBeenSet = true; m_match = value; } /** *An object that represents the criteria for determining a request match.
*/ inline void SetMatch(TcpRouteMatch&& value) { m_matchHasBeenSet = true; m_match = std::move(value); } /** *An object that represents the criteria for determining a request match.
*/ inline TcpRoute& WithMatch(const TcpRouteMatch& value) { SetMatch(value); return *this;} /** *An object that represents the criteria for determining a request match.
*/ inline TcpRoute& WithMatch(TcpRouteMatch&& value) { SetMatch(std::move(value)); return *this;} /** *An object that represents types of timeouts.
*/ inline const TcpTimeout& GetTimeout() const{ return m_timeout; } /** *An object that represents types of timeouts.
*/ inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; } /** *An object that represents types of timeouts.
*/ inline void SetTimeout(const TcpTimeout& value) { m_timeoutHasBeenSet = true; m_timeout = value; } /** *An object that represents types of timeouts.
*/ inline void SetTimeout(TcpTimeout&& value) { m_timeoutHasBeenSet = true; m_timeout = std::move(value); } /** *An object that represents types of timeouts.
*/ inline TcpRoute& WithTimeout(const TcpTimeout& value) { SetTimeout(value); return *this;} /** *An object that represents types of timeouts.
*/ inline TcpRoute& WithTimeout(TcpTimeout&& value) { SetTimeout(std::move(value)); return *this;} private: TcpRouteAction m_action; bool m_actionHasBeenSet = false; TcpRouteMatch m_match; bool m_matchHasBeenSet = false; TcpTimeout m_timeout; bool m_timeoutHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws