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>
Reference to an asset via its ARM resource ID.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassetId()Get the assetId property: [Required] ARM resource ID of the asset.static IdAssetReferencefromJson(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.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAssetId(String assetId) 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, waitMethods 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
Get the referenceType property: [Required] Specifies the type of asset reference.- Overrides:
referenceTypein classAssetReferenceBase- Returns:
- the referenceType value.
-
assetId
Get the assetId property: [Required] ARM resource ID of the asset.- Returns:
- the assetId value.
-
withAssetId
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:
validatein classAssetReferenceBase- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AssetReferenceBase>- Overrides:
toJsonin classAssetReferenceBase- Throws:
IOException
-
fromJson
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.
-