Class VisionServiceAdvancedOptions
- java.lang.Object
-
- com.azure.android.ai.vision.common.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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Explicitly frees any external resource attached to the objectHttpClient
getHttpClient()
Gets an alternate HTTP client (if set) to be used for REST calls.String
getHttpProxy()
Gets the http proxy.String
getHttpProxyPassword()
Gets the http proxy password.int
getHttpProxyPort()
Gets the http proxy port.String
getHttpProxyUserName()
Gets the http proxy user name.PropertyCollection
getProperties()
Gets the property collection.void
setHttpClient(HttpClient value)
Sets an alternate HTTP client to be used for REST calls.void
setHttpProxy(String value)
Sets the http proxy.void
setHttpProxyPassword(String value)
Sets the http proxy password.void
setHttpProxyPort(int value)
Sets the http proxy port.void
setHttpProxyUserName(String value)
Sets the http proxy user name.
-
-
-
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 interfaceAutoCloseable
-
-