Class IdAssetReference

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

public final class IdAssetReference extends AssetReferenceBase
Reference to an asset via its ARM resource ID.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of IdAssetReference class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the assetId property: [Required] ARM resource ID of the asset.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of IdAssetReference from the JsonReader.
    Get the referenceType property: [Required] Specifies the type of asset reference.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Set the assetId property: [Required] ARM resource ID of the asset.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • IdAssetReference

      public IdAssetReference()
      Creates an instance of IdAssetReference 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.
    • assetId

      public String assetId()
      Get the assetId property: [Required] ARM resource ID of the asset.
      Returns:
      the assetId value.
    • withAssetId

      public IdAssetReference withAssetId(String assetId)
      Set the assetId property: [Required] ARM resource ID of the asset.
      Parameters:
      assetId - the assetId value to set.
      Returns:
      the IdAssetReference 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 IdAssetReference fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of IdAssetReference from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of IdAssetReference 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 IdAssetReference.