GalleryImageFeature Class

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

Implements

public final class GalleryImageFeature
implements JsonSerializable<GalleryImageFeature>

A feature for gallery image.

Constructor Summary

Constructor Description
GalleryImageFeature()

Creates an instance of GalleryImageFeature class.

Method Summary

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

Reads an instance of GalleryImageFeature from the JsonReader.

String name()

Get the name property: The name of the gallery image feature.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: The value of the gallery image feature.

GalleryImageFeature withName(String name)

Set the name property: The name of the gallery image feature.

GalleryImageFeature withValue(String value)

Set the value property: The value of the gallery image feature.

Methods inherited from java.lang.Object

Constructor Details

GalleryImageFeature

public GalleryImageFeature()

Creates an instance of GalleryImageFeature class.

Method Details

fromJson

public static GalleryImageFeature fromJson(JsonReader jsonReader)

Reads an instance of GalleryImageFeature from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name of the gallery image feature.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: The value of the gallery image feature.

Returns:

the value value.

withName

public GalleryImageFeature withName(String name)

Set the name property: The name of the gallery image feature.

Parameters:

name - the name value to set.

Returns:

the GalleryImageFeature object itself.

withValue

public GalleryImageFeature withValue(String value)

Set the value property: The value of the gallery image feature.

Parameters:

value - the value value to set.

Returns:

the GalleryImageFeature object itself.

Applies to