Class VisionServiceOptions

  • All Implemented Interfaces:
    AutoCloseable

    public final class VisionServiceOptions
    extends Object
    implements AutoCloseable
    VisionServiceOptions class represents the Vision service options.

    Note: close() must be called in order to release underlying resources held by the object.

    • Constructor Detail

      • VisionServiceOptions

        public VisionServiceOptions​(URL url)
        Initializes a new instance of Vision service options
        Parameters:
        url - An endpoint url to the service
      • VisionServiceOptions

        public VisionServiceOptions​(URL url,
                                    String key)
        Initializes a new instance of Vision service options.
        Parameters:
        url - An endpoint url to the service
        key - A key to the service
      • VisionServiceOptions

        public VisionServiceOptions​(URL url,
                                    TokenCredential credential)
        Initializes a new instance of Vision service options.
        Parameters:
        url - An endpoint url to the service
        credential - A TokenCredential to generate AccessToken on demand
      • VisionServiceOptions

        public VisionServiceOptions​(TokenCredential credential)
        Initializes a new instance of Vision service options.
        Parameters:
        url - An endpoint url to the service
        credential - A TokenCredential to generate AccessToken on demand
    • Method Detail

      • setTokenCredential

        public final void setTokenCredential​(TokenCredential value)
        Sets a token credential object to refresh auth tokens
        Parameters:
        value - as TokenCredential object
      • getAdvanced

        public final VisionServiceAdvancedOptions getAdvanced()
        Gets the advanced options of the vision service options.
        Returns:
        The VisionServiceAdvancedOptions object.
      • close

        public final void close()
        Dispose of associated resources. Note: close() must be called in order to release underlying resources held by the object.
        Specified by:
        close in interface AutoCloseable