Class ModelVersionDetails
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.ResourceBase
-
- com.azure.resourcemanager.machinelearning.models.AssetBase
-
- com.azure.resourcemanager.machinelearning.models.ModelVersionDetails
-
public final class ModelVersionDetails extends AssetBase
Model asset version details.
-
-
Constructor Summary
Constructors Constructor Description ModelVersionDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,FlavorData>
flavors()
Get the flavors property: Mapping of model flavors to their properties.String
jobName()
Get the jobName property: Name of the training job which produced this model.ModelType
modelType()
Get the modelType property: The storage format for this entity.String
modelUri()
Get the modelUri property: The URI path to the model contents.void
validate()
Validates the instance.ModelVersionDetails
withDescription(String description)
Set the description property: The asset description text.ModelVersionDetails
withFlavors(Map<String,FlavorData> flavors)
Set the flavors property: Mapping of model flavors to their properties.ModelVersionDetails
withIsAnonymous(Boolean isAnonymous)
Set the isAnonymous property: If the name version are system generated (anonymous registration).ModelVersionDetails
withIsArchived(Boolean isArchived)
Set the isArchived property: Is the asset archived?.ModelVersionDetails
withJobName(String jobName)
Set the jobName property: Name of the training job which produced this model.ModelVersionDetails
withModelType(ModelType modelType)
Set the modelType property: The storage format for this entity.ModelVersionDetails
withModelUri(String modelUri)
Set the modelUri property: The URI path to the model contents.ModelVersionDetails
withProperties(Map<String,String> properties)
Set the properties property: The asset property dictionary.ModelVersionDetails
withTags(Map<String,String> tags)
Set the tags property: Tag dictionary.-
Methods inherited from class com.azure.resourcemanager.machinelearning.models.AssetBase
isAnonymous, isArchived
-
Methods inherited from class com.azure.resourcemanager.machinelearning.models.ResourceBase
description, properties, tags
-
-
-
-
Method Detail
-
flavors
public Map<String,FlavorData> flavors()
Get the flavors property: Mapping of model flavors to their properties.- Returns:
- the flavors value.
-
withFlavors
public ModelVersionDetails withFlavors(Map<String,FlavorData> flavors)
Set the flavors property: Mapping of model flavors to their properties.- Parameters:
flavors
- the flavors value to set.- Returns:
- the ModelVersionDetails object itself.
-
jobName
public String jobName()
Get the jobName property: Name of the training job which produced this model.- Returns:
- the jobName value.
-
withJobName
public ModelVersionDetails withJobName(String jobName)
Set the jobName property: Name of the training job which produced this model.- Parameters:
jobName
- the jobName value to set.- Returns:
- the ModelVersionDetails object itself.
-
modelType
public ModelType modelType()
Get the modelType property: The storage format for this entity. Used for NCD.- Returns:
- the modelType value.
-
withModelType
public ModelVersionDetails withModelType(ModelType modelType)
Set the modelType property: The storage format for this entity. Used for NCD.- Parameters:
modelType
- the modelType value to set.- Returns:
- the ModelVersionDetails object itself.
-
modelUri
public String modelUri()
Get the modelUri property: The URI path to the model contents.- Returns:
- the modelUri value.
-
withModelUri
public ModelVersionDetails withModelUri(String modelUri)
Set the modelUri property: The URI path to the model contents.- Parameters:
modelUri
- the modelUri value to set.- Returns:
- the ModelVersionDetails object itself.
-
withIsAnonymous
public ModelVersionDetails withIsAnonymous(Boolean isAnonymous)
Set the isAnonymous property: If the name version are system generated (anonymous registration).- Overrides:
withIsAnonymous
in classAssetBase
- Parameters:
isAnonymous
- the isAnonymous value to set.- Returns:
- the AssetBase object itself.
-
withIsArchived
public ModelVersionDetails withIsArchived(Boolean isArchived)
Set the isArchived property: Is the asset archived?.- Overrides:
withIsArchived
in classAssetBase
- Parameters:
isArchived
- the isArchived value to set.- Returns:
- the AssetBase object itself.
-
withDescription
public ModelVersionDetails withDescription(String description)
Set the description property: The asset description text.- Overrides:
withDescription
in classAssetBase
- Parameters:
description
- the description value to set.- Returns:
- the ResourceBase object itself.
-
withProperties
public ModelVersionDetails withProperties(Map<String,String> properties)
Set the properties property: The asset property dictionary.- Overrides:
withProperties
in classAssetBase
- Parameters:
properties
- the properties value to set.- Returns:
- the ResourceBase object itself.
-
withTags
public ModelVersionDetails withTags(Map<String,String> tags)
Set the tags property: Tag dictionary. Tags can be added, removed, and updated.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classAssetBase
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-