Class DataPathAssetReference
java.lang.Object
com.azure.resourcemanager.machinelearning.models.AssetReferenceBase
com.azure.resourcemanager.machinelearning.models.DataPathAssetReference
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AssetReferenceBase>
Reference to an asset via its path in a datastore.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DataPathAssetReference class. -
Method Summary
Modifier and TypeMethodDescriptionGet the datastoreId property: ARM resource ID of the datastore where the asset is located.static DataPathAssetReferencefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DataPathAssetReference from the JsonReader.path()Get the path property: The path of the file/directory in the datastore.Get the referenceType property: [Required] Specifies the type of asset reference.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDatastoreId(String datastoreId) Set the datastoreId property: ARM resource ID of the datastore where the asset is located.Set the path property: The path of the file/directory in the datastore.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
-
DataPathAssetReference
public DataPathAssetReference()Creates an instance of DataPathAssetReference 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 datastore.- Returns:
- the path value.
-
withPath
Set the path property: The path of the file/directory in the datastore.- Parameters:
path- the path value to set.- Returns:
- the DataPathAssetReference object itself.
-
datastoreId
Get the datastoreId property: ARM resource ID of the datastore where the asset is located.- Returns:
- the datastoreId value.
-
withDatastoreId
Set the datastoreId property: ARM resource ID of the datastore where the asset is located.- Parameters:
datastoreId- the datastoreId value to set.- Returns:
- the DataPathAssetReference 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 DataPathAssetReference fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DataPathAssetReference from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DataPathAssetReference 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 DataPathAssetReference.
-