DisallowedConfiguration Class

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

Implements

public final class DisallowedConfiguration
implements JsonSerializable<DisallowedConfiguration>

Specifies the disallowed configuration for a virtual machine image.

Constructor Summary

Constructor Description
DisallowedConfiguration()

Creates an instance of DisallowedConfiguration class.

Method Summary

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

Reads an instance of DisallowedConfiguration from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VmDiskTypes vmDiskType()

Get the vmDiskType property: VM disk types which are disallowed.

DisallowedConfiguration withVmDiskType(VmDiskTypes vmDiskType)

Set the vmDiskType property: VM disk types which are disallowed.

Methods inherited from java.lang.Object

Constructor Details

DisallowedConfiguration

public DisallowedConfiguration()

Creates an instance of DisallowedConfiguration class.

Method Details

fromJson

public static DisallowedConfiguration fromJson(JsonReader jsonReader)

Reads an instance of DisallowedConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

vmDiskType

public VmDiskTypes vmDiskType()

Get the vmDiskType property: VM disk types which are disallowed.

Returns:

the vmDiskType value.

withVmDiskType

public DisallowedConfiguration withVmDiskType(VmDiskTypes vmDiskType)

Set the vmDiskType property: VM disk types which are disallowed.

Parameters:

vmDiskType - the vmDiskType value to set.

Returns:

the DisallowedConfiguration object itself.

Applies to