Share via


DevBoxDefinitionInner Class

public final class DevBoxDefinitionInner
extends Resource

Represents a definition for a Developer Machine.

Constructor Summary

Constructor Description
DevBoxDefinitionInner()

Creates an instance of DevBoxDefinitionInner class.

Method Summary

Modifier and Type Method and Description
ImageReference activeImageReference()

Get the activeImageReference property: Image reference information for the currently active image (only populated during updates).

static DevBoxDefinitionInner fromJson(JsonReader jsonReader)

Reads an instance of DevBoxDefinitionInner from the JsonReader.

HibernateSupport hibernateSupport()

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

String id()

Get the id property: Fully qualified resource Id for the resource.

ImageReference imageReference()

Get the imageReference property: Image reference information.

ImageValidationErrorDetails imageValidationErrorDetails()

Get the imageValidationErrorDetails property: Details for image validator error.

ImageValidationStatus imageValidationStatus()

Get the imageValidationStatus property: Validation status of the configured image.

String name()

Get the name property: The name of the resource.

String osStorageType()

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

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource.

Sku sku()

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

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

CatalogResourceValidationStatus validationStatus()

Get the validationStatus property: Validation status for the Dev Box Definition.

DevBoxDefinitionInner withHibernateSupport(HibernateSupport hibernateSupport)

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

DevBoxDefinitionInner withImageReference(ImageReference imageReference)

Set the imageReference property: Image reference information.

DevBoxDefinitionInner withLocation(String location)
DevBoxDefinitionInner withOsStorageType(String osStorageType)

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

DevBoxDefinitionInner withSku(Sku sku)

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

DevBoxDefinitionInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

DevBoxDefinitionInner

public DevBoxDefinitionInner()

Creates an instance of DevBoxDefinitionInner class.

Method Details

activeImageReference

public ImageReference activeImageReference()

Get the activeImageReference property: Image reference information for the currently active image (only populated during updates).

Returns:

the activeImageReference value.

fromJson

public static DevBoxDefinitionInner fromJson(JsonReader jsonReader)

Reads an instance of DevBoxDefinitionInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DevBoxDefinitionInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

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.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

DevBoxDefinitionInner.id()

Returns:

the id value.

imageReference

public ImageReference imageReference()

Get the imageReference property: Image reference information.

Returns:

the imageReference value.

imageValidationErrorDetails

public ImageValidationErrorDetails imageValidationErrorDetails()

Get the imageValidationErrorDetails property: Details for image validator error. Populated when the image validation is not successful.

Returns:

the imageValidationErrorDetails value.

imageValidationStatus

public ImageValidationStatus imageValidationStatus()

Get the imageValidationStatus property: Validation status of the configured image.

Returns:

the imageValidationStatus value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DevBoxDefinitionInner.name()

Returns:

the name 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.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource.

Returns:

the provisioningState value.

sku

public Sku sku()

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

Returns:

the sku value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DevBoxDefinitionInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DevBoxDefinitionInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

validationStatus

public CatalogResourceValidationStatus validationStatus()

Get the validationStatus property: Validation status for the Dev Box Definition.

Returns:

the validationStatus value.

withHibernateSupport

public DevBoxDefinitionInner 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 DevBoxDefinitionInner object itself.

withImageReference

public DevBoxDefinitionInner withImageReference(ImageReference imageReference)

Set the imageReference property: Image reference information.

Parameters:

imageReference - the imageReference value to set.

Returns:

the DevBoxDefinitionInner object itself.

withLocation

public DevBoxDefinitionInner withLocation(String location)

Overrides:

DevBoxDefinitionInner.withLocation(String location)

Parameters:

location

withOsStorageType

public DevBoxDefinitionInner 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 DevBoxDefinitionInner object itself.

withSku

public DevBoxDefinitionInner 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 DevBoxDefinitionInner object itself.

withTags

public DevBoxDefinitionInner withTags(Map<String,String> tags)

Overrides:

DevBoxDefinitionInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to