Class BatchEndpointDefaults
java.lang.Object
com.azure.resourcemanager.machinelearning.models.BatchEndpointDefaults
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchEndpointDefaults>
public final class BatchEndpointDefaults
extends Object
implements com.azure.json.JsonSerializable<BatchEndpointDefaults>
Batch endpoint default values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the deploymentName property: Name of the deployment that will be default for the endpoint.static BatchEndpointDefaultsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BatchEndpointDefaults from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDeploymentName(String deploymentName) Set the deploymentName property: Name of the deployment that will be default for the endpoint.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
-
BatchEndpointDefaults
public BatchEndpointDefaults()Creates an instance of BatchEndpointDefaults class.
-
-
Method Details
-
deploymentName
Get the deploymentName property: Name of the deployment that will be default for the endpoint. This deployment will end up getting 100% traffic when the endpoint scoring URL is invoked.- Returns:
- the deploymentName value.
-
withDeploymentName
Set the deploymentName property: Name of the deployment that will be default for the endpoint. This deployment will end up getting 100% traffic when the endpoint scoring URL is invoked.- Parameters:
deploymentName- the deploymentName value to set.- Returns:
- the BatchEndpointDefaults object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BatchEndpointDefaults>- Throws:
IOException
-
fromJson
public static BatchEndpointDefaults fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BatchEndpointDefaults from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BatchEndpointDefaults 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 BatchEndpointDefaults.
-