7#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/internetmonitor/model/HealthEventStatus.h>
10#include <aws/internetmonitor/model/NetworkImpairment.h>
11#include <aws/internetmonitor/model/InternetHealth.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
25namespace InternetMonitor
54 template<
typename ASNameT = Aws::String>
55 void SetASName(ASNameT&& value) { m_aSNameHasBeenSet =
true; m_aSName = std::forward<ASNameT>(value); }
56 template<
typename ASNameT = Aws::String>
67 inline void SetASNumber(
long long value) { m_aSNumberHasBeenSet =
true; m_aSNumber = value; }
77 template<
typename CountryT = Aws::String>
78 void SetCountry(CountryT&& value) { m_countryHasBeenSet =
true; m_country = std::forward<CountryT>(value); }
79 template<
typename CountryT = Aws::String>
92 template<
typename SubdivisionT = Aws::String>
93 void SetSubdivision(SubdivisionT&& value) { m_subdivisionHasBeenSet =
true; m_subdivision = std::forward<SubdivisionT>(value); }
94 template<
typename SubdivisionT = Aws::String>
108 template<
typename MetroT = Aws::String>
109 void SetMetro(MetroT&& value) { m_metroHasBeenSet =
true; m_metro = std::forward<MetroT>(value); }
110 template<
typename MetroT = Aws::String>
120 template<
typename CityT = Aws::String>
121 void SetCity(CityT&& value) { m_cityHasBeenSet =
true; m_city = std::forward<CityT>(value); }
122 template<
typename CityT = Aws::String>
132 inline void SetLatitude(
double value) { m_latitudeHasBeenSet =
true; m_latitude = value; }
142 inline void SetLongitude(
double value) { m_longitudeHasBeenSet =
true; m_longitude = value; }
153 template<
typename CountryCodeT = Aws::String>
154 void SetCountryCode(CountryCodeT&& value) { m_countryCodeHasBeenSet =
true; m_countryCode = std::forward<CountryCodeT>(value); }
155 template<
typename CountryCodeT = Aws::String>
166 template<
typename SubdivisionCodeT = Aws::String>
167 void SetSubdivisionCode(SubdivisionCodeT&& value) { m_subdivisionCodeHasBeenSet =
true; m_subdivisionCode = std::forward<SubdivisionCodeT>(value); }
168 template<
typename SubdivisionCodeT = Aws::String>
178 template<
typename ServiceLocationT = Aws::String>
179 void SetServiceLocation(ServiceLocationT&& value) { m_serviceLocationHasBeenSet =
true; m_serviceLocation = std::forward<ServiceLocationT>(value); }
180 template<
typename ServiceLocationT = Aws::String>
203 template<
typename CausedByT = NetworkImpairment>
204 void SetCausedBy(CausedByT&& value) { m_causedByHasBeenSet =
true; m_causedBy = std::forward<CausedByT>(value); }
205 template<
typename CausedByT = NetworkImpairment>
215 template<
typename InternetHealthT = InternetHealth>
216 void SetInternetHealth(InternetHealthT&& value) { m_internetHealthHasBeenSet =
true; m_internetHealth = std::forward<InternetHealthT>(value); }
217 template<
typename InternetHealthT = InternetHealth>
228 template<
typename Ipv4PrefixesT = Aws::Vector<Aws::String>>
229 void SetIpv4Prefixes(Ipv4PrefixesT&& value) { m_ipv4PrefixesHasBeenSet =
true; m_ipv4Prefixes = std::forward<Ipv4PrefixesT>(value); }
230 template<
typename Ipv4PrefixesT = Aws::Vector<Aws::String>>
232 template<
typename Ipv4PrefixesT = Aws::String>
233 ImpactedLocation&
AddIpv4Prefixes(Ipv4PrefixesT&& value) { m_ipv4PrefixesHasBeenSet =
true; m_ipv4Prefixes.emplace_back(std::forward<Ipv4PrefixesT>(value));
return *
this; }
238 bool m_aSNameHasBeenSet =
false;
240 long long m_aSNumber{0};
241 bool m_aSNumberHasBeenSet =
false;
244 bool m_countryHasBeenSet =
false;
247 bool m_subdivisionHasBeenSet =
false;
250 bool m_metroHasBeenSet =
false;
253 bool m_cityHasBeenSet =
false;
255 double m_latitude{0.0};
256 bool m_latitudeHasBeenSet =
false;
258 double m_longitude{0.0};
259 bool m_longitudeHasBeenSet =
false;
262 bool m_countryCodeHasBeenSet =
false;
265 bool m_subdivisionCodeHasBeenSet =
false;
268 bool m_serviceLocationHasBeenSet =
false;
271 bool m_statusHasBeenSet =
false;
273 NetworkImpairment m_causedBy;
274 bool m_causedByHasBeenSet =
false;
276 InternetHealth m_internetHealth;
277 bool m_internetHealthHasBeenSet =
false;
280 bool m_ipv4PrefixesHasBeenSet =
false;
const Aws::String & GetASName() const
void SetASName(ASNameT &&value)
void SetCausedBy(CausedByT &&value)
void SetCity(CityT &&value)
ImpactedLocation & WithCity(CityT &&value)
ImpactedLocation & WithIpv4Prefixes(Ipv4PrefixesT &&value)
void SetStatus(HealthEventStatus value)
HealthEventStatus GetStatus() const
ImpactedLocation & WithASNumber(long long value)
AWS_INTERNETMONITOR_API ImpactedLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCity() const
void SetSubdivisionCode(SubdivisionCodeT &&value)
double GetLongitude() const
void SetIpv4Prefixes(Ipv4PrefixesT &&value)
bool LongitudeHasBeenSet() const
const Aws::String & GetSubdivisionCode() const
bool SubdivisionCodeHasBeenSet() const
bool InternetHealthHasBeenSet() const
ImpactedLocation & WithLatitude(double value)
ImpactedLocation & WithStatus(HealthEventStatus value)
bool StatusHasBeenSet() const
void SetServiceLocation(ServiceLocationT &&value)
bool CountryHasBeenSet() const
long long GetASNumber() const
bool CityHasBeenSet() const
const InternetHealth & GetInternetHealth() const
ImpactedLocation & WithCountry(CountryT &&value)
void SetLongitude(double value)
bool CausedByHasBeenSet() const
void SetInternetHealth(InternetHealthT &&value)
void SetMetro(MetroT &&value)
ImpactedLocation & WithLongitude(double value)
void SetSubdivision(SubdivisionT &&value)
ImpactedLocation & WithCountryCode(CountryCodeT &&value)
const NetworkImpairment & GetCausedBy() const
ImpactedLocation & WithSubdivision(SubdivisionT &&value)
bool CountryCodeHasBeenSet() const
const Aws::String & GetMetro() const
AWS_INTERNETMONITOR_API ImpactedLocation(Aws::Utils::Json::JsonView jsonValue)
void SetCountry(CountryT &&value)
void SetASNumber(long long value)
const Aws::Vector< Aws::String > & GetIpv4Prefixes() const
const Aws::String & GetSubdivision() const
ImpactedLocation & WithMetro(MetroT &&value)
bool LatitudeHasBeenSet() const
const Aws::String & GetCountryCode() const
void SetCountryCode(CountryCodeT &&value)
ImpactedLocation & WithSubdivisionCode(SubdivisionCodeT &&value)
bool ASNameHasBeenSet() const
ImpactedLocation & WithCausedBy(CausedByT &&value)
bool ASNumberHasBeenSet() const
const Aws::String & GetServiceLocation() const
ImpactedLocation & WithInternetHealth(InternetHealthT &&value)
ImpactedLocation & AddIpv4Prefixes(Ipv4PrefixesT &&value)
AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
bool ServiceLocationHasBeenSet() const
bool Ipv4PrefixesHasBeenSet() const
AWS_INTERNETMONITOR_API ImpactedLocation()=default
ImpactedLocation & WithServiceLocation(ServiceLocationT &&value)
const Aws::String & GetCountry() const
bool SubdivisionHasBeenSet() const
double GetLatitude() const
ImpactedLocation & WithASName(ASNameT &&value)
bool MetroHasBeenSet() const
void SetLatitude(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue