AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RemoteIpDetails.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/model/City.h>
9#include <aws/guardduty/model/Country.h>
10#include <aws/guardduty/model/GeoLocation.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/guardduty/model/Organization.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 GuardDuty
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_GUARDDUTY_API RemoteIpDetails() = default;
40 AWS_GUARDDUTY_API RemoteIpDetails(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const City& GetCity() const { return m_city; }
50 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
51 template<typename CityT = City>
52 void SetCity(CityT&& value) { m_cityHasBeenSet = true; m_city = std::forward<CityT>(value); }
53 template<typename CityT = City>
54 RemoteIpDetails& WithCity(CityT&& value) { SetCity(std::forward<CityT>(value)); return *this;}
56
58
61 inline const Country& GetCountry() const { return m_country; }
62 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
63 template<typename CountryT = Country>
64 void SetCountry(CountryT&& value) { m_countryHasBeenSet = true; m_country = std::forward<CountryT>(value); }
65 template<typename CountryT = Country>
66 RemoteIpDetails& WithCountry(CountryT&& value) { SetCountry(std::forward<CountryT>(value)); return *this;}
68
70
73 inline const GeoLocation& GetGeoLocation() const { return m_geoLocation; }
74 inline bool GeoLocationHasBeenSet() const { return m_geoLocationHasBeenSet; }
75 template<typename GeoLocationT = GeoLocation>
76 void SetGeoLocation(GeoLocationT&& value) { m_geoLocationHasBeenSet = true; m_geoLocation = std::forward<GeoLocationT>(value); }
77 template<typename GeoLocationT = GeoLocation>
78 RemoteIpDetails& WithGeoLocation(GeoLocationT&& value) { SetGeoLocation(std::forward<GeoLocationT>(value)); return *this;}
80
82
85 inline const Aws::String& GetIpAddressV4() const { return m_ipAddressV4; }
86 inline bool IpAddressV4HasBeenSet() const { return m_ipAddressV4HasBeenSet; }
87 template<typename IpAddressV4T = Aws::String>
88 void SetIpAddressV4(IpAddressV4T&& value) { m_ipAddressV4HasBeenSet = true; m_ipAddressV4 = std::forward<IpAddressV4T>(value); }
89 template<typename IpAddressV4T = Aws::String>
90 RemoteIpDetails& WithIpAddressV4(IpAddressV4T&& value) { SetIpAddressV4(std::forward<IpAddressV4T>(value)); return *this;}
92
94
97 inline const Aws::String& GetIpAddressV6() const { return m_ipAddressV6; }
98 inline bool IpAddressV6HasBeenSet() const { return m_ipAddressV6HasBeenSet; }
99 template<typename IpAddressV6T = Aws::String>
100 void SetIpAddressV6(IpAddressV6T&& value) { m_ipAddressV6HasBeenSet = true; m_ipAddressV6 = std::forward<IpAddressV6T>(value); }
101 template<typename IpAddressV6T = Aws::String>
102 RemoteIpDetails& WithIpAddressV6(IpAddressV6T&& value) { SetIpAddressV6(std::forward<IpAddressV6T>(value)); return *this;}
104
106
109 inline const Organization& GetOrganization() const { return m_organization; }
110 inline bool OrganizationHasBeenSet() const { return m_organizationHasBeenSet; }
111 template<typename OrganizationT = Organization>
112 void SetOrganization(OrganizationT&& value) { m_organizationHasBeenSet = true; m_organization = std::forward<OrganizationT>(value); }
113 template<typename OrganizationT = Organization>
114 RemoteIpDetails& WithOrganization(OrganizationT&& value) { SetOrganization(std::forward<OrganizationT>(value)); return *this;}
116 private:
117
118 City m_city;
119 bool m_cityHasBeenSet = false;
120
121 Country m_country;
122 bool m_countryHasBeenSet = false;
123
124 GeoLocation m_geoLocation;
125 bool m_geoLocationHasBeenSet = false;
126
127 Aws::String m_ipAddressV4;
128 bool m_ipAddressV4HasBeenSet = false;
129
130 Aws::String m_ipAddressV6;
131 bool m_ipAddressV6HasBeenSet = false;
132
133 Organization m_organization;
134 bool m_organizationHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace GuardDuty
139} // namespace Aws
const Organization & GetOrganization() const
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const GeoLocation & GetGeoLocation() const
RemoteIpDetails & WithIpAddressV4(IpAddressV4T &&value)
AWS_GUARDDUTY_API RemoteIpDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
RemoteIpDetails & WithCountry(CountryT &&value)
RemoteIpDetails & WithGeoLocation(GeoLocationT &&value)
void SetIpAddressV4(IpAddressV4T &&value)
const Aws::String & GetIpAddressV6() const
void SetIpAddressV6(IpAddressV6T &&value)
void SetGeoLocation(GeoLocationT &&value)
const Aws::String & GetIpAddressV4() const
AWS_GUARDDUTY_API RemoteIpDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API RemoteIpDetails()=default
RemoteIpDetails & WithOrganization(OrganizationT &&value)
RemoteIpDetails & WithCity(CityT &&value)
void SetOrganization(OrganizationT &&value)
RemoteIpDetails & WithIpAddressV6(IpAddressV6T &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue