This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-macie2/include/aws/macie2/model/IpAddressDetails.h

236 lines
7.3 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/macie2/Macie2_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/macie2/model/IpCity.h>
#include <aws/macie2/model/IpCountry.h>
#include <aws/macie2/model/IpGeoLocation.h>
#include <aws/macie2/model/IpOwner.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Macie2
{
namespace Model
{
/**
* <p>Provides information about the IP address of the device that an entity used
* to perform an action on an affected resource.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/IpAddressDetails">AWS
* API Reference</a></p>
*/
class AWS_MACIE2_API IpAddressDetails
{
public:
IpAddressDetails();
IpAddressDetails(Aws::Utils::Json::JsonView jsonValue);
IpAddressDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Internet Protocol version 4 (IPv4) address of the device.</p>
*/
inline const Aws::String& GetIpAddressV4() const{ return m_ipAddressV4; }
/**
* <p>The Internet Protocol version 4 (IPv4) address of the device.</p>
*/
inline bool IpAddressV4HasBeenSet() const { return m_ipAddressV4HasBeenSet; }
/**
* <p>The Internet Protocol version 4 (IPv4) address of the device.</p>
*/
inline void SetIpAddressV4(const Aws::String& value) { m_ipAddressV4HasBeenSet = true; m_ipAddressV4 = value; }
/**
* <p>The Internet Protocol version 4 (IPv4) address of the device.</p>
*/
inline void SetIpAddressV4(Aws::String&& value) { m_ipAddressV4HasBeenSet = true; m_ipAddressV4 = std::move(value); }
/**
* <p>The Internet Protocol version 4 (IPv4) address of the device.</p>
*/
inline void SetIpAddressV4(const char* value) { m_ipAddressV4HasBeenSet = true; m_ipAddressV4.assign(value); }
/**
* <p>The Internet Protocol version 4 (IPv4) address of the device.</p>
*/
inline IpAddressDetails& WithIpAddressV4(const Aws::String& value) { SetIpAddressV4(value); return *this;}
/**
* <p>The Internet Protocol version 4 (IPv4) address of the device.</p>
*/
inline IpAddressDetails& WithIpAddressV4(Aws::String&& value) { SetIpAddressV4(std::move(value)); return *this;}
/**
* <p>The Internet Protocol version 4 (IPv4) address of the device.</p>
*/
inline IpAddressDetails& WithIpAddressV4(const char* value) { SetIpAddressV4(value); return *this;}
/**
* <p>The city that the IP address originated from.</p>
*/
inline const IpCity& GetIpCity() const{ return m_ipCity; }
/**
* <p>The city that the IP address originated from.</p>
*/
inline bool IpCityHasBeenSet() const { return m_ipCityHasBeenSet; }
/**
* <p>The city that the IP address originated from.</p>
*/
inline void SetIpCity(const IpCity& value) { m_ipCityHasBeenSet = true; m_ipCity = value; }
/**
* <p>The city that the IP address originated from.</p>
*/
inline void SetIpCity(IpCity&& value) { m_ipCityHasBeenSet = true; m_ipCity = std::move(value); }
/**
* <p>The city that the IP address originated from.</p>
*/
inline IpAddressDetails& WithIpCity(const IpCity& value) { SetIpCity(value); return *this;}
/**
* <p>The city that the IP address originated from.</p>
*/
inline IpAddressDetails& WithIpCity(IpCity&& value) { SetIpCity(std::move(value)); return *this;}
/**
* <p>The country that the IP address originated from.</p>
*/
inline const IpCountry& GetIpCountry() const{ return m_ipCountry; }
/**
* <p>The country that the IP address originated from.</p>
*/
inline bool IpCountryHasBeenSet() const { return m_ipCountryHasBeenSet; }
/**
* <p>The country that the IP address originated from.</p>
*/
inline void SetIpCountry(const IpCountry& value) { m_ipCountryHasBeenSet = true; m_ipCountry = value; }
/**
* <p>The country that the IP address originated from.</p>
*/
inline void SetIpCountry(IpCountry&& value) { m_ipCountryHasBeenSet = true; m_ipCountry = std::move(value); }
/**
* <p>The country that the IP address originated from.</p>
*/
inline IpAddressDetails& WithIpCountry(const IpCountry& value) { SetIpCountry(value); return *this;}
/**
* <p>The country that the IP address originated from.</p>
*/
inline IpAddressDetails& WithIpCountry(IpCountry&& value) { SetIpCountry(std::move(value)); return *this;}
/**
* <p>The geographic coordinates of the location that the IP address originated
* from.</p>
*/
inline const IpGeoLocation& GetIpGeoLocation() const{ return m_ipGeoLocation; }
/**
* <p>The geographic coordinates of the location that the IP address originated
* from.</p>
*/
inline bool IpGeoLocationHasBeenSet() const { return m_ipGeoLocationHasBeenSet; }
/**
* <p>The geographic coordinates of the location that the IP address originated
* from.</p>
*/
inline void SetIpGeoLocation(const IpGeoLocation& value) { m_ipGeoLocationHasBeenSet = true; m_ipGeoLocation = value; }
/**
* <p>The geographic coordinates of the location that the IP address originated
* from.</p>
*/
inline void SetIpGeoLocation(IpGeoLocation&& value) { m_ipGeoLocationHasBeenSet = true; m_ipGeoLocation = std::move(value); }
/**
* <p>The geographic coordinates of the location that the IP address originated
* from.</p>
*/
inline IpAddressDetails& WithIpGeoLocation(const IpGeoLocation& value) { SetIpGeoLocation(value); return *this;}
/**
* <p>The geographic coordinates of the location that the IP address originated
* from.</p>
*/
inline IpAddressDetails& WithIpGeoLocation(IpGeoLocation&& value) { SetIpGeoLocation(std::move(value)); return *this;}
/**
* <p>The registered owner of the IP address.</p>
*/
inline const IpOwner& GetIpOwner() const{ return m_ipOwner; }
/**
* <p>The registered owner of the IP address.</p>
*/
inline bool IpOwnerHasBeenSet() const { return m_ipOwnerHasBeenSet; }
/**
* <p>The registered owner of the IP address.</p>
*/
inline void SetIpOwner(const IpOwner& value) { m_ipOwnerHasBeenSet = true; m_ipOwner = value; }
/**
* <p>The registered owner of the IP address.</p>
*/
inline void SetIpOwner(IpOwner&& value) { m_ipOwnerHasBeenSet = true; m_ipOwner = std::move(value); }
/**
* <p>The registered owner of the IP address.</p>
*/
inline IpAddressDetails& WithIpOwner(const IpOwner& value) { SetIpOwner(value); return *this;}
/**
* <p>The registered owner of the IP address.</p>
*/
inline IpAddressDetails& WithIpOwner(IpOwner&& value) { SetIpOwner(std::move(value)); return *this;}
private:
Aws::String m_ipAddressV4;
bool m_ipAddressV4HasBeenSet;
IpCity m_ipCity;
bool m_ipCityHasBeenSet;
IpCountry m_ipCountry;
bool m_ipCountryHasBeenSet;
IpGeoLocation m_ipGeoLocation;
bool m_ipGeoLocationHasBeenSet;
IpOwner m_ipOwner;
bool m_ipOwnerHasBeenSet;
};
} // namespace Model
} // namespace Macie2
} // namespace Aws