Record Class IspResponse
java.lang.Object
java.lang.Record
com.maxmind.geoip2.model.IspResponse
- Record Components:
autonomousSystemNumber- The autonomous system number associated with the IP address.autonomousSystemOrganization- The organization associated with the registered autonomous system number for the IP address.ipAddress- The IP address that the data in the model is for.isp- The name of the ISP associated with the IP address.mobileCountryCode- The mobile country code (MCC) associated with the IP address and ISP. This property is available from the City and Insights web services and the GeoIP2 Enterprise database.mobileNetworkCode- The mobile network code (MNC) associated with the IP address and ISP. This property is available from the City and Insights web services and the GeoIP2 Enterprise database.organization- The name of the organization associated with the IP address.network- The network associated with the record. In particular, this is the largest network where all the fields besides IP address have the same value.
- All Implemented Interfaces:
JsonSerializable
public record IspResponse(Long autonomousSystemNumber, String autonomousSystemOrganization, InetAddress ipAddress, String isp, String mobileCountryCode, String mobileNetworkCode, String organization, Network network)
extends Record
implements JsonSerializable
This class provides the GeoIP2 ISP model.
-
Constructor Summary
ConstructorsConstructorDescriptionIspResponse(Long autonomousSystemNumber, String autonomousSystemOrganization, InetAddress ipAddress, String isp, String mobileCountryCode, String mobileNetworkCode, String organization, Network network) Creates an instance of aIspResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theautonomousSystemNumberrecord component.Returns the value of theautonomousSystemOrganizationrecord component.final booleanIndicates whether some other object is "equal to" this one.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.UseautonomousSystemOrganization()instead.Deprecated, for removal: This API element is subject to removal in a future version.UseipAddress()instead.getIsp()Deprecated, for removal: This API element is subject to removal in a future version.Useisp()instead.Deprecated, for removal: This API element is subject to removal in a future version.UsemobileCountryCode()instead.Deprecated, for removal: This API element is subject to removal in a future version.UsemobileNetworkCode()instead.Deprecated, for removal: This API element is subject to removal in a future version.Usenetwork()instead.Deprecated, for removal: This API element is subject to removal in a future version.Useorganization()instead.final inthashCode()Returns a hash code value for this object.Returns the value of theipAddressrecord component.isp()Returns the value of theisprecord component.Returns the value of themobileCountryCoderecord component.Returns the value of themobileNetworkCoderecord component.network()Returns the value of thenetworkrecord component.Returns the value of theorganizationrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface JsonSerializable
toJson
-
Constructor Details
-
IspResponse
public IspResponse(Long autonomousSystemNumber, String autonomousSystemOrganization, InetAddress ipAddress, String isp, String mobileCountryCode, String mobileNetworkCode, String organization, Network network) Creates an instance of aIspResponserecord class.- Parameters:
autonomousSystemNumber- the value for theautonomousSystemNumberrecord componentautonomousSystemOrganization- the value for theautonomousSystemOrganizationrecord componentipAddress- the value for theipAddressrecord componentisp- the value for theisprecord componentmobileCountryCode- the value for themobileCountryCoderecord componentmobileNetworkCode- the value for themobileNetworkCoderecord componentorganization- the value for theorganizationrecord componentnetwork- the value for thenetworkrecord component
-
-
Method Details
-
getAutonomousSystemNumber
Deprecated, for removal: This API element is subject to removal in a future version.UseautonomousSystemNumber()instead. This method will be removed in 6.0.0.- Returns:
- The autonomous system number associated with the IP address.
-
getAutonomousSystemOrganization
Deprecated, for removal: This API element is subject to removal in a future version.UseautonomousSystemOrganization()instead. This method will be removed in 6.0.0.- Returns:
- The organization associated with the registered autonomous system number for the IP address
-
getIpAddress
Deprecated, for removal: This API element is subject to removal in a future version.UseipAddress()instead. This method will be removed in 6.0.0.- Returns:
- The IP address that the data in the model is for.
-
getIsp
Deprecated, for removal: This API element is subject to removal in a future version.Useisp()instead. This method will be removed in 6.0.0.- Returns:
- The name of the ISP associated with the IP address.
-
getMobileCountryCode
Deprecated, for removal: This API element is subject to removal in a future version.UsemobileCountryCode()instead. This method will be removed in 6.0.0.- Returns:
- The mobile country code (MCC) associated with the IP address and ISP. This property is available from the City and Insights web services and the GeoIP2 Enterprise database.
-
getMobileNetworkCode
Deprecated, for removal: This API element is subject to removal in a future version.UsemobileNetworkCode()instead. This method will be removed in 6.0.0.- Returns:
- The mobile network code (MNC) associated with the IP address and ISP. This property is available from the City and Insights web services and the GeoIP2 Enterprise database.
-
getOrganization
Deprecated, for removal: This API element is subject to removal in a future version.Useorganization()instead. This method will be removed in 6.0.0.- Returns:
- The name of the organization associated with the IP address.
-
getNetwork
Deprecated, for removal: This API element is subject to removal in a future version.Usenetwork()instead. This method will be removed in 6.0.0.- Returns:
- The network associated with the record. In particular, this is the largest network where all the fields besides IP address have the same value.
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
autonomousSystemNumber
Returns the value of theautonomousSystemNumberrecord component.- Returns:
- the value of the
autonomousSystemNumberrecord component
-
autonomousSystemOrganization
Returns the value of theautonomousSystemOrganizationrecord component.- Returns:
- the value of the
autonomousSystemOrganizationrecord component
-
ipAddress
-
isp
-
mobileCountryCode
Returns the value of themobileCountryCoderecord component.- Returns:
- the value of the
mobileCountryCoderecord component
-
mobileNetworkCode
Returns the value of themobileNetworkCoderecord component.- Returns:
- the value of the
mobileNetworkCoderecord component
-
organization
Returns the value of theorganizationrecord component.- Returns:
- the value of the
organizationrecord component
-
network
-
autonomousSystemNumber()instead.