AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ActionRemoteIpDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9#include <aws/securityhub/model/City.h>
10#include <aws/securityhub/model/Country.h>
11#include <aws/securityhub/model/GeoLocation.h>
12#include <aws/securityhub/model/IpOrganizationDetails.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub {
24namespace Model {
25
35 public:
36 AWS_SECURITYHUB_API ActionRemoteIpDetails() = default;
37 AWS_SECURITYHUB_API ActionRemoteIpDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetIpAddressV4() const { return m_ipAddressV4; }
46 inline bool IpAddressV4HasBeenSet() const { return m_ipAddressV4HasBeenSet; }
47 template <typename IpAddressV4T = Aws::String>
48 void SetIpAddressV4(IpAddressV4T&& value) {
49 m_ipAddressV4HasBeenSet = true;
50 m_ipAddressV4 = std::forward<IpAddressV4T>(value);
51 }
52 template <typename IpAddressV4T = Aws::String>
53 ActionRemoteIpDetails& WithIpAddressV4(IpAddressV4T&& value) {
54 SetIpAddressV4(std::forward<IpAddressV4T>(value));
55 return *this;
56 }
58
60
64 inline const IpOrganizationDetails& GetOrganization() const { return m_organization; }
65 inline bool OrganizationHasBeenSet() const { return m_organizationHasBeenSet; }
66 template <typename OrganizationT = IpOrganizationDetails>
67 void SetOrganization(OrganizationT&& value) {
68 m_organizationHasBeenSet = true;
69 m_organization = std::forward<OrganizationT>(value);
70 }
71 template <typename OrganizationT = IpOrganizationDetails>
72 ActionRemoteIpDetails& WithOrganization(OrganizationT&& value) {
73 SetOrganization(std::forward<OrganizationT>(value));
74 return *this;
75 }
77
79
82 inline const Country& GetCountry() const { return m_country; }
83 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
84 template <typename CountryT = Country>
85 void SetCountry(CountryT&& value) {
86 m_countryHasBeenSet = true;
87 m_country = std::forward<CountryT>(value);
88 }
89 template <typename CountryT = Country>
91 SetCountry(std::forward<CountryT>(value));
92 return *this;
93 }
95
97
100 inline const City& GetCity() const { return m_city; }
101 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
102 template <typename CityT = City>
103 void SetCity(CityT&& value) {
104 m_cityHasBeenSet = true;
105 m_city = std::forward<CityT>(value);
106 }
107 template <typename CityT = City>
109 SetCity(std::forward<CityT>(value));
110 return *this;
111 }
113
115
118 inline const GeoLocation& GetGeoLocation() const { return m_geoLocation; }
119 inline bool GeoLocationHasBeenSet() const { return m_geoLocationHasBeenSet; }
120 template <typename GeoLocationT = GeoLocation>
121 void SetGeoLocation(GeoLocationT&& value) {
122 m_geoLocationHasBeenSet = true;
123 m_geoLocation = std::forward<GeoLocationT>(value);
124 }
125 template <typename GeoLocationT = GeoLocation>
126 ActionRemoteIpDetails& WithGeoLocation(GeoLocationT&& value) {
127 SetGeoLocation(std::forward<GeoLocationT>(value));
128 return *this;
129 }
131 private:
132 Aws::String m_ipAddressV4;
133
134 IpOrganizationDetails m_organization;
135
136 Country m_country;
137
138 City m_city;
139
140 GeoLocation m_geoLocation;
141 bool m_ipAddressV4HasBeenSet = false;
142 bool m_organizationHasBeenSet = false;
143 bool m_countryHasBeenSet = false;
144 bool m_cityHasBeenSet = false;
145 bool m_geoLocationHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace SecurityHub
150} // namespace Aws
AWS_SECURITYHUB_API ActionRemoteIpDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API ActionRemoteIpDetails()=default
ActionRemoteIpDetails & WithGeoLocation(GeoLocationT &&value)
AWS_SECURITYHUB_API ActionRemoteIpDetails(Aws::Utils::Json::JsonView jsonValue)
ActionRemoteIpDetails & WithCity(CityT &&value)
ActionRemoteIpDetails & WithCountry(CountryT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
ActionRemoteIpDetails & WithIpAddressV4(IpAddressV4T &&value)
ActionRemoteIpDetails & WithOrganization(OrganizationT &&value)
const IpOrganizationDetails & GetOrganization() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue