@Generated(value="software.amazon.awssdk:codegen") public final class ImpactedLocation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ImpactedLocation.Builder,ImpactedLocation>
Information about a location impacted by a health event in Amazon CloudWatch Internet Monitor.
Geographic regions are hierarchically categorized into country, subdivision, metro and city geographic granularities. The geographic region is identified based on the IP address used at the client locations.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ImpactedLocation.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
asName()
The name of the network at an impacted location.
|
Long |
asNumber()
The Autonomous System Number (ASN) of the network at an impacted location.
|
static ImpactedLocation.Builder |
builder() |
NetworkImpairment |
causedBy()
The cause of the impairment.
|
String |
city()
The name of the city where the health event is located.
|
String |
country()
The name of the country where the health event is located.
|
String |
countryCode()
The country code where the health event is located.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
InternetHealth |
internetHealth()
The calculated health at a specific location.
|
Double |
latitude()
The latitude where the health event is located.
|
Double |
longitude()
The longitude where the health event is located.
|
String |
metro()
The metro area where the health event is located.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ImpactedLocation.Builder> |
serializableBuilderClass() |
String |
serviceLocation()
The service location where the health event is located.
|
HealthEventStatus |
status()
The status of the health event at an impacted location.
|
String |
statusAsString()
The status of the health event at an impacted location.
|
String |
subdivision()
The subdivision location where the health event is located.
|
String |
subdivisionCode()
The subdivision code where the health event is located.
|
ImpactedLocation.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String asName()
The name of the network at an impacted location.
public final Long asNumber()
The Autonomous System Number (ASN) of the network at an impacted location.
public final String country()
The name of the country where the health event is located.
public final String subdivision()
The subdivision location where the health event is located. The subdivision usually maps to states in most countries (including the United States). For United Kingdom, it maps to a country (England, Scotland, Wales) or province (Northern Ireland).
public final String metro()
The metro area where the health event is located.
Metro indicates a metropolitan region in the United States, such as the region around New York City. In non-US countries, this is a second-level subdivision. For example, in the United Kingdom, it could be a county, a London borough, a unitary authority, council area, and so on.
Metro indicates a metropolitan region in the United States, such as the region around New York City. In non-US countries, this is a second-level subdivision. For example, in the United Kingdom, it could be a county, a London borough, a unitary authority, council area, and so on.
public final String city()
The name of the city where the health event is located.
public final Double latitude()
The latitude where the health event is located.
public final Double longitude()
The longitude where the health event is located.
public final String countryCode()
The country code where the health event is located. The ISO 3166-2 codes for the country is provided, when available.
public final String subdivisionCode()
The subdivision code where the health event is located. The ISO 3166-2 codes for country subdivisions is provided, when available.
public final String serviceLocation()
The service location where the health event is located.
public final HealthEventStatus status()
The status of the health event at an impacted location.
If the service returns an enum value that is not available in the current SDK version, status will
return HealthEventStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
HealthEventStatuspublic final String statusAsString()
The status of the health event at an impacted location.
If the service returns an enum value that is not available in the current SDK version, status will
return HealthEventStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
HealthEventStatuspublic final NetworkImpairment causedBy()
The cause of the impairment. There are two types of network impairments: Amazon Web Services network issues or internet issues. Internet issues are typically a problem with a network provider, like an internet service provider (ISP).
public final InternetHealth internetHealth()
The calculated health at a specific location.
public ImpactedLocation.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ImpactedLocation.Builder,ImpactedLocation>public static ImpactedLocation.Builder builder()
public static Class<? extends ImpactedLocation.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.