Class DataVersionBaseProperties

All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceBase>
Direct Known Subclasses:
MLTableData, UriFileDataVersion, UriFolderDataVersion

public class DataVersionBaseProperties extends AssetBase
Data version base definition.
  • Constructor Details

    • DataVersionBaseProperties

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

    • dataType

      public DataType dataType()
      Get the dataType property: [Required] Specifies the type of data.
      Returns:
      the dataType value.
    • dataUri

      public String dataUri()
      Get the dataUri property: [Required] Uri of the data. Example: https://go.microsoft.com/fwlink/?linkid=2202330.
      Returns:
      the dataUri value.
    • withDataUri

      public DataVersionBaseProperties withDataUri(String dataUri)
      Set the dataUri property: [Required] Uri of the data. Example: https://go.microsoft.com/fwlink/?linkid=2202330.
      Parameters:
      dataUri - the dataUri value to set.
      Returns:
      the DataVersionBaseProperties object itself.
    • withIsArchived

      public DataVersionBaseProperties withIsArchived(Boolean isArchived)
      Set the isArchived property: Is the asset archived?.
      Overrides:
      withIsArchived in class AssetBase
      Parameters:
      isArchived - the isArchived value to set.
      Returns:
      the AssetBase object itself.
    • withIsAnonymous

      public DataVersionBaseProperties withIsAnonymous(Boolean isAnonymous)
      Set the isAnonymous property: If the name version are system generated (anonymous registration).
      Overrides:
      withIsAnonymous in class AssetBase
      Parameters:
      isAnonymous - the isAnonymous value to set.
      Returns:
      the AssetBase object itself.
    • withDescription

      public DataVersionBaseProperties withDescription(String description)
      Set the description property: The asset description text.
      Overrides:
      withDescription in class AssetBase
      Parameters:
      description - the description value to set.
      Returns:
      the ResourceBase object itself.
    • withTags

      public DataVersionBaseProperties withTags(Map<String,String> tags)
      Set the tags property: Tag dictionary. Tags can be added, removed, and updated.
      Overrides:
      withTags in class AssetBase
      Parameters:
      tags - the tags value to set.
      Returns:
      the ResourceBase object itself.
    • withProperties

      public DataVersionBaseProperties withProperties(Map<String,String> properties)
      Set the properties property: The asset property dictionary.
      Overrides:
      withProperties in class AssetBase
      Parameters:
      properties - the properties value to set.
      Returns:
      the ResourceBase object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class AssetBase
      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<ResourceBase>
      Overrides:
      toJson in class AssetBase
      Throws:
      IOException
    • fromJson

      public static DataVersionBaseProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DataVersionBaseProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DataVersionBaseProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the DataVersionBaseProperties.