Record Class AnonymousPlusResponse

java.lang.Object
java.lang.Record
com.maxmind.geoip2.model.AnonymousPlusResponse
Record Components:
ipAddress - The IP address that the data in the model is for.
isAnonymous - Whether the IP address belongs to any sort of anonymous network.
isAnonymousVpn - Whether the IP address is registered to an anonymous VPN provider. If a VPN provider does not register subnets under names associated with them, we will likely only flag their IP ranges using isHostingProvider.
isHostingProvider - Whether the IP address belongs to a hosting or VPN provider (see description of isAnonymousVpn).
isPublicProxy - Whether the IP address belongs to a public proxy.
isResidentialProxy - Whether the IP address is on a suspected anonymizing network and belongs to a residential ISP.
isTorExitNode - Whether the IP address is a Tor exit node.
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.
anonymizerConfidence - A score ranging from 1 to 99 that is our percent confidence that the network is currently part of an actively used VPN service.
networkLastSeen - The last day that the network was sighted in our analysis of anonymized networks.
providerName - The name of the VPN provider (e.g., NordVPN, SurfShark, etc.) associated with the network.
All Implemented Interfaces:
JsonSerializable

public record AnonymousPlusResponse(InetAddress ipAddress, boolean isAnonymous, boolean isAnonymousVpn, boolean isHostingProvider, boolean isPublicProxy, boolean isResidentialProxy, boolean isTorExitNode, Network network, Integer anonymizerConfidence, LocalDate networkLastSeen, String providerName) extends Record implements JsonSerializable
This class provides the GeoIP Anonymous Plus model.
  • Constructor Details

    • AnonymousPlusResponse

      public AnonymousPlusResponse(InetAddress ipAddress, boolean isAnonymous, boolean isAnonymousVpn, boolean isHostingProvider, boolean isPublicProxy, boolean isResidentialProxy, boolean isTorExitNode, Network network, Integer anonymizerConfidence, String networkLastSeen, String providerName)
      Constructs an instance of AnonymousPlusResponse with date parsing from MaxMind database.
      Parameters:
      ipAddress - the IP address being checked
      isAnonymous - whether the IP address belongs to any sort of anonymous network
      isAnonymousVpn - whether the IP address belongs to an anonymous VPN system
      isHostingProvider - whether the IP address belongs to a hosting provider
      isPublicProxy - whether the IP address belongs to a public proxy system
      isResidentialProxy - whether the IP address belongs to a residential proxy system
      isTorExitNode - whether the IP address is a Tor exit node
      network - the network associated with the record
      anonymizerConfidence - confidence that the network is a VPN.
      networkLastSeen - the last sighting of the network.
      providerName - the name of the VPN provider.
    • AnonymousPlusResponse

      public AnonymousPlusResponse(InetAddress ipAddress, boolean isAnonymous, boolean isAnonymousVpn, boolean isHostingProvider, boolean isPublicProxy, boolean isResidentialProxy, boolean isTorExitNode, Network network, Integer anonymizerConfidence, LocalDate networkLastSeen, String providerName)
      Creates an instance of a AnonymousPlusResponse record class.
      Parameters:
      ipAddress - the value for the ipAddress record component
      isAnonymous - the value for the isAnonymous record component
      isAnonymousVpn - the value for the isAnonymousVpn record component
      isHostingProvider - the value for the isHostingProvider record component
      isPublicProxy - the value for the isPublicProxy record component
      isResidentialProxy - the value for the isResidentialProxy record component
      isTorExitNode - the value for the isTorExitNode record component
      network - the value for the network record component
      anonymizerConfidence - the value for the anonymizerConfidence record component
      networkLastSeen - the value for the networkLastSeen record component
      providerName - the value for the providerName record component
  • Method Details

    • getIpAddress

      @Deprecated(since="5.0.0", forRemoval=true) public String getIpAddress()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use ipAddress() instead. This method will be removed in 6.0.0.
      Returns:
      The IP address that the data in the model is for.
    • getNetwork

      @Deprecated(since="5.0.0", forRemoval=true) public Network getNetwork()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use network() 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.
    • getAnonymizerConfidence

      @Deprecated(since="5.0.0", forRemoval=true) public Integer getAnonymizerConfidence()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use anonymizerConfidence() instead. This method will be removed in 6.0.0.
      Returns:
      A score ranging from 1 to 99 that is our percent confidence that the network is currently part of an actively used VPN service.
    • getNetworkLastSeen

      @Deprecated(since="5.0.0", forRemoval=true) public LocalDate getNetworkLastSeen()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use networkLastSeen() instead. This method will be removed in 6.0.0.
      Returns:
      The last day that the network was sighted in our analysis of anonymized networks.
    • getProviderName

      @Deprecated(since="5.0.0", forRemoval=true) public String getProviderName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use providerName() instead. This method will be removed in 6.0.0.
      Returns:
      The name of the VPN provider (e.g., NordVPN, SurfShark, etc.) associated with the network.
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • ipAddress

      public InetAddress ipAddress()
      Returns the value of the ipAddress record component.
      Returns:
      the value of the ipAddress record component
    • isAnonymous

      public boolean isAnonymous()
      Returns the value of the isAnonymous record component.
      Returns:
      the value of the isAnonymous record component
    • isAnonymousVpn

      public boolean isAnonymousVpn()
      Returns the value of the isAnonymousVpn record component.
      Returns:
      the value of the isAnonymousVpn record component
    • isHostingProvider

      public boolean isHostingProvider()
      Returns the value of the isHostingProvider record component.
      Returns:
      the value of the isHostingProvider record component
    • isPublicProxy

      public boolean isPublicProxy()
      Returns the value of the isPublicProxy record component.
      Returns:
      the value of the isPublicProxy record component
    • isResidentialProxy

      public boolean isResidentialProxy()
      Returns the value of the isResidentialProxy record component.
      Returns:
      the value of the isResidentialProxy record component
    • isTorExitNode

      public boolean isTorExitNode()
      Returns the value of the isTorExitNode record component.
      Returns:
      the value of the isTorExitNode record component
    • network

      public Network network()
      Returns the value of the network record component.
      Returns:
      the value of the network record component
    • anonymizerConfidence

      public Integer anonymizerConfidence()
      Returns the value of the anonymizerConfidence record component.
      Returns:
      the value of the anonymizerConfidence record component
    • networkLastSeen

      public LocalDate networkLastSeen()
      Returns the value of the networkLastSeen record component.
      Returns:
      the value of the networkLastSeen record component
    • providerName

      public String providerName()
      Returns the value of the providerName record component.
      Returns:
      the value of the providerName record component