AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NetworkEndpoint.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/NetworkGeoLocation.h>
10#include <aws/securityhub/model/NetworkAutonomousSystem.h>
11#include <aws/securityhub/model/NetworkConnection.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SecurityHub
25{
26namespace Model
27{
28
44 {
45 public:
46 AWS_SECURITYHUB_API NetworkEndpoint() = default;
47 AWS_SECURITYHUB_API NetworkEndpoint(Aws::Utils::Json::JsonView jsonValue);
48 AWS_SECURITYHUB_API NetworkEndpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
49 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
56 inline const Aws::String& GetId() const { return m_id; }
57 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
58 template<typename IdT = Aws::String>
59 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
60 template<typename IdT = Aws::String>
61 NetworkEndpoint& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_ipHasBeenSet = true; m_ip = std::forward<IpT>(value); }
72 template<typename IpT = Aws::String>
73 NetworkEndpoint& WithIp(IpT&& value) { SetIp(std::forward<IpT>(value)); return *this;}
75
77
80 inline const Aws::String& GetDomain() const { return m_domain; }
81 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
82 template<typename DomainT = Aws::String>
83 void SetDomain(DomainT&& value) { m_domainHasBeenSet = true; m_domain = std::forward<DomainT>(value); }
84 template<typename DomainT = Aws::String>
85 NetworkEndpoint& WithDomain(DomainT&& value) { SetDomain(std::forward<DomainT>(value)); return *this;}
87
89
92 inline int GetPort() const { return m_port; }
93 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
94 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
95 inline NetworkEndpoint& WithPort(int value) { SetPort(value); return *this;}
97
99
102 inline const NetworkGeoLocation& GetLocation() const { return m_location; }
103 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
104 template<typename LocationT = NetworkGeoLocation>
105 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
106 template<typename LocationT = NetworkGeoLocation>
107 NetworkEndpoint& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
109
111
114 inline const NetworkAutonomousSystem& GetAutonomousSystem() const { return m_autonomousSystem; }
115 inline bool AutonomousSystemHasBeenSet() const { return m_autonomousSystemHasBeenSet; }
116 template<typename AutonomousSystemT = NetworkAutonomousSystem>
117 void SetAutonomousSystem(AutonomousSystemT&& value) { m_autonomousSystemHasBeenSet = true; m_autonomousSystem = std::forward<AutonomousSystemT>(value); }
118 template<typename AutonomousSystemT = NetworkAutonomousSystem>
119 NetworkEndpoint& WithAutonomousSystem(AutonomousSystemT&& value) { SetAutonomousSystem(std::forward<AutonomousSystemT>(value)); return *this;}
121
123
126 inline const NetworkConnection& GetConnection() const { return m_connection; }
127 inline bool ConnectionHasBeenSet() const { return m_connectionHasBeenSet; }
128 template<typename ConnectionT = NetworkConnection>
129 void SetConnection(ConnectionT&& value) { m_connectionHasBeenSet = true; m_connection = std::forward<ConnectionT>(value); }
130 template<typename ConnectionT = NetworkConnection>
131 NetworkEndpoint& WithConnection(ConnectionT&& value) { SetConnection(std::forward<ConnectionT>(value)); return *this;}
133 private:
134
135 Aws::String m_id;
136 bool m_idHasBeenSet = false;
137
138 Aws::String m_ip;
139 bool m_ipHasBeenSet = false;
140
141 Aws::String m_domain;
142 bool m_domainHasBeenSet = false;
143
144 int m_port{0};
145 bool m_portHasBeenSet = false;
146
147 NetworkGeoLocation m_location;
148 bool m_locationHasBeenSet = false;
149
150 NetworkAutonomousSystem m_autonomousSystem;
151 bool m_autonomousSystemHasBeenSet = false;
152
153 NetworkConnection m_connection;
154 bool m_connectionHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace SecurityHub
159} // 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