AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename IpAddressV4T = Aws::String>
52 void SetIpAddressV4(IpAddressV4T&& value) { m_ipAddressV4HasBeenSet = true; m_ipAddressV4 = std::forward<IpAddressV4T>(value); }
53 template<typename IpAddressV4T = Aws::String>
54 IpAddressDetails& WithIpAddressV4(IpAddressV4T&& value) { SetIpAddressV4(std::forward<IpAddressV4T>(value)); return *this;}
56
58
61 inline const IpCity& GetIpCity() const { return m_ipCity; }
62 inline bool IpCityHasBeenSet() const { return m_ipCityHasBeenSet; }
63 template<typename IpCityT = IpCity>
64 void SetIpCity(IpCityT&& value) { m_ipCityHasBeenSet = true; m_ipCity = std::forward<IpCityT>(value); }
65 template<typename IpCityT = IpCity>
66 IpAddressDetails& WithIpCity(IpCityT&& value) { SetIpCity(std::forward<IpCityT>(value)); return *this;}
68
70
73 inline const IpCountry& GetIpCountry() const { return m_ipCountry; }
74 inline bool IpCountryHasBeenSet() const { return m_ipCountryHasBeenSet; }
75 template<typename IpCountryT = IpCountry>
76 void SetIpCountry(IpCountryT&& value) { m_ipCountryHasBeenSet = true; m_ipCountry = std::forward<IpCountryT>(value); }
77 template<typename IpCountryT = IpCountry>
78 IpAddressDetails& WithIpCountry(IpCountryT&& value) { SetIpCountry(std::forward<IpCountryT>(value)); return *this;}
80
82
86 inline const IpGeoLocation& GetIpGeoLocation() const { return m_ipGeoLocation; }
87 inline bool IpGeoLocationHasBeenSet() const { return m_ipGeoLocationHasBeenSet; }
88 template<typename IpGeoLocationT = IpGeoLocation>
89 void SetIpGeoLocation(IpGeoLocationT&& value) { m_ipGeoLocationHasBeenSet = true; m_ipGeoLocation = std::forward<IpGeoLocationT>(value); }
90 template<typename IpGeoLocationT = IpGeoLocation>
91 IpAddressDetails& WithIpGeoLocation(IpGeoLocationT&& value) { SetIpGeoLocation(std::forward<IpGeoLocationT>(value)); return *this;}
93
95
98 inline const IpOwner& GetIpOwner() const { return m_ipOwner; }
99 inline bool IpOwnerHasBeenSet() const { return m_ipOwnerHasBeenSet; }
100 template<typename IpOwnerT = IpOwner>
101 void SetIpOwner(IpOwnerT&& value) { m_ipOwnerHasBeenSet = true; m_ipOwner = std::forward<IpOwnerT>(value); }
102 template<typename IpOwnerT = IpOwner>
103 IpAddressDetails& WithIpOwner(IpOwnerT&& value) { SetIpOwner(std::forward<IpOwnerT>(value)); return *this;}
105 private:
106
107 Aws::String m_ipAddressV4;
108 bool m_ipAddressV4HasBeenSet = false;
109
110 IpCity m_ipCity;
111 bool m_ipCityHasBeenSet = false;
112
113 IpCountry m_ipCountry;
114 bool m_ipCountryHasBeenSet = false;
115
116 IpGeoLocation m_ipGeoLocation;
117 bool m_ipGeoLocationHasBeenSet = false;
118
119 IpOwner m_ipOwner;
120 bool m_ipOwnerHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace Macie2
125} // namespace Aws
const IpCountry & GetIpCountry() const
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
IpAddressDetails & WithIpOwner(IpOwnerT &&value)
AWS_MACIE2_API IpAddressDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
IpAddressDetails & WithIpAddressV4(IpAddressV4T &&value)
void SetIpCountry(IpCountryT &&value)
void SetIpGeoLocation(IpGeoLocationT &&value)
const Aws::String & GetIpAddressV4() const
AWS_MACIE2_API IpAddressDetails(Aws::Utils::Json::JsonView jsonValue)
const IpGeoLocation & GetIpGeoLocation() const
AWS_MACIE2_API IpAddressDetails()=default
void SetIpAddressV4(IpAddressV4T &&value)
IpAddressDetails & WithIpCity(IpCityT &&value)
IpAddressDetails & WithIpGeoLocation(IpGeoLocationT &&value)
IpAddressDetails & WithIpCountry(IpCountryT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue