AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
NetworkEndpoint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9#include <aws/guardduty/model/AutonomousSystem.h>
10#include <aws/guardduty/model/NetworkConnection.h>
11#include <aws/guardduty/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 GuardDuty {
23namespace Model {
24
32 public:
33 AWS_GUARDDUTY_API NetworkEndpoint() = default;
34 AWS_GUARDDUTY_API NetworkEndpoint(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
50 NetworkEndpoint& WithId(IdT&& value) {
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetIp() const { return m_ip; }
61 inline bool IpHasBeenSet() const { return m_ipHasBeenSet; }
62 template <typename IpT = Aws::String>
63 void SetIp(IpT&& value) {
64 m_ipHasBeenSet = true;
65 m_ip = std::forward<IpT>(value);
66 }
67 template <typename IpT = Aws::String>
68 NetworkEndpoint& WithIp(IpT&& value) {
69 SetIp(std::forward<IpT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDomain() const { return m_domain; }
79 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
80 template <typename DomainT = Aws::String>
81 void SetDomain(DomainT&& value) {
82 m_domainHasBeenSet = true;
83 m_domain = std::forward<DomainT>(value);
84 }
85 template <typename DomainT = Aws::String>
86 NetworkEndpoint& WithDomain(DomainT&& value) {
87 SetDomain(std::forward<DomainT>(value));
88 return *this;
89 }
91
93
96 inline int GetPort() const { return m_port; }
97 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
98 inline void SetPort(int value) {
99 m_portHasBeenSet = true;
100 m_port = value;
101 }
102 inline NetworkEndpoint& WithPort(int value) {
103 SetPort(value);
104 return *this;
105 }
107
109
112 inline const NetworkGeoLocation& GetLocation() const { return m_location; }
113 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
114 template <typename LocationT = NetworkGeoLocation>
115 void SetLocation(LocationT&& value) {
116 m_locationHasBeenSet = true;
117 m_location = std::forward<LocationT>(value);
118 }
119 template <typename LocationT = NetworkGeoLocation>
120 NetworkEndpoint& WithLocation(LocationT&& value) {
121 SetLocation(std::forward<LocationT>(value));
122 return *this;
123 }
125
127
130 inline const AutonomousSystem& GetAutonomousSystem() const { return m_autonomousSystem; }
131 inline bool AutonomousSystemHasBeenSet() const { return m_autonomousSystemHasBeenSet; }
132 template <typename AutonomousSystemT = AutonomousSystem>
133 void SetAutonomousSystem(AutonomousSystemT&& value) {
134 m_autonomousSystemHasBeenSet = true;
135 m_autonomousSystem = std::forward<AutonomousSystemT>(value);
136 }
137 template <typename AutonomousSystemT = AutonomousSystem>
138 NetworkEndpoint& WithAutonomousSystem(AutonomousSystemT&& value) {
139 SetAutonomousSystem(std::forward<AutonomousSystemT>(value));
140 return *this;
141 }
143
145
148 inline const NetworkConnection& GetConnection() const { return m_connection; }
149 inline bool ConnectionHasBeenSet() const { return m_connectionHasBeenSet; }
150 template <typename ConnectionT = NetworkConnection>
151 void SetConnection(ConnectionT&& value) {
152 m_connectionHasBeenSet = true;
153 m_connection = std::forward<ConnectionT>(value);
154 }
155 template <typename ConnectionT = NetworkConnection>
156 NetworkEndpoint& WithConnection(ConnectionT&& value) {
157 SetConnection(std::forward<ConnectionT>(value));
158 return *this;
159 }
161 private:
162 Aws::String m_id;
163
164 Aws::String m_ip;
165
166 Aws::String m_domain;
167
168 int m_port{0};
169
170 NetworkGeoLocation m_location;
171
172 AutonomousSystem m_autonomousSystem;
173
174 NetworkConnection m_connection;
175 bool m_idHasBeenSet = false;
176 bool m_ipHasBeenSet = false;
177 bool m_domainHasBeenSet = false;
178 bool m_portHasBeenSet = false;
179 bool m_locationHasBeenSet = false;
180 bool m_autonomousSystemHasBeenSet = false;
181 bool m_connectionHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace GuardDuty
186} // namespace Aws
NetworkEndpoint & WithAutonomousSystem(AutonomousSystemT &&value)
const Aws::String & GetDomain() const
NetworkEndpoint & WithId(IdT &&value)
const AutonomousSystem & GetAutonomousSystem() const
const NetworkConnection & GetConnection() const
const Aws::String & GetIp() const
void SetConnection(ConnectionT &&value)
void SetAutonomousSystem(AutonomousSystemT &&value)
AWS_GUARDDUTY_API NetworkEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API NetworkEndpoint()=default
NetworkEndpoint & WithIp(IpT &&value)
AWS_GUARDDUTY_API NetworkEndpoint(Aws::Utils::Json::JsonView jsonValue)
NetworkEndpoint & WithLocation(LocationT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const NetworkGeoLocation & GetLocation() const
NetworkEndpoint & WithDomain(DomainT &&value)
NetworkEndpoint & WithPort(int value)
NetworkEndpoint & WithConnection(ConnectionT &&value)
const Aws::String & GetId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue