AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
TcpRouteMatch.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace AppMesh {
17namespace Model {
18
25 public:
26 AWS_APPMESH_API TcpRouteMatch() = default;
27 AWS_APPMESH_API TcpRouteMatch(Aws::Utils::Json::JsonView jsonValue);
29 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
35 inline int GetPort() const { return m_port; }
36 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
37 inline void SetPort(int value) {
38 m_portHasBeenSet = true;
39 m_port = value;
40 }
41 inline TcpRouteMatch& WithPort(int value) {
42 SetPort(value);
43 return *this;
44 }
46 private:
47 int m_port{0};
48 bool m_portHasBeenSet = false;
49};
50
51} // namespace Model
52} // namespace AppMesh
53} // namespace Aws
AWS_APPMESH_API TcpRouteMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
TcpRouteMatch & WithPort(int value)
AWS_APPMESH_API TcpRouteMatch()=default
AWS_APPMESH_API TcpRouteMatch(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue