Class Geolocation.Builder
- java.lang.Object
-
- com.oracle.bmc.healthchecks.model.Geolocation.Builder
-
- Enclosing class:
- Geolocation
public static class Geolocation.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Geolocation.BuilderadminDivCode(String adminDivCode)The ISO 3166-2 code for this location’s first-level administrative division, either a US state or Canadian province.Geolocationbuild()Geolocation.BuildercityName(String cityName)Common English-language name for the city.Geolocation.Buildercopy(Geolocation model)Geolocation.BuildercountryCode(String countryCode)The ISO 3166-1 alpha-2 country code.Geolocation.BuildercountryName(String countryName)The common English-language name for the country.Geolocation.BuildergeoKey(String geoKey)An opaque identifier for the geographic location of the vantage point.Geolocation.Builderlatitude(Float latitude)Degrees north of the Equator.Geolocation.Builderlongitude(Float longitude)Degrees east of the prime meridian.
-
-
-
Method Detail
-
geoKey
public Geolocation.Builder geoKey(String geoKey)
An opaque identifier for the geographic location of the vantage point.- Parameters:
geoKey- the value to set- Returns:
- this builder
-
adminDivCode
public Geolocation.Builder adminDivCode(String adminDivCode)
The ISO 3166-2 code for this location’s first-level administrative division, either a US state or Canadian province.Only included for locations in the US or Canada. For a list of codes, see Country Codes.
- Parameters:
adminDivCode- the value to set- Returns:
- this builder
-
cityName
public Geolocation.Builder cityName(String cityName)
Common English-language name for the city.- Parameters:
cityName- the value to set- Returns:
- this builder
-
countryCode
public Geolocation.Builder countryCode(String countryCode)
The ISO 3166-1 alpha-2 country code.For a list of codes, see Country Codes.
- Parameters:
countryCode- the value to set- Returns:
- this builder
-
countryName
public Geolocation.Builder countryName(String countryName)
The common English-language name for the country.- Parameters:
countryName- the value to set- Returns:
- this builder
-
latitude
public Geolocation.Builder latitude(Float latitude)
Degrees north of the Equator.- Parameters:
latitude- the value to set- Returns:
- this builder
-
longitude
public Geolocation.Builder longitude(Float longitude)
Degrees east of the prime meridian.- Parameters:
longitude- the value to set- Returns:
- this builder
-
build
public Geolocation build()
-
copy
public Geolocation.Builder copy(Geolocation model)
-
-