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>

public final class OutputPathAssetReference extends AssetReferenceBase
Reference to an asset via its path in a job output.
  • Constructor Details

    • OutputPathAssetReference

      public OutputPathAssetReference()
      Creates an instance of OutputPathAssetReference 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 job output.
      Returns:
      the path value.
    • withPath

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

      public String jobId()
      Get the jobId property: ARM resource ID of the job.
      Returns:
      the jobId value.
    • withJobId

      public OutputPathAssetReference withJobId(String jobId)
      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:
      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 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.