Class VisionServiceAdvancedOptions

  • All Implemented Interfaces:
    AutoCloseable

    public final class VisionServiceAdvancedOptions
    extends Object
    implements AutoCloseable
    VisionServiceAdvancedOptions class Note: close() must be called in order to release underlying resources held by the object.
    • Method Detail

      • getHttpProxy

        public final String getHttpProxy()
        Gets the http proxy.
        Returns:
        HTTP proxy host string value
      • setHttpProxy

        public final void setHttpProxy​(String value)
        Sets the http proxy.
        Parameters:
        value - The value for HTTP proxy host
      • getHttpProxyPort

        public final int getHttpProxyPort()
        Gets the http proxy port.
        Returns:
        Port value as integer
      • setHttpProxyPort

        public final void setHttpProxyPort​(int value)
        Sets the http proxy port.
        Parameters:
        value - The value for proxy port
      • getHttpProxyUserName

        public final String getHttpProxyUserName()
        Gets the http proxy user name.
        Returns:
        HTTP proxy user name string
      • setHttpProxyUserName

        public final void setHttpProxyUserName​(String value)
        Sets the http proxy user name.
        Parameters:
        value - The value for HTTP proxy user name
      • getHttpProxyPassword

        public final String getHttpProxyPassword()
        Gets the http proxy password.
        Returns:
        HTTP proxy password as string
      • setHttpProxyPassword

        public final void setHttpProxyPassword​(String value)
        Sets the http proxy password.
        Parameters:
        value - The value for HTTP proxy password as string
      • getProperties

        public final PropertyCollection getProperties()
        Gets the property collection.
        Returns:
        PropertyCollection object for this VisionServiceAdvancedOptions instance
      • getHttpClient

        public final HttpClient getHttpClient()
        Gets an alternate HTTP client (if set) to be used for REST calls.
        Returns:
        HttpClient object for this VisionServiceAdvancedOptions instance
      • setHttpClient

        public final void setHttpClient​(HttpClient value)
        Sets an alternate HTTP client to be used for REST calls.
        Parameters:
        value - as HttpClient object
      • close

        public final void close()
        Explicitly frees any external resource attached to the object
        Specified by:
        close in interface AutoCloseable