java.lang.Object
com.azure.resourcemanager.machinelearning.models.ResourceBase
com.azure.resourcemanager.machinelearning.models.AssetBase
All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceBase>
Direct Known Subclasses:
CodeVersionProperties, ComponentVersionProperties, DataVersionBaseProperties, EnvironmentVersionProperties, FeaturesetVersionProperties, FeaturestoreEntityVersionProperties, ModelVersionProperties

public class AssetBase extends ResourceBase
The AssetBase model.
  • Constructor Details

    • AssetBase

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

    • isArchived

      public Boolean isArchived()
      Get the isArchived property: Is the asset archived?.
      Returns:
      the isArchived value.
    • withIsArchived

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

      public Boolean isAnonymous()
      Get the isAnonymous property: If the name version are system generated (anonymous registration).
      Returns:
      the isAnonymous value.
    • withIsAnonymous

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

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

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

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

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

      public static AssetBase fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AssetBase from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AssetBase 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 AssetBase.