Class BatchDeploymentProperties
java.lang.Object
com.azure.resourcemanager.machinelearning.models.EndpointDeploymentPropertiesBase
com.azure.resourcemanager.machinelearning.models.BatchDeploymentProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EndpointDeploymentPropertiesBase>
Batch inference settings per deployment.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BatchDeploymentProperties class. -
Method Summary
Modifier and TypeMethodDescriptioncompute()Get the compute property: Compute target for batch inference operation.Get the deploymentConfiguration property: Properties relevant to different deployment types.Get the errorThreshold property: Error threshold, if the error count for the entire input goes above this value, the batch inference will be aborted.static BatchDeploymentPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BatchDeploymentProperties from the JsonReader.Get the loggingLevel property: Logging level for batch inference operation.Get the maxConcurrencyPerInstance property: Indicates maximum number of parallelism per instance.Get the miniBatchSize property: Size of the mini-batch passed to each batch invocation.model()Get the model property: Reference to the model asset for the endpoint deployment.Get the outputAction property: Indicates how the output will be organized.Get the outputFileName property: Customized output file name for append_row output action.Get the provisioningState property: Provisioning state for the endpoint deployment.Get the resources property: Indicates compute configuration for the job.Get the retrySettings property: Retry Settings for the batch inference operation.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCodeConfiguration(CodeConfiguration codeConfiguration) Set the codeConfiguration property: Code configuration for the endpoint deployment.withCompute(String compute) Set the compute property: Compute target for batch inference operation.withDeploymentConfiguration(BatchDeploymentConfiguration deploymentConfiguration) Set the deploymentConfiguration property: Properties relevant to different deployment types.withDescription(String description) Set the description property: Description of the endpoint deployment.withEnvironmentId(String environmentId) Set the environmentId property: ARM resource ID or AssetId of the environment specification for the endpoint deployment.withEnvironmentVariables(Map<String, String> environmentVariables) Set the environmentVariables property: Environment variables configuration for the deployment.withErrorThreshold(Integer errorThreshold) Set the errorThreshold property: Error threshold, if the error count for the entire input goes above this value, the batch inference will be aborted.withLoggingLevel(BatchLoggingLevel loggingLevel) Set the loggingLevel property: Logging level for batch inference operation.withMaxConcurrencyPerInstance(Integer maxConcurrencyPerInstance) Set the maxConcurrencyPerInstance property: Indicates maximum number of parallelism per instance.withMiniBatchSize(Long miniBatchSize) Set the miniBatchSize property: Size of the mini-batch passed to each batch invocation.withModel(AssetReferenceBase model) Set the model property: Reference to the model asset for the endpoint deployment.withOutputAction(BatchOutputAction outputAction) Set the outputAction property: Indicates how the output will be organized.withOutputFileName(String outputFileName) Set the outputFileName property: Customized output file name for append_row output action.withProperties(Map<String, String> properties) Set the properties property: Property dictionary.withResources(DeploymentResourceConfiguration resources) Set the resources property: Indicates compute configuration for the job.withRetrySettings(BatchRetrySettings retrySettings) Set the retrySettings property: Retry Settings for the batch inference operation.Methods inherited from class com.azure.resourcemanager.machinelearning.models.EndpointDeploymentPropertiesBase
codeConfiguration, description, environmentId, environmentVariables, propertiesMethods 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
-
BatchDeploymentProperties
public BatchDeploymentProperties()Creates an instance of BatchDeploymentProperties class.
-
-
Method Details
-
compute
Get the compute property: Compute target for batch inference operation.- Returns:
- the compute value.
-
withCompute
Set the compute property: Compute target for batch inference operation.- Parameters:
compute- the compute value to set.- Returns:
- the BatchDeploymentProperties object itself.
-
deploymentConfiguration
Get the deploymentConfiguration property: Properties relevant to different deployment types.- Returns:
- the deploymentConfiguration value.
-
withDeploymentConfiguration
public BatchDeploymentProperties withDeploymentConfiguration(BatchDeploymentConfiguration deploymentConfiguration) Set the deploymentConfiguration property: Properties relevant to different deployment types.- Parameters:
deploymentConfiguration- the deploymentConfiguration value to set.- Returns:
- the BatchDeploymentProperties object itself.
-
errorThreshold
Get the errorThreshold property: Error threshold, if the error count for the entire input goes above this value, the batch inference will be aborted. Range is [-1, int.MaxValue]. For FileDataset, this value is the count of file failures. For TabularDataset, this value is the count of record failures. If set to -1 (the lower bound), all failures during batch inference will be ignored.- Returns:
- the errorThreshold value.
-
withErrorThreshold
Set the errorThreshold property: Error threshold, if the error count for the entire input goes above this value, the batch inference will be aborted. Range is [-1, int.MaxValue]. For FileDataset, this value is the count of file failures. For TabularDataset, this value is the count of record failures. If set to -1 (the lower bound), all failures during batch inference will be ignored.- Parameters:
errorThreshold- the errorThreshold value to set.- Returns:
- the BatchDeploymentProperties object itself.
-
retrySettings
Get the retrySettings property: Retry Settings for the batch inference operation. If not provided, will default to the defaults defined in BatchRetrySettings.- Returns:
- the retrySettings value.
-
withRetrySettings
Set the retrySettings property: Retry Settings for the batch inference operation. If not provided, will default to the defaults defined in BatchRetrySettings.- Parameters:
retrySettings- the retrySettings value to set.- Returns:
- the BatchDeploymentProperties object itself.
-
miniBatchSize
Get the miniBatchSize property: Size of the mini-batch passed to each batch invocation. For FileDataset, this is the number of files per mini-batch. For TabularDataset, this is the size of the records in bytes, per mini-batch.- Returns:
- the miniBatchSize value.
-
withMiniBatchSize
Set the miniBatchSize property: Size of the mini-batch passed to each batch invocation. For FileDataset, this is the number of files per mini-batch. For TabularDataset, this is the size of the records in bytes, per mini-batch.- Parameters:
miniBatchSize- the miniBatchSize value to set.- Returns:
- the BatchDeploymentProperties object itself.
-
loggingLevel
Get the loggingLevel property: Logging level for batch inference operation.- Returns:
- the loggingLevel value.
-
withLoggingLevel
Set the loggingLevel property: Logging level for batch inference operation.- Parameters:
loggingLevel- the loggingLevel value to set.- Returns:
- the BatchDeploymentProperties object itself.
-
model
Get the model property: Reference to the model asset for the endpoint deployment.- Returns:
- the model value.
-
withModel
Set the model property: Reference to the model asset for the endpoint deployment.- Parameters:
model- the model value to set.- Returns:
- the BatchDeploymentProperties object itself.
-
maxConcurrencyPerInstance
Get the maxConcurrencyPerInstance property: Indicates maximum number of parallelism per instance.- Returns:
- the maxConcurrencyPerInstance value.
-
withMaxConcurrencyPerInstance
Set the maxConcurrencyPerInstance property: Indicates maximum number of parallelism per instance.- Parameters:
maxConcurrencyPerInstance- the maxConcurrencyPerInstance value to set.- Returns:
- the BatchDeploymentProperties object itself.
-
outputAction
Get the outputAction property: Indicates how the output will be organized.- Returns:
- the outputAction value.
-
withOutputAction
Set the outputAction property: Indicates how the output will be organized.- Parameters:
outputAction- the outputAction value to set.- Returns:
- the BatchDeploymentProperties object itself.
-
outputFileName
Get the outputFileName property: Customized output file name for append_row output action.- Returns:
- the outputFileName value.
-
withOutputFileName
Set the outputFileName property: Customized output file name for append_row output action.- Parameters:
outputFileName- the outputFileName value to set.- Returns:
- the BatchDeploymentProperties object itself.
-
resources
Get the resources property: Indicates compute configuration for the job. If not provided, will default to the defaults defined in ResourceConfiguration.- Returns:
- the resources value.
-
withResources
Set the resources property: Indicates compute configuration for the job. If not provided, will default to the defaults defined in ResourceConfiguration.- Parameters:
resources- the resources value to set.- Returns:
- the BatchDeploymentProperties object itself.
-
provisioningState
Get the provisioningState property: Provisioning state for the endpoint deployment.- Returns:
- the provisioningState value.
-
withDescription
Set the description property: Description of the endpoint deployment.- Overrides:
withDescriptionin classEndpointDeploymentPropertiesBase- Parameters:
description- the description value to set.- Returns:
- the EndpointDeploymentPropertiesBase object itself.
-
withProperties
Set the properties property: Property dictionary. Properties can be added, but not removed or altered.- Overrides:
withPropertiesin classEndpointDeploymentPropertiesBase- Parameters:
properties- the properties value to set.- Returns:
- the EndpointDeploymentPropertiesBase object itself.
-
withCodeConfiguration
Set the codeConfiguration property: Code configuration for the endpoint deployment.- Overrides:
withCodeConfigurationin classEndpointDeploymentPropertiesBase- Parameters:
codeConfiguration- the codeConfiguration value to set.- Returns:
- the EndpointDeploymentPropertiesBase object itself.
-
withEnvironmentId
Set the environmentId property: ARM resource ID or AssetId of the environment specification for the endpoint deployment.- Overrides:
withEnvironmentIdin classEndpointDeploymentPropertiesBase- Parameters:
environmentId- the environmentId value to set.- Returns:
- the EndpointDeploymentPropertiesBase object itself.
-
withEnvironmentVariables
Set the environmentVariables property: Environment variables configuration for the deployment.- Overrides:
withEnvironmentVariablesin classEndpointDeploymentPropertiesBase- Parameters:
environmentVariables- the environmentVariables value to set.- Returns:
- the EndpointDeploymentPropertiesBase object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classEndpointDeploymentPropertiesBase- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<EndpointDeploymentPropertiesBase>- Overrides:
toJsonin classEndpointDeploymentPropertiesBase- Throws:
IOException
-
fromJson
public static BatchDeploymentProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BatchDeploymentProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BatchDeploymentProperties 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 BatchDeploymentProperties.
-