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>

public final class DataPathAssetReference extends AssetReferenceBase
Reference to an asset via its path in a datastore.
  • Constructor Details

    • DataPathAssetReference

      public DataPathAssetReference()
      Creates an instance of DataPathAssetReference class.
  • Method Details

    • referenceType

      public ReferenceType referenceType()
      Get the referenceType property: [Required] Specifies the type of asset reference.
      Overrides:
      referenceType in class AssetReferenceBase
      Returns:
      the referenceType value.
    • path

      public String path()
      Get the path property: The path of the file/directory in the datastore.
      Returns:
      the path value.
    • withPath

      public DataPathAssetReference withPath(String path)
      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

      public String datastoreId()
      Get the datastoreId property: ARM resource ID of the datastore where the asset is located.
      Returns:
      the datastoreId value.
    • withDatastoreId

      public DataPathAssetReference withDatastoreId(String datastoreId)
      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:
      validate in class AssetReferenceBase
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AssetReferenceBase>
      Overrides:
      toJson in class AssetReferenceBase
      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.