AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetIpAddressV4(const Aws::String& value) { m_ipAddressV4HasBeenSet = true; m_ipAddressV4 = value; }
54 inline void SetIpAddressV4(Aws::String&& value) { m_ipAddressV4HasBeenSet = true; m_ipAddressV4 = std::move(value); }
55 inline void SetIpAddressV4(const char* value) { m_ipAddressV4HasBeenSet = true; m_ipAddressV4.assign(value); }
56 inline ActionRemoteIpDetails& WithIpAddressV4(const Aws::String& value) { SetIpAddressV4(value); return *this;}
57 inline ActionRemoteIpDetails& WithIpAddressV4(Aws::String&& value) { SetIpAddressV4(std::move(value)); return *this;}
58 inline ActionRemoteIpDetails& WithIpAddressV4(const char* value) { SetIpAddressV4(value); return *this;}
60
62
66 inline const IpOrganizationDetails& GetOrganization() const{ return m_organization; }
67 inline bool OrganizationHasBeenSet() const { return m_organizationHasBeenSet; }
68 inline void SetOrganization(const IpOrganizationDetails& value) { m_organizationHasBeenSet = true; m_organization = value; }
69 inline void SetOrganization(IpOrganizationDetails&& value) { m_organizationHasBeenSet = true; m_organization = std::move(value); }
70 inline ActionRemoteIpDetails& WithOrganization(const IpOrganizationDetails& value) { SetOrganization(value); return *this;}
71 inline ActionRemoteIpDetails& WithOrganization(IpOrganizationDetails&& value) { SetOrganization(std::move(value)); return *this;}
73
75
78 inline const Country& GetCountry() const{ return m_country; }
79 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
80 inline void SetCountry(const Country& value) { m_countryHasBeenSet = true; m_country = value; }
81 inline void SetCountry(Country&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
82 inline ActionRemoteIpDetails& WithCountry(const Country& value) { SetCountry(value); return *this;}
83 inline ActionRemoteIpDetails& WithCountry(Country&& value) { SetCountry(std::move(value)); return *this;}
85
87
90 inline const City& GetCity() const{ return m_city; }
91 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
92 inline void SetCity(const City& value) { m_cityHasBeenSet = true; m_city = value; }
93 inline void SetCity(City&& value) { m_cityHasBeenSet = true; m_city = std::move(value); }
94 inline ActionRemoteIpDetails& WithCity(const City& value) { SetCity(value); return *this;}
95 inline ActionRemoteIpDetails& WithCity(City&& value) { SetCity(std::move(value)); return *this;}
97
99
102 inline const GeoLocation& GetGeoLocation() const{ return m_geoLocation; }
103 inline bool GeoLocationHasBeenSet() const { return m_geoLocationHasBeenSet; }
104 inline void SetGeoLocation(const GeoLocation& value) { m_geoLocationHasBeenSet = true; m_geoLocation = value; }
105 inline void SetGeoLocation(GeoLocation&& value) { m_geoLocationHasBeenSet = true; m_geoLocation = std::move(value); }
106 inline ActionRemoteIpDetails& WithGeoLocation(const GeoLocation& value) { SetGeoLocation(value); return *this;}
107 inline ActionRemoteIpDetails& WithGeoLocation(GeoLocation&& value) { SetGeoLocation(std::move(value)); return *this;}
109 private:
110
111 Aws::String m_ipAddressV4;
112 bool m_ipAddressV4HasBeenSet = false;
113
114 IpOrganizationDetails m_organization;
115 bool m_organizationHasBeenSet = false;
116
117 Country m_country;
118 bool m_countryHasBeenSet = false;
119
120 City m_city;
121 bool m_cityHasBeenSet = false;
122
123 GeoLocation m_geoLocation;
124 bool m_geoLocationHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace SecurityHub
129} // namespace Aws
AWS_SECURITYHUB_API ActionRemoteIpDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
ActionRemoteIpDetails & WithCity(const City &value)
void SetOrganization(const IpOrganizationDetails &value)
ActionRemoteIpDetails & WithCountry(Country &&value)
AWS_SECURITYHUB_API ActionRemoteIpDetails(Aws::Utils::Json::JsonView jsonValue)
ActionRemoteIpDetails & WithIpAddressV4(Aws::String &&value)
ActionRemoteIpDetails & WithOrganization(const IpOrganizationDetails &value)
ActionRemoteIpDetails & WithOrganization(IpOrganizationDetails &&value)
ActionRemoteIpDetails & WithIpAddressV4(const char *value)
ActionRemoteIpDetails & WithCountry(const Country &value)
ActionRemoteIpDetails & WithGeoLocation(const GeoLocation &value)
void SetOrganization(IpOrganizationDetails &&value)
ActionRemoteIpDetails & WithCity(City &&value)
ActionRemoteIpDetails & WithGeoLocation(GeoLocation &&value)
ActionRemoteIpDetails & WithIpAddressV4(const Aws::String &value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const IpOrganizationDetails & GetOrganization() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue