Package com.dropbox.core.v2.teamlog
Class GeoLocationLogInfo
java.lang.Object
com.dropbox.core.v2.teamlog.GeoLocationLogInfo
Geographic location details.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGeoLocationLogInfo(String ipAddress) Geographic location details.GeoLocationLogInfo(String ipAddress, String city, String region, String country) Geographic location details. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCity()City name.Country code.IP address.Region name.inthashCode()static GeoLocationLogInfo.BuildernewBuilder(String ipAddress) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
city
-
region
-
country
-
ipAddress
-
-
Constructor Details
-
GeoLocationLogInfo
public GeoLocationLogInfo(@Nonnull String ipAddress, @Nullable String city, @Nullable String region, @Nullable String country) Geographic location details.Use
newBuilder(java.lang.String)to create instances of this class without specifying values for all optional fields.- Parameters:
ipAddress- IP address. Must not benull.city- City name.region- Region name.country- Country code.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
GeoLocationLogInfo
Geographic location details.The default values for unset fields will be used.
- Parameters:
ipAddress- IP address. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getIpAddress
IP address.- Returns:
- value for this field, never
null.
-
getCity
City name.- Returns:
- value for this field, or
nullif not present.
-
getRegion
Region name.- Returns:
- value for this field, or
nullif not present.
-
getCountry
Country code.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
Returns a new builder for creating an instance of this class.- Parameters:
ipAddress- IP address. Must not benull.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-