/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about the remote IP address of the
* connection.See Also:
AWS
* API Reference
The city information of the remote IP address.
*/ inline const City& GetCity() const{ return m_city; } /** *The city information of the remote IP address.
*/ inline bool CityHasBeenSet() const { return m_cityHasBeenSet; } /** *The city information of the remote IP address.
*/ inline void SetCity(const City& value) { m_cityHasBeenSet = true; m_city = value; } /** *The city information of the remote IP address.
*/ inline void SetCity(City&& value) { m_cityHasBeenSet = true; m_city = std::move(value); } /** *The city information of the remote IP address.
*/ inline RemoteIpDetails& WithCity(const City& value) { SetCity(value); return *this;} /** *The city information of the remote IP address.
*/ inline RemoteIpDetails& WithCity(City&& value) { SetCity(std::move(value)); return *this;} /** *The country code of the remote IP address.
*/ inline const Country& GetCountry() const{ return m_country; } /** *The country code of the remote IP address.
*/ inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; } /** *The country code of the remote IP address.
*/ inline void SetCountry(const Country& value) { m_countryHasBeenSet = true; m_country = value; } /** *The country code of the remote IP address.
*/ inline void SetCountry(Country&& value) { m_countryHasBeenSet = true; m_country = std::move(value); } /** *The country code of the remote IP address.
*/ inline RemoteIpDetails& WithCountry(const Country& value) { SetCountry(value); return *this;} /** *The country code of the remote IP address.
*/ inline RemoteIpDetails& WithCountry(Country&& value) { SetCountry(std::move(value)); return *this;} /** *The location information of the remote IP address.
*/ inline const GeoLocation& GetGeoLocation() const{ return m_geoLocation; } /** *The location information of the remote IP address.
*/ inline bool GeoLocationHasBeenSet() const { return m_geoLocationHasBeenSet; } /** *The location information of the remote IP address.
*/ inline void SetGeoLocation(const GeoLocation& value) { m_geoLocationHasBeenSet = true; m_geoLocation = value; } /** *The location information of the remote IP address.
*/ inline void SetGeoLocation(GeoLocation&& value) { m_geoLocationHasBeenSet = true; m_geoLocation = std::move(value); } /** *The location information of the remote IP address.
*/ inline RemoteIpDetails& WithGeoLocation(const GeoLocation& value) { SetGeoLocation(value); return *this;} /** *The location information of the remote IP address.
*/ inline RemoteIpDetails& WithGeoLocation(GeoLocation&& value) { SetGeoLocation(std::move(value)); return *this;} /** *The IPv4 remote address of the connection.
*/ inline const Aws::String& GetIpAddressV4() const{ return m_ipAddressV4; } /** *The IPv4 remote address of the connection.
*/ inline bool IpAddressV4HasBeenSet() const { return m_ipAddressV4HasBeenSet; } /** *The IPv4 remote address of the connection.
*/ inline void SetIpAddressV4(const Aws::String& value) { m_ipAddressV4HasBeenSet = true; m_ipAddressV4 = value; } /** *The IPv4 remote address of the connection.
*/ inline void SetIpAddressV4(Aws::String&& value) { m_ipAddressV4HasBeenSet = true; m_ipAddressV4 = std::move(value); } /** *The IPv4 remote address of the connection.
*/ inline void SetIpAddressV4(const char* value) { m_ipAddressV4HasBeenSet = true; m_ipAddressV4.assign(value); } /** *The IPv4 remote address of the connection.
*/ inline RemoteIpDetails& WithIpAddressV4(const Aws::String& value) { SetIpAddressV4(value); return *this;} /** *The IPv4 remote address of the connection.
*/ inline RemoteIpDetails& WithIpAddressV4(Aws::String&& value) { SetIpAddressV4(std::move(value)); return *this;} /** *The IPv4 remote address of the connection.
*/ inline RemoteIpDetails& WithIpAddressV4(const char* value) { SetIpAddressV4(value); return *this;} /** *The ISP organization information of the remote IP address.
*/ inline const Organization& GetOrganization() const{ return m_organization; } /** *The ISP organization information of the remote IP address.
*/ inline bool OrganizationHasBeenSet() const { return m_organizationHasBeenSet; } /** *The ISP organization information of the remote IP address.
*/ inline void SetOrganization(const Organization& value) { m_organizationHasBeenSet = true; m_organization = value; } /** *The ISP organization information of the remote IP address.
*/ inline void SetOrganization(Organization&& value) { m_organizationHasBeenSet = true; m_organization = std::move(value); } /** *The ISP organization information of the remote IP address.
*/ inline RemoteIpDetails& WithOrganization(const Organization& value) { SetOrganization(value); return *this;} /** *The ISP organization information of the remote IP address.
*/ inline RemoteIpDetails& WithOrganization(Organization&& value) { SetOrganization(std::move(value)); return *this;} private: City m_city; bool m_cityHasBeenSet = false; Country m_country; bool m_countryHasBeenSet = false; GeoLocation m_geoLocation; bool m_geoLocationHasBeenSet = false; Aws::String m_ipAddressV4; bool m_ipAddressV4HasBeenSet = false; Organization m_organization; bool m_organizationHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws