@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ImpactedLocation extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
ImpactedLocation() |
Modifier and Type | Method and Description |
---|---|
ImpactedLocation |
clone() |
boolean |
equals(Object obj) |
String |
getASName()
The name of the internet service provider (ISP) or network (ASN).
|
Long |
getASNumber()
The Autonomous System Number (ASN) of the network at an impacted location.
|
NetworkImpairment |
getCausedBy()
The cause of the impairment.
|
String |
getCity()
The name of the city where the health event is located.
|
String |
getCountry()
The name of the country where the health event is located.
|
String |
getCountryCode()
The country code where the health event is located.
|
InternetHealth |
getInternetHealth()
The calculated health at a specific location.
|
List<String> |
getIpv4Prefixes()
The IPv4 prefixes at the client location that was impacted by the health event.
|
Double |
getLatitude()
The latitude where the health event is located.
|
Double |
getLongitude()
The longitude where the health event is located.
|
String |
getMetro()
The metro area where the health event is located.
|
String |
getServiceLocation()
The service location where the health event is located.
|
String |
getStatus()
The status of the health event at an impacted location.
|
String |
getSubdivision()
The subdivision location where the health event is located.
|
String |
getSubdivisionCode()
The subdivision code where the health event is located.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setASName(String aSName)
The name of the internet service provider (ISP) or network (ASN).
|
void |
setASNumber(Long aSNumber)
The Autonomous System Number (ASN) of the network at an impacted location.
|
void |
setCausedBy(NetworkImpairment causedBy)
The cause of the impairment.
|
void |
setCity(String city)
The name of the city where the health event is located.
|
void |
setCountry(String country)
The name of the country where the health event is located.
|
void |
setCountryCode(String countryCode)
The country code where the health event is located.
|
void |
setInternetHealth(InternetHealth internetHealth)
The calculated health at a specific location.
|
void |
setIpv4Prefixes(Collection<String> ipv4Prefixes)
The IPv4 prefixes at the client location that was impacted by the health event.
|
void |
setLatitude(Double latitude)
The latitude where the health event is located.
|
void |
setLongitude(Double longitude)
The longitude where the health event is located.
|
void |
setMetro(String metro)
The metro area where the health event is located.
|
void |
setServiceLocation(String serviceLocation)
The service location where the health event is located.
|
void |
setStatus(String status)
The status of the health event at an impacted location.
|
void |
setSubdivision(String subdivision)
The subdivision location where the health event is located.
|
void |
setSubdivisionCode(String subdivisionCode)
The subdivision code where the health event is located.
|
String |
toString()
Returns a string representation of this object.
|
ImpactedLocation |
withASName(String aSName)
The name of the internet service provider (ISP) or network (ASN).
|
ImpactedLocation |
withASNumber(Long aSNumber)
The Autonomous System Number (ASN) of the network at an impacted location.
|
ImpactedLocation |
withCausedBy(NetworkImpairment causedBy)
The cause of the impairment.
|
ImpactedLocation |
withCity(String city)
The name of the city where the health event is located.
|
ImpactedLocation |
withCountry(String country)
The name of the country where the health event is located.
|
ImpactedLocation |
withCountryCode(String countryCode)
The country code where the health event is located.
|
ImpactedLocation |
withInternetHealth(InternetHealth internetHealth)
The calculated health at a specific location.
|
ImpactedLocation |
withIpv4Prefixes(Collection<String> ipv4Prefixes)
The IPv4 prefixes at the client location that was impacted by the health event.
|
ImpactedLocation |
withIpv4Prefixes(String... ipv4Prefixes)
The IPv4 prefixes at the client location that was impacted by the health event.
|
ImpactedLocation |
withLatitude(Double latitude)
The latitude where the health event is located.
|
ImpactedLocation |
withLongitude(Double longitude)
The longitude where the health event is located.
|
ImpactedLocation |
withMetro(String metro)
The metro area where the health event is located.
|
ImpactedLocation |
withServiceLocation(String serviceLocation)
The service location where the health event is located.
|
ImpactedLocation |
withStatus(HealthEventStatus status)
The status of the health event at an impacted location.
|
ImpactedLocation |
withStatus(String status)
The status of the health event at an impacted location.
|
ImpactedLocation |
withSubdivision(String subdivision)
The subdivision location where the health event is located.
|
ImpactedLocation |
withSubdivisionCode(String subdivisionCode)
The subdivision code where the health event is located.
|
public void setASName(String aSName)
The name of the internet service provider (ISP) or network (ASN).
aSName
- The name of the internet service provider (ISP) or network (ASN).public String getASName()
The name of the internet service provider (ISP) or network (ASN).
public ImpactedLocation withASName(String aSName)
The name of the internet service provider (ISP) or network (ASN).
aSName
- The name of the internet service provider (ISP) or network (ASN).public void setASNumber(Long aSNumber)
The Autonomous System Number (ASN) of the network at an impacted location.
aSNumber
- The Autonomous System Number (ASN) of the network at an impacted location.public Long getASNumber()
The Autonomous System Number (ASN) of the network at an impacted location.
public ImpactedLocation withASNumber(Long aSNumber)
The Autonomous System Number (ASN) of the network at an impacted location.
aSNumber
- The Autonomous System Number (ASN) of the network at an impacted location.public void setCountry(String country)
The name of the country where the health event is located.
country
- The name of the country where the health event is located.public String getCountry()
The name of the country where the health event is located.
public ImpactedLocation withCountry(String country)
The name of the country where the health event is located.
country
- The name of the country where the health event is located.public void setSubdivision(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).
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 String getSubdivision()
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 ImpactedLocation withSubdivision(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).
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 void setMetro(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
- 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.
public String getMetro()
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 ImpactedLocation withMetro(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
- 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.
public void setCity(String city)
The name of the city where the health event is located.
city
- The name of the city where the health event is located.public String getCity()
The name of the city where the health event is located.
public ImpactedLocation withCity(String city)
The name of the city where the health event is located.
city
- The name of the city where the health event is located.public void setLatitude(Double latitude)
The latitude where the health event is located.
latitude
- The latitude where the health event is located.public Double getLatitude()
The latitude where the health event is located.
public ImpactedLocation withLatitude(Double latitude)
The latitude where the health event is located.
latitude
- The latitude where the health event is located.public void setLongitude(Double longitude)
The longitude where the health event is located.
longitude
- The longitude where the health event is located.public Double getLongitude()
The longitude where the health event is located.
public ImpactedLocation withLongitude(Double longitude)
The longitude where the health event is located.
longitude
- The longitude where the health event is located.public void setCountryCode(String countryCode)
The country code where the health event is located. The ISO 3166-2 codes for the country is provided, when available.
countryCode
- The country code where the health event is located. The ISO 3166-2 codes for the country is provided, when
available.public String getCountryCode()
The country code where the health event is located. The ISO 3166-2 codes for the country is provided, when available.
public ImpactedLocation withCountryCode(String countryCode)
The country code where the health event is located. The ISO 3166-2 codes for the country is provided, when available.
countryCode
- The country code where the health event is located. The ISO 3166-2 codes for the country is provided, when
available.public void setSubdivisionCode(String subdivisionCode)
The subdivision code where the health event is located. The ISO 3166-2 codes for country subdivisions is provided, when available.
subdivisionCode
- The subdivision code where the health event is located. The ISO 3166-2 codes for country subdivisions is
provided, when available.public String getSubdivisionCode()
The subdivision code where the health event is located. The ISO 3166-2 codes for country subdivisions is provided, when available.
public ImpactedLocation withSubdivisionCode(String subdivisionCode)
The subdivision code where the health event is located. The ISO 3166-2 codes for country subdivisions is provided, when available.
subdivisionCode
- The subdivision code where the health event is located. The ISO 3166-2 codes for country subdivisions is
provided, when available.public void setServiceLocation(String serviceLocation)
The service location where the health event is located.
serviceLocation
- The service location where the health event is located.public String getServiceLocation()
The service location where the health event is located.
public ImpactedLocation withServiceLocation(String serviceLocation)
The service location where the health event is located.
serviceLocation
- The service location where the health event is located.public void setStatus(String status)
The status of the health event at an impacted location.
status
- The status of the health event at an impacted location.HealthEventStatus
public String getStatus()
The status of the health event at an impacted location.
HealthEventStatus
public ImpactedLocation withStatus(String status)
The status of the health event at an impacted location.
status
- The status of the health event at an impacted location.HealthEventStatus
public ImpactedLocation withStatus(HealthEventStatus status)
The status of the health event at an impacted location.
status
- The status of the health event at an impacted location.HealthEventStatus
public void setCausedBy(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).
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 NetworkImpairment getCausedBy()
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 ImpactedLocation withCausedBy(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).
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 void setInternetHealth(InternetHealth internetHealth)
The calculated health at a specific location.
internetHealth
- The calculated health at a specific location.public InternetHealth getInternetHealth()
The calculated health at a specific location.
public ImpactedLocation withInternetHealth(InternetHealth internetHealth)
The calculated health at a specific location.
internetHealth
- The calculated health at a specific location.public List<String> getIpv4Prefixes()
The IPv4 prefixes at the client location that was impacted by the health event.
public void setIpv4Prefixes(Collection<String> ipv4Prefixes)
The IPv4 prefixes at the client location that was impacted by the health event.
ipv4Prefixes
- The IPv4 prefixes at the client location that was impacted by the health event.public ImpactedLocation withIpv4Prefixes(String... ipv4Prefixes)
The IPv4 prefixes at the client location that was impacted by the health event.
NOTE: This method appends the values to the existing list (if any). Use
setIpv4Prefixes(java.util.Collection)
or withIpv4Prefixes(java.util.Collection)
if you want to
override the existing values.
ipv4Prefixes
- The IPv4 prefixes at the client location that was impacted by the health event.public ImpactedLocation withIpv4Prefixes(Collection<String> ipv4Prefixes)
The IPv4 prefixes at the client location that was impacted by the health event.
ipv4Prefixes
- The IPv4 prefixes at the client location that was impacted by the health event.public String toString()
toString
in class Object
Object.toString()
public ImpactedLocation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.