AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
IpAddressDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/macie2/Macie2_EXPORTS.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
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Macie2 {
24namespace Model {
25
33 public:
34 AWS_MACIE2_API IpAddressDetails() = default;
37 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetIpAddressV4() const { return m_ipAddressV4; }
44 inline bool IpAddressV4HasBeenSet() const { return m_ipAddressV4HasBeenSet; }
45 template <typename IpAddressV4T = Aws::String>
46 void SetIpAddressV4(IpAddressV4T&& value) {
47 m_ipAddressV4HasBeenSet = true;
48 m_ipAddressV4 = std::forward<IpAddressV4T>(value);
49 }
50 template <typename IpAddressV4T = Aws::String>
51 IpAddressDetails& WithIpAddressV4(IpAddressV4T&& value) {
52 SetIpAddressV4(std::forward<IpAddressV4T>(value));
53 return *this;
54 }
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) {
65 m_ipCityHasBeenSet = true;
66 m_ipCity = std::forward<IpCityT>(value);
67 }
68 template <typename IpCityT = IpCity>
69 IpAddressDetails& WithIpCity(IpCityT&& value) {
70 SetIpCity(std::forward<IpCityT>(value));
71 return *this;
72 }
74
76
79 inline const IpCountry& GetIpCountry() const { return m_ipCountry; }
80 inline bool IpCountryHasBeenSet() const { return m_ipCountryHasBeenSet; }
81 template <typename IpCountryT = IpCountry>
82 void SetIpCountry(IpCountryT&& value) {
83 m_ipCountryHasBeenSet = true;
84 m_ipCountry = std::forward<IpCountryT>(value);
85 }
86 template <typename IpCountryT = IpCountry>
87 IpAddressDetails& WithIpCountry(IpCountryT&& value) {
88 SetIpCountry(std::forward<IpCountryT>(value));
89 return *this;
90 }
92
94
98 inline const IpGeoLocation& GetIpGeoLocation() const { return m_ipGeoLocation; }
99 inline bool IpGeoLocationHasBeenSet() const { return m_ipGeoLocationHasBeenSet; }
100 template <typename IpGeoLocationT = IpGeoLocation>
101 void SetIpGeoLocation(IpGeoLocationT&& value) {
102 m_ipGeoLocationHasBeenSet = true;
103 m_ipGeoLocation = std::forward<IpGeoLocationT>(value);
104 }
105 template <typename IpGeoLocationT = IpGeoLocation>
106 IpAddressDetails& WithIpGeoLocation(IpGeoLocationT&& value) {
107 SetIpGeoLocation(std::forward<IpGeoLocationT>(value));
108 return *this;
109 }
111
113
116 inline const IpOwner& GetIpOwner() const { return m_ipOwner; }
117 inline bool IpOwnerHasBeenSet() const { return m_ipOwnerHasBeenSet; }
118 template <typename IpOwnerT = IpOwner>
119 void SetIpOwner(IpOwnerT&& value) {
120 m_ipOwnerHasBeenSet = true;
121 m_ipOwner = std::forward<IpOwnerT>(value);
122 }
123 template <typename IpOwnerT = IpOwner>
124 IpAddressDetails& WithIpOwner(IpOwnerT&& value) {
125 SetIpOwner(std::forward<IpOwnerT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_ipAddressV4;
131
132 IpCity m_ipCity;
133
134 IpCountry m_ipCountry;
135
136 IpGeoLocation m_ipGeoLocation;
137
138 IpOwner m_ipOwner;
139 bool m_ipAddressV4HasBeenSet = false;
140 bool m_ipCityHasBeenSet = false;
141 bool m_ipCountryHasBeenSet = false;
142 bool m_ipGeoLocationHasBeenSet = false;
143 bool m_ipOwnerHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace Macie2
148} // 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