AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ActionRemoteIpDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/IpOrganizationDetails.h>
10#include <aws/securityhub/model/Country.h>
11#include <aws/securityhub/model/City.h>
12#include <aws/securityhub/model/GeoLocation.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 SecurityHub
26{
27namespace Model
28{
29
39 {
40 public:
41 AWS_SECURITYHUB_API ActionRemoteIpDetails() = default;
42 AWS_SECURITYHUB_API ActionRemoteIpDetails(Aws::Utils::Json::JsonView jsonValue);
44 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetIpAddressV4() const { return m_ipAddressV4; }
52 inline bool IpAddressV4HasBeenSet() const { return m_ipAddressV4HasBeenSet; }
53 template<typename IpAddressV4T = Aws::String>
54 void SetIpAddressV4(IpAddressV4T&& value) { m_ipAddressV4HasBeenSet = true; m_ipAddressV4 = std::forward<IpAddressV4T>(value); }
55 template<typename IpAddressV4T = Aws::String>
56 ActionRemoteIpDetails& WithIpAddressV4(IpAddressV4T&& value) { SetIpAddressV4(std::forward<IpAddressV4T>(value)); return *this;}
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) { m_organizationHasBeenSet = true; m_organization = std::forward<OrganizationT>(value); }
68 template<typename OrganizationT = IpOrganizationDetails>
69 ActionRemoteIpDetails& WithOrganization(OrganizationT&& value) { SetOrganization(std::forward<OrganizationT>(value)); return *this;}
71
73
76 inline const Country& GetCountry() const { return m_country; }
77 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
78 template<typename CountryT = Country>
79 void SetCountry(CountryT&& value) { m_countryHasBeenSet = true; m_country = std::forward<CountryT>(value); }
80 template<typename CountryT = Country>
81 ActionRemoteIpDetails& WithCountry(CountryT&& value) { SetCountry(std::forward<CountryT>(value)); return *this;}
83
85
88 inline const City& GetCity() const { return m_city; }
89 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
90 template<typename CityT = City>
91 void SetCity(CityT&& value) { m_cityHasBeenSet = true; m_city = std::forward<CityT>(value); }
92 template<typename CityT = City>
93 ActionRemoteIpDetails& WithCity(CityT&& value) { SetCity(std::forward<CityT>(value)); return *this;}
95
97
100 inline const GeoLocation& GetGeoLocation() const { return m_geoLocation; }
101 inline bool GeoLocationHasBeenSet() const { return m_geoLocationHasBeenSet; }
102 template<typename GeoLocationT = GeoLocation>
103 void SetGeoLocation(GeoLocationT&& value) { m_geoLocationHasBeenSet = true; m_geoLocation = std::forward<GeoLocationT>(value); }
104 template<typename GeoLocationT = GeoLocation>
105 ActionRemoteIpDetails& WithGeoLocation(GeoLocationT&& value) { SetGeoLocation(std::forward<GeoLocationT>(value)); return *this;}
107 private:
108
109 Aws::String m_ipAddressV4;
110 bool m_ipAddressV4HasBeenSet = false;
111
112 IpOrganizationDetails m_organization;
113 bool m_organizationHasBeenSet = false;
114
115 Country m_country;
116 bool m_countryHasBeenSet = false;
117
118 City m_city;
119 bool m_cityHasBeenSet = false;
120
121 GeoLocation m_geoLocation;
122 bool m_geoLocationHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace SecurityHub
127} // 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