IdAssetReference Class

public final class IdAssetReference
extends AssetReferenceBase

Reference to an asset via its ARM resource ID.

Constructor Summary

Constructor Description
IdAssetReference()

Creates an instance of IdAssetReference class.

Method Summary

Modifier and Type Method and Description
String assetId()

Get the assetId property: [Required] ARM resource ID of the asset.

static IdAssetReference fromJson(JsonReader jsonReader)

Reads an instance of IdAssetReference 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.

IdAssetReference withAssetId(String assetId)

Set the assetId property: [Required] ARM resource ID of the asset.

Methods inherited from AssetReferenceBase

Methods inherited from java.lang.Object

Constructor Details

IdAssetReference

public IdAssetReference()

Creates an instance of IdAssetReference class.

Method Details

assetId

public String assetId()

Get the assetId property: [Required] ARM resource ID of the asset.

Returns:

the assetId value.

fromJson

public static IdAssetReference fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

referenceType

public ReferenceType referenceType()

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

Overrides:

IdAssetReference.referenceType()

Returns:

the referenceType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

IdAssetReference.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

IdAssetReference.validate()

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.

Applies to