/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 TCP route type.

See Also:

AWS * API Reference

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

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