GalleryArtifactVersionSource Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.GalleryArtifactVersionSource

Implements

public class GalleryArtifactVersionSource
implements JsonSerializable<GalleryArtifactVersionSource>

The gallery artifact version source.

Constructor Summary

Constructor Description
GalleryArtifactVersionSource()

Creates an instance of GalleryArtifactVersionSource class.

Method Summary

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

Reads an instance of GalleryArtifactVersionSource from the JsonReader.

String id()

Get the id property: The id of the gallery artifact version source.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GalleryArtifactVersionSource withId(String id)

Set the id property: The id of the gallery artifact version source.

Methods inherited from java.lang.Object

Constructor Details

GalleryArtifactVersionSource

public GalleryArtifactVersionSource()

Creates an instance of GalleryArtifactVersionSource class.

Method Details

fromJson

public static GalleryArtifactVersionSource fromJson(JsonReader jsonReader)

Reads an instance of GalleryArtifactVersionSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The id of the gallery artifact version source.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public GalleryArtifactVersionSource withId(String id)

Set the id property: The id of the gallery artifact version source.

Parameters:

id - the id value to set.

Returns:

the GalleryArtifactVersionSource object itself.

Applies to