AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
NetworkEndpoint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9#include <aws/securityhub/model/NetworkAutonomousSystem.h>
10#include <aws/securityhub/model/NetworkConnection.h>
11#include <aws/securityhub/model/NetworkGeoLocation.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SecurityHub {
23namespace Model {
24
40 public:
41 AWS_SECURITYHUB_API NetworkEndpoint() = default;
42 AWS_SECURITYHUB_API NetworkEndpoint(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SECURITYHUB_API NetworkEndpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
50 inline const Aws::String& GetId() const { return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 template <typename IdT = Aws::String>
53 void SetId(IdT&& value) {
54 m_idHasBeenSet = true;
55 m_id = std::forward<IdT>(value);
56 }
57 template <typename IdT = Aws::String>
58 NetworkEndpoint& WithId(IdT&& value) {
59 SetId(std::forward<IdT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetIp() const { return m_ip; }
69 inline bool IpHasBeenSet() const { return m_ipHasBeenSet; }
70 template <typename IpT = Aws::String>
71 void SetIp(IpT&& value) {
72 m_ipHasBeenSet = true;
73 m_ip = std::forward<IpT>(value);
74 }
75 template <typename IpT = Aws::String>
76 NetworkEndpoint& WithIp(IpT&& value) {
77 SetIp(std::forward<IpT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetDomain() const { return m_domain; }
87 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
88 template <typename DomainT = Aws::String>
89 void SetDomain(DomainT&& value) {
90 m_domainHasBeenSet = true;
91 m_domain = std::forward<DomainT>(value);
92 }
93 template <typename DomainT = Aws::String>
94 NetworkEndpoint& WithDomain(DomainT&& value) {
95 SetDomain(std::forward<DomainT>(value));
96 return *this;
97 }
99
101
104 inline int GetPort() const { return m_port; }
105 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
106 inline void SetPort(int value) {
107 m_portHasBeenSet = true;
108 m_port = value;
109 }
110 inline NetworkEndpoint& WithPort(int value) {
111 SetPort(value);
112 return *this;
113 }
115
117
120 inline const NetworkGeoLocation& GetLocation() const { return m_location; }
121 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
122 template <typename LocationT = NetworkGeoLocation>
123 void SetLocation(LocationT&& value) {
124 m_locationHasBeenSet = true;
125 m_location = std::forward<LocationT>(value);
126 }
127 template <typename LocationT = NetworkGeoLocation>
128 NetworkEndpoint& WithLocation(LocationT&& value) {
129 SetLocation(std::forward<LocationT>(value));
130 return *this;
131 }
133
135
138 inline const NetworkAutonomousSystem& GetAutonomousSystem() const { return m_autonomousSystem; }
139 inline bool AutonomousSystemHasBeenSet() const { return m_autonomousSystemHasBeenSet; }
140 template <typename AutonomousSystemT = NetworkAutonomousSystem>
141 void SetAutonomousSystem(AutonomousSystemT&& value) {
142 m_autonomousSystemHasBeenSet = true;
143 m_autonomousSystem = std::forward<AutonomousSystemT>(value);
144 }
145 template <typename AutonomousSystemT = NetworkAutonomousSystem>
146 NetworkEndpoint& WithAutonomousSystem(AutonomousSystemT&& value) {
147 SetAutonomousSystem(std::forward<AutonomousSystemT>(value));
148 return *this;
149 }
151
153
156 inline const NetworkConnection& GetConnection() const { return m_connection; }
157 inline bool ConnectionHasBeenSet() const { return m_connectionHasBeenSet; }
158 template <typename ConnectionT = NetworkConnection>
159 void SetConnection(ConnectionT&& value) {
160 m_connectionHasBeenSet = true;
161 m_connection = std::forward<ConnectionT>(value);
162 }
163 template <typename ConnectionT = NetworkConnection>
164 NetworkEndpoint& WithConnection(ConnectionT&& value) {
165 SetConnection(std::forward<ConnectionT>(value));
166 return *this;
167 }
169 private:
170 Aws::String m_id;
171
172 Aws::String m_ip;
173
174 Aws::String m_domain;
175
176 int m_port{0};
177
178 NetworkGeoLocation m_location;
179
180 NetworkAutonomousSystem m_autonomousSystem;
181
182 NetworkConnection m_connection;
183 bool m_idHasBeenSet = false;
184 bool m_ipHasBeenSet = false;
185 bool m_domainHasBeenSet = false;
186 bool m_portHasBeenSet = false;
187 bool m_locationHasBeenSet = false;
188 bool m_autonomousSystemHasBeenSet = false;
189 bool m_connectionHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace SecurityHub
194} // namespace Aws
NetworkEndpoint & WithConnection(ConnectionT &&value)
const NetworkConnection & GetConnection() const
NetworkEndpoint & WithAutonomousSystem(AutonomousSystemT &&value)
AWS_SECURITYHUB_API NetworkEndpoint()=default
NetworkEndpoint & WithLocation(LocationT &&value)
NetworkEndpoint & WithPort(int value)
const NetworkAutonomousSystem & GetAutonomousSystem() const
NetworkEndpoint & WithDomain(DomainT &&value)
AWS_SECURITYHUB_API NetworkEndpoint(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDomain() const
NetworkEndpoint & WithIp(IpT &&value)
AWS_SECURITYHUB_API NetworkEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkEndpoint & WithId(IdT &&value)
const NetworkGeoLocation & GetLocation() const
void SetAutonomousSystem(AutonomousSystemT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue