ModelVersionProperties Class

public final class ModelVersionProperties
extends AssetBase

Model asset version details.

Constructor Summary

Constructor Description
ModelVersionProperties()

Creates an instance of ModelVersionProperties class.

Method Summary

Modifier and Type Method and Description
Map<String,FlavorData> flavors()

Get the flavors property: Mapping of model flavors to their properties.

static ModelVersionProperties fromJson(JsonReader jsonReader)

Reads an instance of ModelVersionProperties from the JsonReader.

String jobName()

Get the jobName property: Name of the training job which produced this model.

String modelType()

Get the modelType property: The storage format for this entity.

String modelUri()

Get the modelUri property: The URI path to the model contents.

AssetProvisioningState provisioningState()

Get the provisioningState property: Provisioning state for the model version.

String stage()

Get the stage property: Stage in the model lifecycle assigned to this model.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ModelVersionProperties withDescription(String description)

Set the description property: The asset description text.

ModelVersionProperties withFlavors(Map<String,FlavorData> flavors)

Set the flavors property: Mapping of model flavors to their properties.

ModelVersionProperties withIsAnonymous(Boolean isAnonymous)

Set the isAnonymous property: If the name version are system generated (anonymous registration).

ModelVersionProperties withIsArchived(Boolean isArchived)

Set the isArchived property: Is the asset archived?.

ModelVersionProperties withJobName(String jobName)

Set the jobName property: Name of the training job which produced this model.

ModelVersionProperties withModelType(String modelType)

Set the modelType property: The storage format for this entity.

ModelVersionProperties withModelUri(String modelUri)

Set the modelUri property: The URI path to the model contents.

ModelVersionProperties withProperties(Map<String,String> properties)

Set the properties property: The asset property dictionary.

ModelVersionProperties withStage(String stage)

Set the stage property: Stage in the model lifecycle assigned to this model.

ModelVersionProperties withTags(Map<String,String> tags)

Set the tags property: Tag dictionary.

Methods inherited from AssetBase

Methods inherited from ResourceBase

Methods inherited from java.lang.Object

Constructor Details

ModelVersionProperties

public ModelVersionProperties()

Creates an instance of ModelVersionProperties class.

Method Details

flavors

public Map<String,FlavorData> flavors()

Get the flavors property: Mapping of model flavors to their properties.

Returns:

the flavors value.

fromJson

public static ModelVersionProperties fromJson(JsonReader jsonReader)

Reads an instance of ModelVersionProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ModelVersionProperties 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 ModelVersionProperties.

jobName

public String jobName()

Get the jobName property: Name of the training job which produced this model.

Returns:

the jobName value.

modelType

public String modelType()

Get the modelType property: The storage format for this entity. Used for NCD.

Returns:

the modelType value.

modelUri

public String modelUri()

Get the modelUri property: The URI path to the model contents.

Returns:

the modelUri value.

provisioningState

public AssetProvisioningState provisioningState()

Get the provisioningState property: Provisioning state for the model version.

Returns:

the provisioningState value.

stage

public String stage()

Get the stage property: Stage in the model lifecycle assigned to this model.

Returns:

the stage value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ModelVersionProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

ModelVersionProperties.validate()

withDescription

public ModelVersionProperties withDescription(String description)

Set the description property: The asset description text.

Overrides:

ModelVersionProperties.withDescription(String description)

Parameters:

description

withFlavors

public ModelVersionProperties 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 ModelVersionProperties object itself.

withIsAnonymous

public ModelVersionProperties withIsAnonymous(Boolean isAnonymous)

Set the isAnonymous property: If the name version are system generated (anonymous registration).

Overrides:

ModelVersionProperties.withIsAnonymous(Boolean isAnonymous)

Parameters:

isAnonymous

withIsArchived

public ModelVersionProperties withIsArchived(Boolean isArchived)

Set the isArchived property: Is the asset archived?.

Overrides:

ModelVersionProperties.withIsArchived(Boolean isArchived)

Parameters:

isArchived

withJobName

public ModelVersionProperties 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 ModelVersionProperties object itself.

withModelType

public ModelVersionProperties withModelType(String modelType)

Set the modelType property: The storage format for this entity. Used for NCD.

Parameters:

modelType - the modelType value to set.

Returns:

the ModelVersionProperties object itself.

withModelUri

public ModelVersionProperties withModelUri(String modelUri)

Set the modelUri property: The URI path to the model contents.

Parameters:

modelUri - the modelUri value to set.

Returns:

the ModelVersionProperties object itself.

withProperties

public ModelVersionProperties withProperties(Map<String,String> properties)

Set the properties property: The asset property dictionary.

Overrides:

ModelVersionProperties.withProperties(Map<String,String> properties)

Parameters:

properties

withStage

public ModelVersionProperties withStage(String stage)

Set the stage property: Stage in the model lifecycle assigned to this model.

Parameters:

stage - the stage value to set.

Returns:

the ModelVersionProperties object itself.

withTags

public ModelVersionProperties withTags(Map<String,String> tags)

Set the tags property: Tag dictionary. Tags can be added, removed, and updated.

Overrides:

ModelVersionProperties.withTags(Map<String,String> tags)

Parameters:

tags

Applies to