Class DestinationAsset

java.lang.Object
com.azure.resourcemanager.machinelearning.models.DestinationAsset
All Implemented Interfaces:
com.azure.json.JsonSerializable<DestinationAsset>

public final class DestinationAsset extends Object implements com.azure.json.JsonSerializable<DestinationAsset>
Publishing destination registry asset information.
  • Constructor Details

    • DestinationAsset

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

    • registryName

      public String registryName()
      Get the registryName property: Destination registry name.
      Returns:
      the registryName value.
    • withRegistryName

      public DestinationAsset withRegistryName(String registryName)
      Set the registryName property: Destination registry name.
      Parameters:
      registryName - the registryName value to set.
      Returns:
      the DestinationAsset object itself.
    • destinationName

      public String destinationName()
      Get the destinationName property: Destination asset name.
      Returns:
      the destinationName value.
    • withDestinationName

      public DestinationAsset withDestinationName(String destinationName)
      Set the destinationName property: Destination asset name.
      Parameters:
      destinationName - the destinationName value to set.
      Returns:
      the DestinationAsset object itself.
    • destinationVersion

      public String destinationVersion()
      Get the destinationVersion property: Destination asset version.
      Returns:
      the destinationVersion value.
    • withDestinationVersion

      public DestinationAsset withDestinationVersion(String destinationVersion)
      Set the destinationVersion property: Destination asset version.
      Parameters:
      destinationVersion - the destinationVersion value to set.
      Returns:
      the DestinationAsset object itself.
    • validate

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

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