AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCity(const City& value) { m_cityHasBeenSet = true; m_city = value; }
52 inline void SetCity(City&& value) { m_cityHasBeenSet = true; m_city = std::move(value); }
53 inline RemoteIpDetails& WithCity(const City& value) { SetCity(value); return *this;}
54 inline RemoteIpDetails& WithCity(City&& value) { SetCity(std::move(value)); return *this;}
56
58
61 inline const Country& GetCountry() const{ return m_country; }
62 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
63 inline void SetCountry(const Country& value) { m_countryHasBeenSet = true; m_country = value; }
64 inline void SetCountry(Country&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
65 inline RemoteIpDetails& WithCountry(const Country& value) { SetCountry(value); return *this;}
66 inline RemoteIpDetails& WithCountry(Country&& value) { SetCountry(std::move(value)); return *this;}
68
70
73 inline const GeoLocation& GetGeoLocation() const{ return m_geoLocation; }
74 inline bool GeoLocationHasBeenSet() const { return m_geoLocationHasBeenSet; }
75 inline void SetGeoLocation(const GeoLocation& value) { m_geoLocationHasBeenSet = true; m_geoLocation = value; }
76 inline void SetGeoLocation(GeoLocation&& value) { m_geoLocationHasBeenSet = true; m_geoLocation = std::move(value); }
77 inline RemoteIpDetails& WithGeoLocation(const GeoLocation& value) { SetGeoLocation(value); return *this;}
78 inline RemoteIpDetails& WithGeoLocation(GeoLocation&& value) { SetGeoLocation(std::move(value)); return *this;}
80
82
85 inline const Aws::String& GetIpAddressV4() const{ return m_ipAddressV4; }
86 inline bool IpAddressV4HasBeenSet() const { return m_ipAddressV4HasBeenSet; }
87 inline void SetIpAddressV4(const Aws::String& value) { m_ipAddressV4HasBeenSet = true; m_ipAddressV4 = value; }
88 inline void SetIpAddressV4(Aws::String&& value) { m_ipAddressV4HasBeenSet = true; m_ipAddressV4 = std::move(value); }
89 inline void SetIpAddressV4(const char* value) { m_ipAddressV4HasBeenSet = true; m_ipAddressV4.assign(value); }
90 inline RemoteIpDetails& WithIpAddressV4(const Aws::String& value) { SetIpAddressV4(value); return *this;}
91 inline RemoteIpDetails& WithIpAddressV4(Aws::String&& value) { SetIpAddressV4(std::move(value)); return *this;}
92 inline RemoteIpDetails& WithIpAddressV4(const char* value) { SetIpAddressV4(value); return *this;}
94
96
99 inline const Aws::String& GetIpAddressV6() const{ return m_ipAddressV6; }
100 inline bool IpAddressV6HasBeenSet() const { return m_ipAddressV6HasBeenSet; }
101 inline void SetIpAddressV6(const Aws::String& value) { m_ipAddressV6HasBeenSet = true; m_ipAddressV6 = value; }
102 inline void SetIpAddressV6(Aws::String&& value) { m_ipAddressV6HasBeenSet = true; m_ipAddressV6 = std::move(value); }
103 inline void SetIpAddressV6(const char* value) { m_ipAddressV6HasBeenSet = true; m_ipAddressV6.assign(value); }
104 inline RemoteIpDetails& WithIpAddressV6(const Aws::String& value) { SetIpAddressV6(value); return *this;}
105 inline RemoteIpDetails& WithIpAddressV6(Aws::String&& value) { SetIpAddressV6(std::move(value)); return *this;}
106 inline RemoteIpDetails& WithIpAddressV6(const char* value) { SetIpAddressV6(value); return *this;}
108
110
113 inline const Organization& GetOrganization() const{ return m_organization; }
114 inline bool OrganizationHasBeenSet() const { return m_organizationHasBeenSet; }
115 inline void SetOrganization(const Organization& value) { m_organizationHasBeenSet = true; m_organization = value; }
116 inline void SetOrganization(Organization&& value) { m_organizationHasBeenSet = true; m_organization = std::move(value); }
117 inline RemoteIpDetails& WithOrganization(const Organization& value) { SetOrganization(value); return *this;}
118 inline RemoteIpDetails& WithOrganization(Organization&& value) { SetOrganization(std::move(value)); return *this;}
120 private:
121
122 City m_city;
123 bool m_cityHasBeenSet = false;
124
125 Country m_country;
126 bool m_countryHasBeenSet = false;
127
128 GeoLocation m_geoLocation;
129 bool m_geoLocationHasBeenSet = false;
130
131 Aws::String m_ipAddressV4;
132 bool m_ipAddressV4HasBeenSet = false;
133
134 Aws::String m_ipAddressV6;
135 bool m_ipAddressV6HasBeenSet = false;
136
137 Organization m_organization;
138 bool m_organizationHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace GuardDuty
143} // namespace Aws
void SetOrganization(const Organization &value)
const Organization & GetOrganization() const
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const GeoLocation & GetGeoLocation() const
AWS_GUARDDUTY_API RemoteIpDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIpAddressV4(Aws::String &&value)
void SetCountry(const Country &value)
void SetIpAddressV6(Aws::String &&value)
RemoteIpDetails & WithCountry(Country &&value)
RemoteIpDetails & WithIpAddressV4(Aws::String &&value)
const Aws::String & GetIpAddressV6() const
RemoteIpDetails & WithIpAddressV4(const char *value)
void SetGeoLocation(const GeoLocation &value)
const Aws::String & GetIpAddressV4() const
AWS_GUARDDUTY_API RemoteIpDetails(Aws::Utils::Json::JsonView jsonValue)
RemoteIpDetails & WithIpAddressV6(Aws::String &&value)
RemoteIpDetails & WithIpAddressV4(const Aws::String &value)
void SetGeoLocation(GeoLocation &&value)
void SetIpAddressV4(const Aws::String &value)
RemoteIpDetails & WithGeoLocation(GeoLocation &&value)
RemoteIpDetails & WithCity(City &&value)
RemoteIpDetails & WithOrganization(Organization &&value)
RemoteIpDetails & WithCountry(const Country &value)
RemoteIpDetails & WithOrganization(const Organization &value)
void SetOrganization(Organization &&value)
void SetIpAddressV6(const Aws::String &value)
RemoteIpDetails & WithIpAddressV6(const char *value)
RemoteIpDetails & WithCity(const City &value)
RemoteIpDetails & WithIpAddressV6(const Aws::String &value)
RemoteIpDetails & WithGeoLocation(const GeoLocation &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue