ModelSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.machinelearning.models.ModelSettings

Implements

public final class ModelSettings
implements JsonSerializable<ModelSettings>

The ModelSettings model.

Constructor Summary

Constructor Description
ModelSettings()

Creates an instance of ModelSettings class.

Method Summary

Modifier and Type Method and Description
static ModelSettings fromJson(JsonReader jsonReader)

Reads an instance of ModelSettings from the JsonReader.

String modelId()

Get the modelId property: The unique model identifier that this ServerlessEndpoint should provision.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ModelSettings withModelId(String modelId)

Set the modelId property: The unique model identifier that this ServerlessEndpoint should provision.

Methods inherited from java.lang.Object

Constructor Details

ModelSettings

public ModelSettings()

Creates an instance of ModelSettings class.

Method Details

fromJson

public static ModelSettings fromJson(JsonReader jsonReader)

Reads an instance of ModelSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

modelId

public String modelId()

Get the modelId property: The unique model identifier that this ServerlessEndpoint should provision.

Returns:

the modelId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withModelId

public ModelSettings withModelId(String modelId)

Set the modelId property: The unique model identifier that this ServerlessEndpoint should provision.

Parameters:

modelId - the modelId value to set.

Returns:

the ModelSettings object itself.

Applies to