CodeConfiguration Class

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

Implements

public final class CodeConfiguration
implements JsonSerializable<CodeConfiguration>

Configuration for a scoring code asset.

Constructor Summary

Constructor Description
CodeConfiguration()

Creates an instance of CodeConfiguration class.

Method Summary

Modifier and Type Method and Description
String codeId()

Get the codeId property: ARM resource ID of the code asset.

static CodeConfiguration fromJson(JsonReader jsonReader)

Reads an instance of CodeConfiguration from the JsonReader.

String scoringScript()

Get the scoringScript property: [Required] The script to execute on startup.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CodeConfiguration withCodeId(String codeId)

Set the codeId property: ARM resource ID of the code asset.

CodeConfiguration withScoringScript(String scoringScript)

Set the scoringScript property: [Required] The script to execute on startup.

Methods inherited from java.lang.Object

Constructor Details

CodeConfiguration

public CodeConfiguration()

Creates an instance of CodeConfiguration class.

Method Details

codeId

public String codeId()

Get the codeId property: ARM resource ID of the code asset.

Returns:

the codeId value.

fromJson

public static CodeConfiguration fromJson(JsonReader jsonReader)

Reads an instance of CodeConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CodeConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

scoringScript

public String scoringScript()

Get the scoringScript property: [Required] The script to execute on startup. eg. "score.py".

Returns:

the scoringScript value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCodeId

public CodeConfiguration withCodeId(String codeId)

Set the codeId property: ARM resource ID of the code asset.

Parameters:

codeId - the codeId value to set.

Returns:

the CodeConfiguration object itself.

withScoringScript

public CodeConfiguration withScoringScript(String scoringScript)

Set the scoringScript property: [Required] The script to execute on startup. eg. "score.py".

Parameters:

scoringScript - the scoringScript value to set.

Returns:

the CodeConfiguration object itself.

Applies to