AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NetworkReachabilityDetails.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/NetworkPath.h>
9#include <aws/inspector2/model/PortRange.h>
10#include <aws/inspector2/model/NetworkProtocol.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Inspector2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_INSPECTOR2_API NetworkReachabilityDetails();
40 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const NetworkPath& GetNetworkPath() const{ return m_networkPath; }
49 inline bool NetworkPathHasBeenSet() const { return m_networkPathHasBeenSet; }
50 inline void SetNetworkPath(const NetworkPath& value) { m_networkPathHasBeenSet = true; m_networkPath = value; }
51 inline void SetNetworkPath(NetworkPath&& value) { m_networkPathHasBeenSet = true; m_networkPath = std::move(value); }
52 inline NetworkReachabilityDetails& WithNetworkPath(const NetworkPath& value) { SetNetworkPath(value); return *this;}
53 inline NetworkReachabilityDetails& WithNetworkPath(NetworkPath&& value) { SetNetworkPath(std::move(value)); return *this;}
55
57
61 inline const PortRange& GetOpenPortRange() const{ return m_openPortRange; }
62 inline bool OpenPortRangeHasBeenSet() const { return m_openPortRangeHasBeenSet; }
63 inline void SetOpenPortRange(const PortRange& value) { m_openPortRangeHasBeenSet = true; m_openPortRange = value; }
64 inline void SetOpenPortRange(PortRange&& value) { m_openPortRangeHasBeenSet = true; m_openPortRange = std::move(value); }
65 inline NetworkReachabilityDetails& WithOpenPortRange(const PortRange& value) { SetOpenPortRange(value); return *this;}
66 inline NetworkReachabilityDetails& WithOpenPortRange(PortRange&& value) { SetOpenPortRange(std::move(value)); return *this;}
68
70
73 inline const NetworkProtocol& GetProtocol() const{ return m_protocol; }
74 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
75 inline void SetProtocol(const NetworkProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
76 inline void SetProtocol(NetworkProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
77 inline NetworkReachabilityDetails& WithProtocol(const NetworkProtocol& value) { SetProtocol(value); return *this;}
78 inline NetworkReachabilityDetails& WithProtocol(NetworkProtocol&& value) { SetProtocol(std::move(value)); return *this;}
80 private:
81
82 NetworkPath m_networkPath;
83 bool m_networkPathHasBeenSet = false;
84
85 PortRange m_openPortRange;
86 bool m_openPortRangeHasBeenSet = false;
87
88 NetworkProtocol m_protocol;
89 bool m_protocolHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace Inspector2
94} // namespace Aws
NetworkReachabilityDetails & WithOpenPortRange(PortRange &&value)
AWS_INSPECTOR2_API NetworkReachabilityDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
NetworkReachabilityDetails & WithNetworkPath(NetworkPath &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkReachabilityDetails & WithNetworkPath(const NetworkPath &value)
AWS_INSPECTOR2_API NetworkReachabilityDetails(Aws::Utils::Json::JsonView jsonValue)
NetworkReachabilityDetails & WithProtocol(const NetworkProtocol &value)
NetworkReachabilityDetails & WithOpenPortRange(const PortRange &value)
NetworkReachabilityDetails & WithProtocol(NetworkProtocol &&value)
Aws::Utils::Json::JsonValue JsonValue