AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IpAddressDetails.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/macie2/model/IpCity.h>
10#include <aws/macie2/model/IpCountry.h>
11#include <aws/macie2/model/IpGeoLocation.h>
12#include <aws/macie2/model/IpOwner.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Macie2
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_MACIE2_API IpAddressDetails();
42 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetIpAddressV4() const{ return m_ipAddressV4; }
50 inline bool IpAddressV4HasBeenSet() const { return m_ipAddressV4HasBeenSet; }
51 inline void SetIpAddressV4(const Aws::String& value) { m_ipAddressV4HasBeenSet = true; m_ipAddressV4 = value; }
52 inline void SetIpAddressV4(Aws::String&& value) { m_ipAddressV4HasBeenSet = true; m_ipAddressV4 = std::move(value); }
53 inline void SetIpAddressV4(const char* value) { m_ipAddressV4HasBeenSet = true; m_ipAddressV4.assign(value); }
54 inline IpAddressDetails& WithIpAddressV4(const Aws::String& value) { SetIpAddressV4(value); return *this;}
55 inline IpAddressDetails& WithIpAddressV4(Aws::String&& value) { SetIpAddressV4(std::move(value)); return *this;}
56 inline IpAddressDetails& WithIpAddressV4(const char* value) { SetIpAddressV4(value); return *this;}
58
60
63 inline const IpCity& GetIpCity() const{ return m_ipCity; }
64 inline bool IpCityHasBeenSet() const { return m_ipCityHasBeenSet; }
65 inline void SetIpCity(const IpCity& value) { m_ipCityHasBeenSet = true; m_ipCity = value; }
66 inline void SetIpCity(IpCity&& value) { m_ipCityHasBeenSet = true; m_ipCity = std::move(value); }
67 inline IpAddressDetails& WithIpCity(const IpCity& value) { SetIpCity(value); return *this;}
68 inline IpAddressDetails& WithIpCity(IpCity&& value) { SetIpCity(std::move(value)); return *this;}
70
72
75 inline const IpCountry& GetIpCountry() const{ return m_ipCountry; }
76 inline bool IpCountryHasBeenSet() const { return m_ipCountryHasBeenSet; }
77 inline void SetIpCountry(const IpCountry& value) { m_ipCountryHasBeenSet = true; m_ipCountry = value; }
78 inline void SetIpCountry(IpCountry&& value) { m_ipCountryHasBeenSet = true; m_ipCountry = std::move(value); }
79 inline IpAddressDetails& WithIpCountry(const IpCountry& value) { SetIpCountry(value); return *this;}
80 inline IpAddressDetails& WithIpCountry(IpCountry&& value) { SetIpCountry(std::move(value)); return *this;}
82
84
88 inline const IpGeoLocation& GetIpGeoLocation() const{ return m_ipGeoLocation; }
89 inline bool IpGeoLocationHasBeenSet() const { return m_ipGeoLocationHasBeenSet; }
90 inline void SetIpGeoLocation(const IpGeoLocation& value) { m_ipGeoLocationHasBeenSet = true; m_ipGeoLocation = value; }
91 inline void SetIpGeoLocation(IpGeoLocation&& value) { m_ipGeoLocationHasBeenSet = true; m_ipGeoLocation = std::move(value); }
92 inline IpAddressDetails& WithIpGeoLocation(const IpGeoLocation& value) { SetIpGeoLocation(value); return *this;}
93 inline IpAddressDetails& WithIpGeoLocation(IpGeoLocation&& value) { SetIpGeoLocation(std::move(value)); return *this;}
95
97
100 inline const IpOwner& GetIpOwner() const{ return m_ipOwner; }
101 inline bool IpOwnerHasBeenSet() const { return m_ipOwnerHasBeenSet; }
102 inline void SetIpOwner(const IpOwner& value) { m_ipOwnerHasBeenSet = true; m_ipOwner = value; }
103 inline void SetIpOwner(IpOwner&& value) { m_ipOwnerHasBeenSet = true; m_ipOwner = std::move(value); }
104 inline IpAddressDetails& WithIpOwner(const IpOwner& value) { SetIpOwner(value); return *this;}
105 inline IpAddressDetails& WithIpOwner(IpOwner&& value) { SetIpOwner(std::move(value)); return *this;}
107 private:
108
109 Aws::String m_ipAddressV4;
110 bool m_ipAddressV4HasBeenSet = false;
111
112 IpCity m_ipCity;
113 bool m_ipCityHasBeenSet = false;
114
115 IpCountry m_ipCountry;
116 bool m_ipCountryHasBeenSet = false;
117
118 IpGeoLocation m_ipGeoLocation;
119 bool m_ipGeoLocationHasBeenSet = false;
120
121 IpOwner m_ipOwner;
122 bool m_ipOwnerHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace Macie2
127} // namespace Aws
void SetIpAddressV4(Aws::String &&value)
IpAddressDetails & WithIpCountry(const IpCountry &value)
const IpCountry & GetIpCountry() const
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MACIE2_API IpAddressDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
IpAddressDetails & WithIpGeoLocation(IpGeoLocation &&value)
void SetIpCity(const IpCity &value)
IpAddressDetails & WithIpCity(IpCity &&value)
void SetIpGeoLocation(const IpGeoLocation &value)
void SetIpGeoLocation(IpGeoLocation &&value)
const Aws::String & GetIpAddressV4() const
IpAddressDetails & WithIpAddressV4(const char *value)
IpAddressDetails & WithIpCity(const IpCity &value)
AWS_MACIE2_API IpAddressDetails(Aws::Utils::Json::JsonView jsonValue)
const IpGeoLocation & GetIpGeoLocation() const
IpAddressDetails & WithIpOwner(IpOwner &&value)
IpAddressDetails & WithIpCountry(IpCountry &&value)
IpAddressDetails & WithIpOwner(const IpOwner &value)
void SetIpOwner(const IpOwner &value)
IpAddressDetails & WithIpGeoLocation(const IpGeoLocation &value)
IpAddressDetails & WithIpAddressV4(Aws::String &&value)
void SetIpAddressV4(const Aws::String &value)
void SetIpCountry(const IpCountry &value)
IpAddressDetails & WithIpAddressV4(const Aws::String &value)
void SetIpAddressV4(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue