Class ComponentContainerProperties

All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceBase>

public final class ComponentContainerProperties extends AssetContainer
Component container definition. <see href="https://docs.microsoft.com/en-us/azure/machine-learning/reference-yaml-component-command" />.
  • Constructor Details

    • ComponentContainerProperties

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

    • provisioningState

      public AssetProvisioningState provisioningState()
      Get the provisioningState property: Provisioning state for the component container.
      Returns:
      the provisioningState value.
    • latestVersion

      public String latestVersion()
      Get the latestVersion property: The latest version inside this container.
      Overrides:
      latestVersion in class AssetContainer
      Returns:
      the latestVersion value.
    • nextVersion

      public String nextVersion()
      Get the nextVersion property: The next auto incremental version.
      Overrides:
      nextVersion in class AssetContainer
      Returns:
      the nextVersion value.
    • withIsArchived

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

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

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

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

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

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