/**
* 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 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; TcpTimeout m_timeout; bool m_timeoutHasBeenSet; }; } // namespace Model } // namespace AppMesh } // namespace Aws