AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
PortProbeDetail.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/model/LocalIpDetails.h>
9#include <aws/guardduty/model/LocalPortDetails.h>
10#include <aws/guardduty/model/RemoteIpDetails.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty {
22namespace Model {
23
31 public:
32 AWS_GUARDDUTY_API PortProbeDetail() = default;
33 AWS_GUARDDUTY_API PortProbeDetail(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const LocalPortDetails& GetLocalPortDetails() const { return m_localPortDetails; }
42 inline bool LocalPortDetailsHasBeenSet() const { return m_localPortDetailsHasBeenSet; }
43 template <typename LocalPortDetailsT = LocalPortDetails>
44 void SetLocalPortDetails(LocalPortDetailsT&& value) {
45 m_localPortDetailsHasBeenSet = true;
46 m_localPortDetails = std::forward<LocalPortDetailsT>(value);
47 }
48 template <typename LocalPortDetailsT = LocalPortDetails>
49 PortProbeDetail& WithLocalPortDetails(LocalPortDetailsT&& value) {
50 SetLocalPortDetails(std::forward<LocalPortDetailsT>(value));
51 return *this;
52 }
54
56
59 inline const LocalIpDetails& GetLocalIpDetails() const { return m_localIpDetails; }
60 inline bool LocalIpDetailsHasBeenSet() const { return m_localIpDetailsHasBeenSet; }
61 template <typename LocalIpDetailsT = LocalIpDetails>
62 void SetLocalIpDetails(LocalIpDetailsT&& value) {
63 m_localIpDetailsHasBeenSet = true;
64 m_localIpDetails = std::forward<LocalIpDetailsT>(value);
65 }
66 template <typename LocalIpDetailsT = LocalIpDetails>
67 PortProbeDetail& WithLocalIpDetails(LocalIpDetailsT&& value) {
68 SetLocalIpDetails(std::forward<LocalIpDetailsT>(value));
69 return *this;
70 }
72
74
77 inline const RemoteIpDetails& GetRemoteIpDetails() const { return m_remoteIpDetails; }
78 inline bool RemoteIpDetailsHasBeenSet() const { return m_remoteIpDetailsHasBeenSet; }
79 template <typename RemoteIpDetailsT = RemoteIpDetails>
80 void SetRemoteIpDetails(RemoteIpDetailsT&& value) {
81 m_remoteIpDetailsHasBeenSet = true;
82 m_remoteIpDetails = std::forward<RemoteIpDetailsT>(value);
83 }
84 template <typename RemoteIpDetailsT = RemoteIpDetails>
85 PortProbeDetail& WithRemoteIpDetails(RemoteIpDetailsT&& value) {
86 SetRemoteIpDetails(std::forward<RemoteIpDetailsT>(value));
87 return *this;
88 }
90 private:
91 LocalPortDetails m_localPortDetails;
92
93 LocalIpDetails m_localIpDetails;
94
95 RemoteIpDetails m_remoteIpDetails;
96 bool m_localPortDetailsHasBeenSet = false;
97 bool m_localIpDetailsHasBeenSet = false;
98 bool m_remoteIpDetailsHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace GuardDuty
103} // namespace Aws
void SetRemoteIpDetails(RemoteIpDetailsT &&value)
const LocalIpDetails & GetLocalIpDetails() const
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLocalPortDetails(LocalPortDetailsT &&value)
void SetLocalIpDetails(LocalIpDetailsT &&value)
PortProbeDetail & WithRemoteIpDetails(RemoteIpDetailsT &&value)
AWS_GUARDDUTY_API PortProbeDetail(Aws::Utils::Json::JsonView jsonValue)
const LocalPortDetails & GetLocalPortDetails() const
AWS_GUARDDUTY_API PortProbeDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
PortProbeDetail & WithLocalIpDetails(LocalIpDetailsT &&value)
const RemoteIpDetails & GetRemoteIpDetails() const
PortProbeDetail & WithLocalPortDetails(LocalPortDetailsT &&value)
AWS_GUARDDUTY_API PortProbeDetail()=default
Aws::Utils::Json::JsonValue JsonValue