AssetReferenceBase Class

  • java.lang.Object
    • com.azure.resourcemanager.machinelearning.models.AssetReferenceBase

Implements

public class AssetReferenceBase
implements JsonSerializable<AssetReferenceBase>

Base definition for asset references.

Constructor Summary

Constructor Description
AssetReferenceBase()

Creates an instance of AssetReferenceBase class.

Method Summary

Modifier and Type Method and Description
static AssetReferenceBase fromJson(JsonReader jsonReader)

Reads an instance of AssetReferenceBase from the JsonReader.

ReferenceType referenceType()

Get the referenceType property: [Required] Specifies the type of asset reference.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

AssetReferenceBase

public AssetReferenceBase()

Creates an instance of AssetReferenceBase class.

Method Details

fromJson

public static AssetReferenceBase fromJson(JsonReader jsonReader)

Reads an instance of AssetReferenceBase from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AssetReferenceBase 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 AssetReferenceBase.

referenceType

public ReferenceType referenceType()

Get the referenceType property: [Required] Specifies the type of asset reference.

Returns:

the referenceType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to