AWS SDK for C++

AWS SDK for C++ Version 1.11.750

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/NetworkProtocol.h>
10#include <aws/inspector2/model/PortRange.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector2 {
22namespace Model {
23
31 public:
32 AWS_INSPECTOR2_API NetworkReachabilityDetails() = default;
35 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const PortRange& GetOpenPortRange() const { return m_openPortRange; }
43 inline bool OpenPortRangeHasBeenSet() const { return m_openPortRangeHasBeenSet; }
44 template <typename OpenPortRangeT = PortRange>
45 void SetOpenPortRange(OpenPortRangeT&& value) {
46 m_openPortRangeHasBeenSet = true;
47 m_openPortRange = std::forward<OpenPortRangeT>(value);
48 }
49 template <typename OpenPortRangeT = PortRange>
51 SetOpenPortRange(std::forward<OpenPortRangeT>(value));
52 return *this;
53 }
55
57
60 inline NetworkProtocol GetProtocol() const { return m_protocol; }
61 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
62 inline void SetProtocol(NetworkProtocol value) {
63 m_protocolHasBeenSet = true;
64 m_protocol = value;
65 }
67 SetProtocol(value);
68 return *this;
69 }
71
73
77 inline const NetworkPath& GetNetworkPath() const { return m_networkPath; }
78 inline bool NetworkPathHasBeenSet() const { return m_networkPathHasBeenSet; }
79 template <typename NetworkPathT = NetworkPath>
80 void SetNetworkPath(NetworkPathT&& value) {
81 m_networkPathHasBeenSet = true;
82 m_networkPath = std::forward<NetworkPathT>(value);
83 }
84 template <typename NetworkPathT = NetworkPath>
86 SetNetworkPath(std::forward<NetworkPathT>(value));
87 return *this;
88 }
90 private:
91 PortRange m_openPortRange;
92
94
95 NetworkPath m_networkPath;
96 bool m_openPortRangeHasBeenSet = false;
97 bool m_protocolHasBeenSet = false;
98 bool m_networkPathHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace Inspector2
103} // namespace Aws
AWS_INSPECTOR2_API NetworkReachabilityDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkReachabilityDetails & WithNetworkPath(NetworkPathT &&value)
AWS_INSPECTOR2_API NetworkReachabilityDetails(Aws::Utils::Json::JsonView jsonValue)
NetworkReachabilityDetails & WithProtocol(NetworkProtocol value)
NetworkReachabilityDetails & WithOpenPortRange(OpenPortRangeT &&value)
AWS_INSPECTOR2_API NetworkReachabilityDetails()=default
Aws::Utils::Json::JsonValue JsonValue