Class WebApiVectorizerParameters
java.lang.Object
com.azure.search.documents.indexes.models.WebApiVectorizerParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WebApiVectorizerParameters>
public final class WebApiVectorizerParameters
extends Object
implements com.azure.json.JsonSerializable<WebApiVectorizerParameters>
Specifies the properties for connecting to a user-defined vectorizer.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of WebApiVectorizerParameters class. -
Method Summary
Modifier and TypeMethodDescriptionstatic WebApiVectorizerParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WebApiVectorizerParameters from the JsonReader.Get the authIdentity property: The user-assigned managed identity used for outbound connections.Get the authResourceId property: Applies to custom endpoints that connect to external code in an Azure function or some other application that provides the transformations.Get the httpHeaders property: The headers required to make the HTTP request.Get the httpMethod property: The method for the HTTP request.Get the timeout property: The desired timeout for the request.getUrl()Get the url property: The URI of the Web API providing the vectorizer.setAuthIdentity(SearchIndexerDataIdentity authIdentity) Set the authIdentity property: The user-assigned managed identity used for outbound connections.setAuthResourceId(String authResourceId) Set the authResourceId property: Applies to custom endpoints that connect to external code in an Azure function or some other application that provides the transformations.setHttpHeaders(Map<String, String> httpHeaders) Set the httpHeaders property: The headers required to make the HTTP request.setHttpMethod(String httpMethod) Set the httpMethod property: The method for the HTTP request.setTimeout(Duration timeout) Set the timeout property: The desired timeout for the request.Set the url property: The URI of the Web API providing the vectorizer.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
WebApiVectorizerParameters
public WebApiVectorizerParameters()Creates an instance of WebApiVectorizerParameters class.
-
-
Method Details
-
getUrl
Get the url property: The URI of the Web API providing the vectorizer.- Returns:
- the url value.
-
setUrl
Set the url property: The URI of the Web API providing the vectorizer.- Parameters:
url- the url value to set.- Returns:
- the WebApiVectorizerParameters object itself.
-
getHttpHeaders
Get the httpHeaders property: The headers required to make the HTTP request.- Returns:
- the httpHeaders value.
-
setHttpHeaders
Set the httpHeaders property: The headers required to make the HTTP request.- Parameters:
httpHeaders- the httpHeaders value to set.- Returns:
- the WebApiVectorizerParameters object itself.
-
getHttpMethod
Get the httpMethod property: The method for the HTTP request.- Returns:
- the httpMethod value.
-
setHttpMethod
Set the httpMethod property: The method for the HTTP request.- Parameters:
httpMethod- the httpMethod value to set.- Returns:
- the WebApiVectorizerParameters object itself.
-
getTimeout
Get the timeout property: The desired timeout for the request. Default is 30 seconds.- Returns:
- the timeout value.
-
setTimeout
Set the timeout property: The desired timeout for the request. Default is 30 seconds.- Parameters:
timeout- the timeout value to set.- Returns:
- the WebApiVectorizerParameters object itself.
-
getAuthResourceId
Get the authResourceId property: Applies to custom endpoints that connect to external code in an Azure function or some other application that provides the transformations. This value should be the application ID created for the function or app when it was registered with Azure Active Directory. When specified, the vectorization connects to the function or app using a managed ID (either system or user-assigned) of the search service and the access token of the function or app, using this value as the resource id for creating the scope of the access token.- Returns:
- the authResourceId value.
-
setAuthResourceId
Set the authResourceId property: Applies to custom endpoints that connect to external code in an Azure function or some other application that provides the transformations. This value should be the application ID created for the function or app when it was registered with Azure Active Directory. When specified, the vectorization connects to the function or app using a managed ID (either system or user-assigned) of the search service and the access token of the function or app, using this value as the resource id for creating the scope of the access token.- Parameters:
authResourceId- the authResourceId value to set.- Returns:
- the WebApiVectorizerParameters object itself.
-
getAuthIdentity
Get the authIdentity property: The user-assigned managed identity used for outbound connections. If an authResourceId is provided and it's not specified, the system-assigned managed identity is used. On updates to the indexer, if the identity is unspecified, the value remains unchanged. If set to "none", the value of this property is cleared.- Returns:
- the authIdentity value.
-
setAuthIdentity
Set the authIdentity property: The user-assigned managed identity used for outbound connections. If an authResourceId is provided and it's not specified, the system-assigned managed identity is used. On updates to the indexer, if the identity is unspecified, the value remains unchanged. If set to "none", the value of this property is cleared.- Parameters:
authIdentity- the authIdentity value to set.- Returns:
- the WebApiVectorizerParameters object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<WebApiVectorizerParameters>- Throws:
IOException
-
fromJson
public static WebApiVectorizerParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of WebApiVectorizerParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WebApiVectorizerParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the WebApiVectorizerParameters.
-