Class OutputPathAssetReference
java.lang.Object
com.azure.resourcemanager.machinelearning.models.AssetReferenceBase
com.azure.resourcemanager.machinelearning.models.OutputPathAssetReference
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AssetReferenceBase>
Reference to an asset via its path in a job output.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OutputPathAssetReference class. -
Method Summary
Modifier and TypeMethodDescriptionstatic OutputPathAssetReferencefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OutputPathAssetReference from the JsonReader.jobId()Get the jobId property: ARM resource ID of the job.path()Get the path property: The path of the file/directory in the job output.Get the referenceType property: [Required] Specifies the type of asset reference.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the jobId property: ARM resource ID of the job.Set the path property: The path of the file/directory in the job output.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
OutputPathAssetReference
public OutputPathAssetReference()Creates an instance of OutputPathAssetReference class.
-
-
Method Details
-
referenceType
Get the referenceType property: [Required] Specifies the type of asset reference.- Overrides:
referenceTypein classAssetReferenceBase- Returns:
- the referenceType value.
-
path
Get the path property: The path of the file/directory in the job output.- Returns:
- the path value.
-
withPath
Set the path property: The path of the file/directory in the job output.- Parameters:
path- the path value to set.- Returns:
- the OutputPathAssetReference object itself.
-
jobId
Get the jobId property: ARM resource ID of the job.- Returns:
- the jobId value.
-
withJobId
Set the jobId property: ARM resource ID of the job.- Parameters:
jobId- the jobId value to set.- Returns:
- the OutputPathAssetReference object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classAssetReferenceBase- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AssetReferenceBase>- Overrides:
toJsonin classAssetReferenceBase- Throws:
IOException
-
fromJson
public static OutputPathAssetReference fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OutputPathAssetReference from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OutputPathAssetReference 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 OutputPathAssetReference.
-