Class AzureMachineLearningParameters
java.lang.Object
com.azure.search.documents.indexes.models.AzureMachineLearningParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureMachineLearningParameters>
public final class AzureMachineLearningParameters
extends Object
implements com.azure.json.JsonSerializable<AzureMachineLearningParameters>
Specifies the properties for connecting to an AML vectorizer.
-
Constructor Summary
ConstructorsConstructorDescriptionAzureMachineLearningParameters(String scoringUri) Creates an instance of AzureMachineLearningParameters class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureMachineLearningParameters from the JsonReader.Get the authenticationKey property: (Required for key authentication) The key for the AML service.Get the modelName property: The name of the embedding model from the Azure AI Foundry Catalog that is deployed at the provided endpoint.Get the region property: (Optional for token authentication).Get the resourceId property: (Required for token authentication).Get the scoringUri property: (Required for no authentication or key authentication) The scoring URI of the AML service to which the JSON payload will be sent.Get the timeout property: (Optional) When specified, indicates the timeout for the http client making the API call.setAuthenticationKey(String authenticationKey) Set the authenticationKey property: (Required for key authentication) The key for the AML service.setModelName(AIFoundryModelCatalogName modelName) Set the modelName property: The name of the embedding model from the Azure AI Foundry Catalog that is deployed at the provided endpoint.Set the region property: (Optional for token authentication).setResourceId(String resourceId) Set the resourceId property: (Required for token authentication).setTimeout(Duration timeout) Set the timeout property: (Optional) When specified, indicates the timeout for the http client making the API call.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
-
AzureMachineLearningParameters
Creates an instance of AzureMachineLearningParameters class.- Parameters:
scoringUri- the scoringUri value to set.
-
-
Method Details
-
getScoringUri
Get the scoringUri property: (Required for no authentication or key authentication) The scoring URI of the AML service to which the JSON payload will be sent. Only the https URI scheme is allowed.- Returns:
- the scoringUri value.
-
getAuthenticationKey
Get the authenticationKey property: (Required for key authentication) The key for the AML service.- Returns:
- the authenticationKey value.
-
setAuthenticationKey
Set the authenticationKey property: (Required for key authentication) The key for the AML service.- Parameters:
authenticationKey- the authenticationKey value to set.- Returns:
- the AzureMachineLearningParameters object itself.
-
getResourceId
Get the resourceId property: (Required for token authentication). The Azure Resource Manager resource ID of the AML service. It should be in the format subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.MachineLearningServices/workspaces/{workspace-name}/services/{service_name}.- Returns:
- the resourceId value.
-
setResourceId
Set the resourceId property: (Required for token authentication). The Azure Resource Manager resource ID of the AML service. It should be in the format subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.MachineLearningServices/workspaces/{workspace-name}/services/{service_name}.- Parameters:
resourceId- the resourceId value to set.- Returns:
- the AzureMachineLearningParameters object itself.
-
getTimeout
Get the timeout property: (Optional) When specified, indicates the timeout for the http client making the API call.- Returns:
- the timeout value.
-
setTimeout
Set the timeout property: (Optional) When specified, indicates the timeout for the http client making the API call.- Parameters:
timeout- the timeout value to set.- Returns:
- the AzureMachineLearningParameters object itself.
-
getRegion
Get the region property: (Optional for token authentication). The region the AML service is deployed in.- Returns:
- the region value.
-
setRegion
Set the region property: (Optional for token authentication). The region the AML service is deployed in.- Parameters:
region- the region value to set.- Returns:
- the AzureMachineLearningParameters object itself.
-
getModelName
Get the modelName property: The name of the embedding model from the Azure AI Foundry Catalog that is deployed at the provided endpoint.- Returns:
- the modelName value.
-
setModelName
Set the modelName property: The name of the embedding model from the Azure AI Foundry Catalog that is deployed at the provided endpoint.- Parameters:
modelName- the modelName value to set.- Returns:
- the AzureMachineLearningParameters object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AzureMachineLearningParameters>- Throws:
IOException
-
fromJson
public static AzureMachineLearningParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AzureMachineLearningParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AzureMachineLearningParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the AzureMachineLearningParameters.
-