@Generated(value="OracleSDKGenerator", comments="API Version: 20220901") public final class GeodataDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Geodata information for a given IP address
Note: Objects should always be created or deserialized using the GeodataDetails.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the GeodataDetails.Builder
, which maintain a
set of all explicitly set fields called GeodataDetails.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
GeodataDetails.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
GeodataDetails(String routedPrefix,
String origin,
String geoId,
String countryCode,
String adminDiv,
String city,
String latitude,
String longitude,
String label)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static GeodataDetails.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getAdminDiv()
State/Province/subdivision within the country
|
String |
getCity()
City of origin
|
String |
getCountryCode()
Two-letter abbreviation for country of origin
|
String |
getGeoId()
Unique Identifier (optional)
|
String |
getLabel()
Information on source providing the information
|
String |
getLatitude()
Latitude
|
String |
getLongitude()
Longitude
|
String |
getOrigin()
ASN entry
|
String |
getRoutedPrefix()
Encompassing assigned prefix for the IP
|
int |
hashCode() |
GeodataDetails.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"routedPrefix","origin","geoId","countryCode","adminDiv","city","latitude","longitude","label"}) public GeodataDetails(String routedPrefix, String origin, String geoId, String countryCode, String adminDiv, String city, String latitude, String longitude, String label)
public static GeodataDetails.Builder builder()
Create a new builder.
public GeodataDetails.Builder toBuilder()
public String getRoutedPrefix()
Encompassing assigned prefix for the IP
public String getOrigin()
ASN entry
public String getGeoId()
Unique Identifier (optional)
public String getCountryCode()
Two-letter abbreviation for country of origin
public String getAdminDiv()
State/Province/subdivision within the country
public String getCity()
City of origin
public String getLatitude()
Latitude
public String getLongitude()
Longitude
public String getLabel()
Information on source providing the information
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.