Package com.dropbox.core.v2.teamlog
Class GeoLocationLogInfo
- java.lang.Object
- 
- com.dropbox.core.v2.teamlog.GeoLocationLogInfo
 
- 
 public class GeoLocationLogInfo extends java.lang.ObjectGeographic location details.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classGeoLocationLogInfo.BuilderBuilder forGeoLocationLogInfo.
 - 
Constructor SummaryConstructors Constructor Description GeoLocationLogInfo(java.lang.String ipAddress)Geographic location details.GeoLocationLogInfo(java.lang.String ipAddress, java.lang.String city, java.lang.String region, java.lang.String country)Geographic location details.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetCity()City name.java.lang.StringgetCountry()Country code.java.lang.StringgetIpAddress()IP address.java.lang.StringgetRegion()Region name.inthashCode()static GeoLocationLogInfo.BuildernewBuilder(java.lang.String ipAddress)Returns a new builder for creating an instance of this class.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
 
- 
- 
- 
Constructor Detail- 
GeoLocationLogInfopublic GeoLocationLogInfo(java.lang.String ipAddress, java.lang.String city, java.lang.String region, java.lang.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 be- null.
- city- City name.
- region- Region name.
- country- Country code.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
GeoLocationLogInfopublic GeoLocationLogInfo(java.lang.String ipAddress) Geographic location details.The default values for unset fields will be used. - Parameters:
- ipAddress- IP address. Must not be- null.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getIpAddresspublic java.lang.String getIpAddress() IP address.- Returns:
- value for this field, never null.
 
 - 
getCitypublic java.lang.String getCity() City name.- Returns:
- value for this field, or nullif not present.
 
 - 
getRegionpublic java.lang.String getRegion() Region name.- Returns:
- value for this field, or nullif not present.
 
 - 
getCountrypublic java.lang.String getCountry() Country code.- Returns:
- value for this field, or nullif not present.
 
 - 
newBuilderpublic static GeoLocationLogInfo.Builder newBuilder(java.lang.String ipAddress) Returns a new builder for creating an instance of this class.- Parameters:
- ipAddress- IP address. Must not be- null.
- Returns:
- builder for this class.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toStringMultilinepublic java.lang.String 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
 
 
- 
 
-