AWS SDK for C++

AWS SDK for C++ Version 1.11.749

Loading...
Searching...
No Matches
RemoteIpDetails.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/City.h>
10#include <aws/guardduty/model/Country.h>
11#include <aws/guardduty/model/GeoLocation.h>
12#include <aws/guardduty/model/Organization.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GuardDuty {
24namespace Model {
25
33 public:
34 AWS_GUARDDUTY_API RemoteIpDetails() = default;
35 AWS_GUARDDUTY_API RemoteIpDetails(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const City& GetCity() const { return m_city; }
44 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
45 template <typename CityT = City>
46 void SetCity(CityT&& value) {
47 m_cityHasBeenSet = true;
48 m_city = std::forward<CityT>(value);
49 }
50 template <typename CityT = City>
51 RemoteIpDetails& WithCity(CityT&& value) {
52 SetCity(std::forward<CityT>(value));
53 return *this;
54 }
56
58
61 inline const Country& GetCountry() const { return m_country; }
62 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
63 template <typename CountryT = Country>
64 void SetCountry(CountryT&& value) {
65 m_countryHasBeenSet = true;
66 m_country = std::forward<CountryT>(value);
67 }
68 template <typename CountryT = Country>
69 RemoteIpDetails& WithCountry(CountryT&& value) {
70 SetCountry(std::forward<CountryT>(value));
71 return *this;
72 }
74
76
79 inline const GeoLocation& GetGeoLocation() const { return m_geoLocation; }
80 inline bool GeoLocationHasBeenSet() const { return m_geoLocationHasBeenSet; }
81 template <typename GeoLocationT = GeoLocation>
82 void SetGeoLocation(GeoLocationT&& value) {
83 m_geoLocationHasBeenSet = true;
84 m_geoLocation = std::forward<GeoLocationT>(value);
85 }
86 template <typename GeoLocationT = GeoLocation>
87 RemoteIpDetails& WithGeoLocation(GeoLocationT&& value) {
88 SetGeoLocation(std::forward<GeoLocationT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetIpAddressV4() const { return m_ipAddressV4; }
98 inline bool IpAddressV4HasBeenSet() const { return m_ipAddressV4HasBeenSet; }
99 template <typename IpAddressV4T = Aws::String>
100 void SetIpAddressV4(IpAddressV4T&& value) {
101 m_ipAddressV4HasBeenSet = true;
102 m_ipAddressV4 = std::forward<IpAddressV4T>(value);
103 }
104 template <typename IpAddressV4T = Aws::String>
105 RemoteIpDetails& WithIpAddressV4(IpAddressV4T&& value) {
106 SetIpAddressV4(std::forward<IpAddressV4T>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetIpAddressV6() const { return m_ipAddressV6; }
116 inline bool IpAddressV6HasBeenSet() const { return m_ipAddressV6HasBeenSet; }
117 template <typename IpAddressV6T = Aws::String>
118 void SetIpAddressV6(IpAddressV6T&& value) {
119 m_ipAddressV6HasBeenSet = true;
120 m_ipAddressV6 = std::forward<IpAddressV6T>(value);
121 }
122 template <typename IpAddressV6T = Aws::String>
123 RemoteIpDetails& WithIpAddressV6(IpAddressV6T&& value) {
124 SetIpAddressV6(std::forward<IpAddressV6T>(value));
125 return *this;
126 }
128
130
133 inline const Organization& GetOrganization() const { return m_organization; }
134 inline bool OrganizationHasBeenSet() const { return m_organizationHasBeenSet; }
135 template <typename OrganizationT = Organization>
136 void SetOrganization(OrganizationT&& value) {
137 m_organizationHasBeenSet = true;
138 m_organization = std::forward<OrganizationT>(value);
139 }
140 template <typename OrganizationT = Organization>
141 RemoteIpDetails& WithOrganization(OrganizationT&& value) {
142 SetOrganization(std::forward<OrganizationT>(value));
143 return *this;
144 }
146 private:
147 City m_city;
148
149 Country m_country;
150
151 GeoLocation m_geoLocation;
152
153 Aws::String m_ipAddressV4;
154
155 Aws::String m_ipAddressV6;
156
157 Organization m_organization;
158 bool m_cityHasBeenSet = false;
159 bool m_countryHasBeenSet = false;
160 bool m_geoLocationHasBeenSet = false;
161 bool m_ipAddressV4HasBeenSet = false;
162 bool m_ipAddressV6HasBeenSet = false;
163 bool m_organizationHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace GuardDuty
168} // namespace Aws
const Organization & GetOrganization() const
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const GeoLocation & GetGeoLocation() const
RemoteIpDetails & WithIpAddressV4(IpAddressV4T &&value)
AWS_GUARDDUTY_API RemoteIpDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
RemoteIpDetails & WithCountry(CountryT &&value)
RemoteIpDetails & WithGeoLocation(GeoLocationT &&value)
void SetIpAddressV4(IpAddressV4T &&value)
const Aws::String & GetIpAddressV6() const
void SetIpAddressV6(IpAddressV6T &&value)
void SetGeoLocation(GeoLocationT &&value)
const Aws::String & GetIpAddressV4() const
AWS_GUARDDUTY_API RemoteIpDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API RemoteIpDetails()=default
RemoteIpDetails & WithOrganization(OrganizationT &&value)
RemoteIpDetails & WithCity(CityT &&value)
void SetOrganization(OrganizationT &&value)
RemoteIpDetails & WithIpAddressV6(IpAddressV6T &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue