Partilhar via


VirtualMachineImageFeature Class

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

Implements

public final class VirtualMachineImageFeature
implements JsonSerializable<VirtualMachineImageFeature>

Specifies additional capabilities supported by the image.

Constructor Summary

Constructor Description
VirtualMachineImageFeature()

Creates an instance of VirtualMachineImageFeature class.

Method Summary

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

Reads an instance of VirtualMachineImageFeature from the JsonReader.

String name()

Get the name property: The name of the feature.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: The corresponding value for the feature.

VirtualMachineImageFeature withName(String name)

Set the name property: The name of the feature.

VirtualMachineImageFeature withValue(String value)

Set the value property: The corresponding value for the feature.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineImageFeature

public VirtualMachineImageFeature()

Creates an instance of VirtualMachineImageFeature class.

Method Details

fromJson

public static VirtualMachineImageFeature fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineImageFeature from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name of the 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 corresponding value for the feature.

Returns:

the value value.

withName

public VirtualMachineImageFeature withName(String name)

Set the name property: The name of the feature.

Parameters:

name - the name value to set.

Returns:

the VirtualMachineImageFeature object itself.

withValue

public VirtualMachineImageFeature withValue(String value)

Set the value property: The corresponding value for the feature.

Parameters:

value - the value value to set.

Returns:

the VirtualMachineImageFeature object itself.

Applies to