Class CodeConfiguration
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.CodeConfiguration
-
public final class CodeConfiguration extends Object
Configuration for a scoring code asset.
-
-
Constructor Summary
Constructors Constructor Description CodeConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
codeId()
Get the codeId property: ARM resource ID of the code asset.String
scoringScript()
Get the scoringScript property: [Required] The script to execute on startup.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.
-
-
-
Method Detail
-
codeId
public String codeId()
Get the codeId property: ARM resource ID of the code asset.- Returns:
- the codeId value.
-
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.
-
scoringScript
public String scoringScript()
Get the scoringScript property: [Required] The script to execute on startup. eg. "score.py".- Returns:
- the scoringScript value.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-