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 Details

    • WebApiVectorizerParameters

      public WebApiVectorizerParameters()
      Creates an instance of WebApiVectorizerParameters class.
  • Method Details

    • getUrl

      public String getUrl()
      Get the url property: The URI of the Web API providing the vectorizer.
      Returns:
      the url value.
    • setUrl

      public WebApiVectorizerParameters setUrl(String url)
      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

      public Map<String,String> getHttpHeaders()
      Get the httpHeaders property: The headers required to make the HTTP request.
      Returns:
      the httpHeaders value.
    • setHttpHeaders

      public WebApiVectorizerParameters setHttpHeaders(Map<String,String> httpHeaders)
      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

      public String getHttpMethod()
      Get the httpMethod property: The method for the HTTP request.
      Returns:
      the httpMethod value.
    • setHttpMethod

      public WebApiVectorizerParameters setHttpMethod(String httpMethod)
      Set the httpMethod property: The method for the HTTP request.
      Parameters:
      httpMethod - the httpMethod value to set.
      Returns:
      the WebApiVectorizerParameters object itself.
    • getTimeout

      public Duration getTimeout()
      Get the timeout property: The desired timeout for the request. Default is 30 seconds.
      Returns:
      the timeout value.
    • setTimeout

      public WebApiVectorizerParameters setTimeout(Duration timeout)
      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

      public String 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

      public WebApiVectorizerParameters 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. 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

      public SearchIndexerDataIdentity 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

      public WebApiVectorizerParameters setAuthIdentity(SearchIndexerDataIdentity authIdentity)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.