AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
NetworkEndpoint.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/model/NetworkGeoLocation.h>
10#include <aws/guardduty/model/AutonomousSystem.h>
11#include <aws/guardduty/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 GuardDuty
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_GUARDDUTY_API NetworkEndpoint() = default;
39 AWS_GUARDDUTY_API NetworkEndpoint(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetId() const { return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 template<typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
52 template<typename IdT = Aws::String>
53 NetworkEndpoint& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_ipHasBeenSet = true; m_ip = std::forward<IpT>(value); }
64 template<typename IpT = Aws::String>
65 NetworkEndpoint& WithIp(IpT&& value) { SetIp(std::forward<IpT>(value)); return *this;}
67
69
72 inline const Aws::String& GetDomain() const { return m_domain; }
73 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
74 template<typename DomainT = Aws::String>
75 void SetDomain(DomainT&& value) { m_domainHasBeenSet = true; m_domain = std::forward<DomainT>(value); }
76 template<typename DomainT = Aws::String>
77 NetworkEndpoint& WithDomain(DomainT&& value) { SetDomain(std::forward<DomainT>(value)); return *this;}
79
81
84 inline int GetPort() const { return m_port; }
85 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
86 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
87 inline NetworkEndpoint& WithPort(int value) { SetPort(value); return *this;}
89
91
94 inline const NetworkGeoLocation& GetLocation() const { return m_location; }
95 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
96 template<typename LocationT = NetworkGeoLocation>
97 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
98 template<typename LocationT = NetworkGeoLocation>
99 NetworkEndpoint& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
101
103
106 inline const AutonomousSystem& GetAutonomousSystem() const { return m_autonomousSystem; }
107 inline bool AutonomousSystemHasBeenSet() const { return m_autonomousSystemHasBeenSet; }
108 template<typename AutonomousSystemT = AutonomousSystem>
109 void SetAutonomousSystem(AutonomousSystemT&& value) { m_autonomousSystemHasBeenSet = true; m_autonomousSystem = std::forward<AutonomousSystemT>(value); }
110 template<typename AutonomousSystemT = AutonomousSystem>
111 NetworkEndpoint& WithAutonomousSystem(AutonomousSystemT&& value) { SetAutonomousSystem(std::forward<AutonomousSystemT>(value)); return *this;}
113
115
118 inline const NetworkConnection& GetConnection() const { return m_connection; }
119 inline bool ConnectionHasBeenSet() const { return m_connectionHasBeenSet; }
120 template<typename ConnectionT = NetworkConnection>
121 void SetConnection(ConnectionT&& value) { m_connectionHasBeenSet = true; m_connection = std::forward<ConnectionT>(value); }
122 template<typename ConnectionT = NetworkConnection>
123 NetworkEndpoint& WithConnection(ConnectionT&& value) { SetConnection(std::forward<ConnectionT>(value)); return *this;}
125 private:
126
127 Aws::String m_id;
128 bool m_idHasBeenSet = false;
129
130 Aws::String m_ip;
131 bool m_ipHasBeenSet = false;
132
133 Aws::String m_domain;
134 bool m_domainHasBeenSet = false;
135
136 int m_port{0};
137 bool m_portHasBeenSet = false;
138
139 NetworkGeoLocation m_location;
140 bool m_locationHasBeenSet = false;
141
142 AutonomousSystem m_autonomousSystem;
143 bool m_autonomousSystemHasBeenSet = false;
144
145 NetworkConnection m_connection;
146 bool m_connectionHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace GuardDuty
151} // 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