Partager via


Disallowed Class

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

Implements

public final class Disallowed
implements JsonSerializable<Disallowed>

Describes the disallowed disk types.

Constructor Summary

Constructor Description
Disallowed()

Creates an instance of Disallowed class.

Method Summary

Modifier and Type Method and Description
List<String> diskTypes()

Get the diskTypes property: A list of disk types.

static Disallowed fromJson(JsonReader jsonReader)

Reads an instance of Disallowed from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Disallowed withDiskTypes(List<String> diskTypes)

Set the diskTypes property: A list of disk types.

Methods inherited from java.lang.Object

Constructor Details

Disallowed

public Disallowed()

Creates an instance of Disallowed class.

Method Details

diskTypes

public List diskTypes()

Get the diskTypes property: A list of disk types.

Returns:

the diskTypes value.

fromJson

public static Disallowed fromJson(JsonReader jsonReader)

Reads an instance of Disallowed from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDiskTypes

public Disallowed withDiskTypes(List diskTypes)

Set the diskTypes property: A list of disk types.

Parameters:

diskTypes - the diskTypes value to set.

Returns:

the Disallowed object itself.

Applies to