230 lines
7.0 KiB
C
230 lines
7.0 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/guardduty/GuardDuty_EXPORTS.h>
|
|||
|
|
#include <aws/guardduty/model/City.h>
|
|||
|
|
#include <aws/guardduty/model/Country.h>
|
|||
|
|
#include <aws/guardduty/model/GeoLocation.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/guardduty/model/Organization.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
class JsonView;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace GuardDuty
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Contains information about the remote IP address of the
|
|||
|
|
* connection.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/RemoteIpDetails">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_GUARDDUTY_API RemoteIpDetails
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
RemoteIpDetails();
|
|||
|
|
RemoteIpDetails(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
RemoteIpDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The city information of the remote IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline const City& GetCity() const{ return m_city; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The city information of the remote IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The city information of the remote IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCity(const City& value) { m_cityHasBeenSet = true; m_city = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The city information of the remote IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCity(City&& value) { m_cityHasBeenSet = true; m_city = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The city information of the remote IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline RemoteIpDetails& WithCity(const City& value) { SetCity(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The city information of the remote IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline RemoteIpDetails& WithCity(City&& value) { SetCity(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The country code of the remote IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Country& GetCountry() const{ return m_country; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The country code of the remote IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The country code of the remote IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCountry(const Country& value) { m_countryHasBeenSet = true; m_country = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The country code of the remote IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCountry(Country&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The country code of the remote IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline RemoteIpDetails& WithCountry(const Country& value) { SetCountry(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The country code of the remote IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline RemoteIpDetails& WithCountry(Country&& value) { SetCountry(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The location information of the remote IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline const GeoLocation& GetGeoLocation() const{ return m_geoLocation; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The location information of the remote IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool GeoLocationHasBeenSet() const { return m_geoLocationHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The location information of the remote IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetGeoLocation(const GeoLocation& value) { m_geoLocationHasBeenSet = true; m_geoLocation = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The location information of the remote IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetGeoLocation(GeoLocation&& value) { m_geoLocationHasBeenSet = true; m_geoLocation = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The location information of the remote IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline RemoteIpDetails& WithGeoLocation(const GeoLocation& value) { SetGeoLocation(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The location information of the remote IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline RemoteIpDetails& WithGeoLocation(GeoLocation&& value) { SetGeoLocation(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IPv4 remote address of the connection.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetIpAddressV4() const{ return m_ipAddressV4; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IPv4 remote address of the connection.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool IpAddressV4HasBeenSet() const { return m_ipAddressV4HasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IPv4 remote address of the connection.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetIpAddressV4(const Aws::String& value) { m_ipAddressV4HasBeenSet = true; m_ipAddressV4 = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IPv4 remote address of the connection.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetIpAddressV4(Aws::String&& value) { m_ipAddressV4HasBeenSet = true; m_ipAddressV4 = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IPv4 remote address of the connection.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetIpAddressV4(const char* value) { m_ipAddressV4HasBeenSet = true; m_ipAddressV4.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IPv4 remote address of the connection.</p>
|
|||
|
|
*/
|
|||
|
|
inline RemoteIpDetails& WithIpAddressV4(const Aws::String& value) { SetIpAddressV4(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IPv4 remote address of the connection.</p>
|
|||
|
|
*/
|
|||
|
|
inline RemoteIpDetails& WithIpAddressV4(Aws::String&& value) { SetIpAddressV4(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IPv4 remote address of the connection.</p>
|
|||
|
|
*/
|
|||
|
|
inline RemoteIpDetails& WithIpAddressV4(const char* value) { SetIpAddressV4(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ISP organization information of the remote IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Organization& GetOrganization() const{ return m_organization; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ISP organization information of the remote IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool OrganizationHasBeenSet() const { return m_organizationHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ISP organization information of the remote IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetOrganization(const Organization& value) { m_organizationHasBeenSet = true; m_organization = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ISP organization information of the remote IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetOrganization(Organization&& value) { m_organizationHasBeenSet = true; m_organization = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ISP organization information of the remote IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline RemoteIpDetails& WithOrganization(const Organization& value) { SetOrganization(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ISP organization information of the remote IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline RemoteIpDetails& WithOrganization(Organization&& value) { SetOrganization(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
City m_city;
|
|||
|
|
bool m_cityHasBeenSet;
|
|||
|
|
|
|||
|
|
Country m_country;
|
|||
|
|
bool m_countryHasBeenSet;
|
|||
|
|
|
|||
|
|
GeoLocation m_geoLocation;
|
|||
|
|
bool m_geoLocationHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_ipAddressV4;
|
|||
|
|
bool m_ipAddressV4HasBeenSet;
|
|||
|
|
|
|||
|
|
Organization m_organization;
|
|||
|
|
bool m_organizationHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace GuardDuty
|
|||
|
|
} // namespace Aws
|