AWS SDK for C++  1.9.19
AWS SDK for C++
RemoteIpDetails.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace GuardDuty
26 {
27 namespace Model
28 {
29 
37  {
38  public:
43 
44 
48  inline const City& GetCity() const{ return m_city; }
49 
53  inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
54 
58  inline void SetCity(const City& value) { m_cityHasBeenSet = true; m_city = value; }
59 
63  inline void SetCity(City&& value) { m_cityHasBeenSet = true; m_city = std::move(value); }
64 
68  inline RemoteIpDetails& WithCity(const City& value) { SetCity(value); return *this;}
69 
73  inline RemoteIpDetails& WithCity(City&& value) { SetCity(std::move(value)); return *this;}
74 
75 
79  inline const Country& GetCountry() const{ return m_country; }
80 
84  inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
85 
89  inline void SetCountry(const Country& value) { m_countryHasBeenSet = true; m_country = value; }
90 
94  inline void SetCountry(Country&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
95 
99  inline RemoteIpDetails& WithCountry(const Country& value) { SetCountry(value); return *this;}
100 
104  inline RemoteIpDetails& WithCountry(Country&& value) { SetCountry(std::move(value)); return *this;}
105 
106 
110  inline const GeoLocation& GetGeoLocation() const{ return m_geoLocation; }
111 
115  inline bool GeoLocationHasBeenSet() const { return m_geoLocationHasBeenSet; }
116 
120  inline void SetGeoLocation(const GeoLocation& value) { m_geoLocationHasBeenSet = true; m_geoLocation = value; }
121 
125  inline void SetGeoLocation(GeoLocation&& value) { m_geoLocationHasBeenSet = true; m_geoLocation = std::move(value); }
126 
130  inline RemoteIpDetails& WithGeoLocation(const GeoLocation& value) { SetGeoLocation(value); return *this;}
131 
135  inline RemoteIpDetails& WithGeoLocation(GeoLocation&& value) { SetGeoLocation(std::move(value)); return *this;}
136 
137 
141  inline const Aws::String& GetIpAddressV4() const{ return m_ipAddressV4; }
142 
146  inline bool IpAddressV4HasBeenSet() const { return m_ipAddressV4HasBeenSet; }
147 
151  inline void SetIpAddressV4(const Aws::String& value) { m_ipAddressV4HasBeenSet = true; m_ipAddressV4 = value; }
152 
156  inline void SetIpAddressV4(Aws::String&& value) { m_ipAddressV4HasBeenSet = true; m_ipAddressV4 = std::move(value); }
157 
161  inline void SetIpAddressV4(const char* value) { m_ipAddressV4HasBeenSet = true; m_ipAddressV4.assign(value); }
162 
166  inline RemoteIpDetails& WithIpAddressV4(const Aws::String& value) { SetIpAddressV4(value); return *this;}
167 
171  inline RemoteIpDetails& WithIpAddressV4(Aws::String&& value) { SetIpAddressV4(std::move(value)); return *this;}
172 
176  inline RemoteIpDetails& WithIpAddressV4(const char* value) { SetIpAddressV4(value); return *this;}
177 
178 
182  inline const Organization& GetOrganization() const{ return m_organization; }
183 
187  inline bool OrganizationHasBeenSet() const { return m_organizationHasBeenSet; }
188 
192  inline void SetOrganization(const Organization& value) { m_organizationHasBeenSet = true; m_organization = value; }
193 
197  inline void SetOrganization(Organization&& value) { m_organizationHasBeenSet = true; m_organization = std::move(value); }
198 
202  inline RemoteIpDetails& WithOrganization(const Organization& value) { SetOrganization(value); return *this;}
203 
207  inline RemoteIpDetails& WithOrganization(Organization&& value) { SetOrganization(std::move(value)); return *this;}
208 
209  private:
210 
211  City m_city;
212  bool m_cityHasBeenSet;
213 
214  Country m_country;
215  bool m_countryHasBeenSet;
216 
217  GeoLocation m_geoLocation;
218  bool m_geoLocationHasBeenSet;
219 
220  Aws::String m_ipAddressV4;
221  bool m_ipAddressV4HasBeenSet;
222 
223  Organization m_organization;
224  bool m_organizationHasBeenSet;
225  };
226 
227 } // namespace Model
228 } // namespace GuardDuty
229 } // namespace Aws
Aws::GuardDuty::Model::RemoteIpDetails::WithIpAddressV4
RemoteIpDetails & WithIpAddressV4(Aws::String &&value)
Definition: RemoteIpDetails.h:171
Aws::GuardDuty::Model::RemoteIpDetails::SetCountry
void SetCountry(const Country &value)
Definition: RemoteIpDetails.h:89
Aws::GuardDuty::Model::RemoteIpDetails::GetIpAddressV4
const Aws::String & GetIpAddressV4() const
Definition: RemoteIpDetails.h:141
Aws::GuardDuty::Model::RemoteIpDetails::SetIpAddressV4
void SetIpAddressV4(const char *value)
Definition: RemoteIpDetails.h:161
GeoLocation.h
Aws::GuardDuty::Model::GeoLocation
Definition: GeoLocation.h:31
Aws::GuardDuty::Model::RemoteIpDetails::OrganizationHasBeenSet
bool OrganizationHasBeenSet() const
Definition: RemoteIpDetails.h:187
Aws::GuardDuty::Model::RemoteIpDetails::SetCity
void SetCity(const City &value)
Definition: RemoteIpDetails.h:58
Aws::GuardDuty::Model::Organization
Definition: Organization.h:33
Aws::GuardDuty::Model::RemoteIpDetails::SetCountry
void SetCountry(Country &&value)
Definition: RemoteIpDetails.h:94
Aws::GuardDuty::Model::RemoteIpDetails::RemoteIpDetails
RemoteIpDetails(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::RemoteIpDetails::WithCountry
RemoteIpDetails & WithCountry(const Country &value)
Definition: RemoteIpDetails.h:99
Aws::GuardDuty::Model::RemoteIpDetails::WithOrganization
RemoteIpDetails & WithOrganization(const Organization &value)
Definition: RemoteIpDetails.h:202
Aws::GuardDuty::Model::RemoteIpDetails::operator=
RemoteIpDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::RemoteIpDetails::SetIpAddressV4
void SetIpAddressV4(const Aws::String &value)
Definition: RemoteIpDetails.h:151
Country.h
Aws::GuardDuty::Model::RemoteIpDetails::WithGeoLocation
RemoteIpDetails & WithGeoLocation(const GeoLocation &value)
Definition: RemoteIpDetails.h:130
Aws::GuardDuty::Model::RemoteIpDetails::WithIpAddressV4
RemoteIpDetails & WithIpAddressV4(const char *value)
Definition: RemoteIpDetails.h:176
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::RemoteIpDetails::WithCountry
RemoteIpDetails & WithCountry(Country &&value)
Definition: RemoteIpDetails.h:104
Aws::GuardDuty::Model::RemoteIpDetails::WithCity
RemoteIpDetails & WithCity(City &&value)
Definition: RemoteIpDetails.h:73
Aws::GuardDuty::Model::RemoteIpDetails::RemoteIpDetails
RemoteIpDetails()
Aws::GuardDuty::Model::RemoteIpDetails::SetOrganization
void SetOrganization(Organization &&value)
Definition: RemoteIpDetails.h:197
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::RemoteIpDetails::GeoLocationHasBeenSet
bool GeoLocationHasBeenSet() const
Definition: RemoteIpDetails.h:115
Aws::GuardDuty::Model::RemoteIpDetails::WithOrganization
RemoteIpDetails & WithOrganization(Organization &&value)
Definition: RemoteIpDetails.h:207
Aws::GuardDuty::Model::RemoteIpDetails::SetCity
void SetCity(City &&value)
Definition: RemoteIpDetails.h:63
Aws::GuardDuty::Model::RemoteIpDetails::CountryHasBeenSet
bool CountryHasBeenSet() const
Definition: RemoteIpDetails.h:84
Aws::GuardDuty::Model::RemoteIpDetails::CityHasBeenSet
bool CityHasBeenSet() const
Definition: RemoteIpDetails.h:53
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::GuardDuty::Model::RemoteIpDetails::GetCountry
const Country & GetCountry() const
Definition: RemoteIpDetails.h:79
Aws::GuardDuty::Model::RemoteIpDetails::GetGeoLocation
const GeoLocation & GetGeoLocation() const
Definition: RemoteIpDetails.h:110
Aws::GuardDuty::Model::RemoteIpDetails::WithGeoLocation
RemoteIpDetails & WithGeoLocation(GeoLocation &&value)
Definition: RemoteIpDetails.h:135
Aws::GuardDuty::Model::RemoteIpDetails::SetGeoLocation
void SetGeoLocation(const GeoLocation &value)
Definition: RemoteIpDetails.h:120
Aws::GuardDuty::Model::Country
Definition: Country.h:33
Aws::GuardDuty::Model::RemoteIpDetails::SetOrganization
void SetOrganization(const Organization &value)
Definition: RemoteIpDetails.h:192
Aws::GuardDuty::Model::RemoteIpDetails::SetGeoLocation
void SetGeoLocation(GeoLocation &&value)
Definition: RemoteIpDetails.h:125
Aws::GuardDuty::Model::RemoteIpDetails
Definition: RemoteIpDetails.h:37
Aws::GuardDuty::Model::RemoteIpDetails::SetIpAddressV4
void SetIpAddressV4(Aws::String &&value)
Definition: RemoteIpDetails.h:156
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::RemoteIpDetails::GetCity
const City & GetCity() const
Definition: RemoteIpDetails.h:48
Aws::GuardDuty::Model::RemoteIpDetails::GetOrganization
const Organization & GetOrganization() const
Definition: RemoteIpDetails.h:182
Aws::GuardDuty::Model::RemoteIpDetails::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
City.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::City
Definition: City.h:33
Aws::GuardDuty::Model::RemoteIpDetails::WithCity
RemoteIpDetails & WithCity(const City &value)
Definition: RemoteIpDetails.h:68
Aws::GuardDuty::Model::RemoteIpDetails::IpAddressV4HasBeenSet
bool IpAddressV4HasBeenSet() const
Definition: RemoteIpDetails.h:146
Aws::GuardDuty::Model::RemoteIpDetails::WithIpAddressV4
RemoteIpDetails & WithIpAddressV4(const Aws::String &value)
Definition: RemoteIpDetails.h:166
Organization.h