/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AppMesh { namespace Model { /** *

An object representing the TCP route to match.

See Also:

AWS * API Reference

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

The port number to match on.

*/ inline int GetPort() const{ return m_port; } /** *

The port number to match on.

*/ inline bool PortHasBeenSet() const { return m_portHasBeenSet; } /** *

The port number to match on.

*/ inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; } /** *

The port number to match on.

*/ inline TcpRouteMatch& WithPort(int value) { SetPort(value); return *this;} private: int m_port; bool m_portHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws