Class Network


  • public final class Network
    extends java.lang.Object
    network Details of the device network. Either ipv4 or ipv6 is required field.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Network.NetworkBuilder  
    • Constructor Summary

      Constructors 
      Constructor Description
      Network()  
      Network​(java.lang.String ipv4, java.lang.String ipv6, java.lang.Boolean tor, java.lang.Boolean vpn, java.lang.Boolean proxy)
      Creates a new Network instance.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Network.NetworkBuilder builder()  
      boolean equals​(java.lang.Object o)  
      java.lang.String getIpv4()
      The device's IPV4 address.
      java.lang.String getIpv6()
      The device's IPV6 address.
      java.lang.Boolean getProxy()
      Specifies if a proxy was used in the browser session.
      java.lang.Boolean getTor()
      Specifies if the Tor network was used in the browser session.
      java.lang.Boolean getVpn()
      Specifies if a virtual private network (VPN) was used in the browser session.
      int hashCode()  
      void setIpv4​(java.lang.String ipv4)
      The device's IPV4 address.
      void setIpv6​(java.lang.String ipv6)
      The device's IPV6 address.
      void setProxy​(java.lang.Boolean proxy)
      Specifies if a proxy was used in the browser session.
      void setTor​(java.lang.Boolean tor)
      Specifies if the Tor network was used in the browser session.
      void setVpn​(java.lang.Boolean vpn)
      Specifies if a virtual private network (VPN) was used in the browser session.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Network

        public Network()
      • Network

        public Network​(java.lang.String ipv4,
                       java.lang.String ipv6,
                       java.lang.Boolean tor,
                       java.lang.Boolean vpn,
                       java.lang.Boolean proxy)
        Creates a new Network instance.
        Parameters:
        ipv4 - The device's IPV4 address. Not required if you provide the ipv6 field. [Optional]
        ipv6 - The device's IPV6 address. Not required if you provide the ipv4 field. [Optional]
        tor - Specifies if the Tor network was used in the browser session. [Optional]
        vpn - Specifies if a virtual private network (VPN) was used in the browser session. [Optional]
        proxy - Specifies if a proxy was used in the browser session. [Optional]
    • Method Detail

      • getIpv4

        public java.lang.String getIpv4()
        The device's IPV4 address. Not required if you provide the ipv6 field. [Optional]
      • getIpv6

        public java.lang.String getIpv6()
        The device's IPV6 address. Not required if you provide the ipv4 field. [Optional]
      • getTor

        public java.lang.Boolean getTor()
        Specifies if the Tor network was used in the browser session. [Optional]
      • getVpn

        public java.lang.Boolean getVpn()
        Specifies if a virtual private network (VPN) was used in the browser session. [Optional]
      • getProxy

        public java.lang.Boolean getProxy()
        Specifies if a proxy was used in the browser session. [Optional]
      • setIpv4

        public void setIpv4​(java.lang.String ipv4)
        The device's IPV4 address. Not required if you provide the ipv6 field. [Optional]
      • setIpv6

        public void setIpv6​(java.lang.String ipv6)
        The device's IPV6 address. Not required if you provide the ipv4 field. [Optional]
      • setTor

        public void setTor​(java.lang.Boolean tor)
        Specifies if the Tor network was used in the browser session. [Optional]
      • setVpn

        public void setVpn​(java.lang.Boolean vpn)
        Specifies if a virtual private network (VPN) was used in the browser session. [Optional]
      • setProxy

        public void setProxy​(java.lang.Boolean proxy)
        Specifies if a proxy was used in the browser session. [Optional]
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object