Class GeoLocation
java.lang.Object
com.azure.resourcemanager.securityinsights.models.GeoLocation
The geo-location context attached to the ip entity.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasn()
Get the asn property: Autonomous System Number.city()
Get the city property: City name.Get the countryCode property: The country code according to ISO 3166 format.Get the countryName property: Country name according to ISO 3166 Alpha 2: the lowercase of the English Short Name.latitude()
Get the latitude property: The longitude of the identified location, expressed as a floating point number with range of -180 to 180, with positive numbers representing East and negative numbers representing West.Get the longitude property: The latitude of the identified location, expressed as a floating point number with range of - 90 to 90, with positive numbers representing North and negative numbers representing South.state()
Get the state property: State name.void
validate()
Validates the instance.
-
Constructor Details
-
GeoLocation
public GeoLocation()
-
-
Method Details
-
asn
Get the asn property: Autonomous System Number.- Returns:
- the asn value.
-
city
Get the city property: City name.- Returns:
- the city value.
-
countryCode
Get the countryCode property: The country code according to ISO 3166 format.- Returns:
- the countryCode value.
-
countryName
Get the countryName property: Country name according to ISO 3166 Alpha 2: the lowercase of the English Short Name.- Returns:
- the countryName value.
-
latitude
Get the latitude property: The longitude of the identified location, expressed as a floating point number with range of -180 to 180, with positive numbers representing East and negative numbers representing West. Latitude and longitude are derived from the city or postal code.- Returns:
- the latitude value.
-
longitude
Get the longitude property: The latitude of the identified location, expressed as a floating point number with range of - 90 to 90, with positive numbers representing North and negative numbers representing South. Latitude and longitude are derived from the city or postal code.- Returns:
- the longitude value.
-
state
Get the state property: State name.- Returns:
- the state value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-