Share via


DevBoxDefinitionUpdateProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.devcenter.fluent.models.DevBoxDefinitionUpdateProperties

Implements

public class DevBoxDefinitionUpdateProperties
implements JsonSerializable<DevBoxDefinitionUpdateProperties>

Properties of a Dev Box definition. These properties can be updated after the resource has been created.

Constructor Summary

Constructor Description
DevBoxDefinitionUpdateProperties()

Creates an instance of DevBoxDefinitionUpdateProperties class.

Method Summary

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

Reads an instance of DevBoxDefinitionUpdateProperties from the JsonReader.

HibernateSupport hibernateSupport()

Get the hibernateSupport property: Indicates whether Dev Boxes created with this definition are capable of hibernation.

ImageReference imageReference()

Get the imageReference property: Image reference information.

String osStorageType()

Get the osStorageType property: The storage type used for the Operating System disk of Dev Boxes created using this definition.

Sku sku()

Get the sku property: The SKU for Dev Boxes created using this definition.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DevBoxDefinitionUpdateProperties withHibernateSupport(HibernateSupport hibernateSupport)

Set the hibernateSupport property: Indicates whether Dev Boxes created with this definition are capable of hibernation.

DevBoxDefinitionUpdateProperties withImageReference(ImageReference imageReference)

Set the imageReference property: Image reference information.

DevBoxDefinitionUpdateProperties withOsStorageType(String osStorageType)

Set the osStorageType property: The storage type used for the Operating System disk of Dev Boxes created using this definition.

DevBoxDefinitionUpdateProperties withSku(Sku sku)

Set the sku property: The SKU for Dev Boxes created using this definition.

Methods inherited from java.lang.Object

Constructor Details

DevBoxDefinitionUpdateProperties

public DevBoxDefinitionUpdateProperties()

Creates an instance of DevBoxDefinitionUpdateProperties class.

Method Details

fromJson

public static DevBoxDefinitionUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of DevBoxDefinitionUpdateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

hibernateSupport

public HibernateSupport hibernateSupport()

Get the hibernateSupport property: Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate.

Returns:

the hibernateSupport value.

imageReference

public ImageReference imageReference()

Get the imageReference property: Image reference information.

Returns:

the imageReference value.

osStorageType

public String osStorageType()

Get the osStorageType property: The storage type used for the Operating System disk of Dev Boxes created using this definition.

Returns:

the osStorageType value.

sku

public Sku sku()

Get the sku property: The SKU for Dev Boxes created using this definition.

Returns:

the sku value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withHibernateSupport

public DevBoxDefinitionUpdateProperties withHibernateSupport(HibernateSupport hibernateSupport)

Set the hibernateSupport property: Indicates whether Dev Boxes created with this definition are capable of hibernation. Not all images are capable of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate.

Parameters:

hibernateSupport - the hibernateSupport value to set.

Returns:

the DevBoxDefinitionUpdateProperties object itself.

withImageReference

public DevBoxDefinitionUpdateProperties withImageReference(ImageReference imageReference)

Set the imageReference property: Image reference information.

Parameters:

imageReference - the imageReference value to set.

Returns:

the DevBoxDefinitionUpdateProperties object itself.

withOsStorageType

public DevBoxDefinitionUpdateProperties withOsStorageType(String osStorageType)

Set the osStorageType property: The storage type used for the Operating System disk of Dev Boxes created using this definition.

Parameters:

osStorageType - the osStorageType value to set.

Returns:

the DevBoxDefinitionUpdateProperties object itself.

withSku

public DevBoxDefinitionUpdateProperties withSku(Sku sku)

Set the sku property: The SKU for Dev Boxes created using this definition.

Parameters:

sku - the sku value to set.

Returns:

the DevBoxDefinitionUpdateProperties object itself.

Applies to