Class DevBox
java.lang.Object
com.azure.developer.devcenter.models.DevBox
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DevBox>
A Dev Box.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DevBox
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DevBox from the JsonReader.Get the actionState property: The current action state of the Dev Box.Get the createdTime property: Creation time of this Dev Box, in RFC3339 format.com.azure.core.models.ResponseError
getError()
Get the error property: Provisioning or action error details.Get the hardwareProfile property: Information about the Dev Box's hardware resources.Get the hibernateSupport property: Indicates whether hibernate is enabled/disabled or unknown.Get the imageReference property: Information about the image used for this Dev Box.Get the localAdministratorStatus property: Indicates whether the owner of the Dev Box is a local administrator.Get the location property: Azure region where this Dev Box is located.getName()
Get the name property: Display name for the Dev Box.Get the osType property: The operating system type of this Dev Box.Get the poolName property: The name of the Dev Box pool this machine belongs to.Get the powerState property: The current power state of the Dev Box.Get the projectName property: Name of the project this Dev Box belongs to.Get the provisioningState property: The current provisioning state of the Dev Box.Get the storageProfile property: Storage settings for this Dev Box.Get the uniqueId property: A unique identifier for the Dev Box.Get the userId property: The AAD object id of the user this Dev Box is assigned to.setLocalAdministratorStatus
(LocalAdministratorStatus localAdministratorStatus) Set the localAdministratorStatus property: Indicates whether the owner of the Dev Box is a local administrator.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DevBox
Creates an instance of DevBox class.- Parameters:
devBoxName
- the dev box name value to set.poolName
- the pool name value to set.
-
-
Method Details
-
getName
Get the name property: Display name for the Dev Box.- Returns:
- the name value.
-
getProjectName
Get the projectName property: Name of the project this Dev Box belongs to.- Returns:
- the projectName value.
-
getPoolName
Get the poolName property: The name of the Dev Box pool this machine belongs to.- Returns:
- the poolName value.
-
getHibernateSupport
Get the hibernateSupport property: Indicates whether hibernate is enabled/disabled or unknown.- Returns:
- the hibernateSupport value.
-
getProvisioningState
Get the provisioningState property: The current provisioning state of the Dev Box.- Returns:
- the provisioningState value.
-
getActionState
Get the actionState property: The current action state of the Dev Box. This is state is based on previous action performed by user.- Returns:
- the actionState value.
-
getPowerState
Get the powerState property: The current power state of the Dev Box.- Returns:
- the powerState value.
-
getUniqueId
Get the uniqueId property: A unique identifier for the Dev Box. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).- Returns:
- the uniqueId value.
-
getError
public com.azure.core.models.ResponseError getError()Get the error property: Provisioning or action error details. Populated only for error states.- Returns:
- the error value.
-
getLocation
Get the location property: Azure region where this Dev Box is located. This will be the same region as the Virtual Network it is attached to.- Returns:
- the location value.
-
getOsType
Get the osType property: The operating system type of this Dev Box.- Returns:
- the osType value.
-
getUserId
Get the userId property: The AAD object id of the user this Dev Box is assigned to.- Returns:
- the userId value.
-
getHardwareProfile
Get the hardwareProfile property: Information about the Dev Box's hardware resources.- Returns:
- the hardwareProfile value.
-
getStorageProfile
Get the storageProfile property: Storage settings for this Dev Box.- Returns:
- the storageProfile value.
-
getImageReference
Get the imageReference property: Information about the image used for this Dev Box.- Returns:
- the imageReference value.
-
getCreatedTime
Get the createdTime property: Creation time of this Dev Box, in RFC3339 format.- Returns:
- the createdTime value.
-
getLocalAdministratorStatus
Get the localAdministratorStatus property: Indicates whether the owner of the Dev Box is a local administrator.- Returns:
- the localAdministratorStatus value.
-
setLocalAdministratorStatus
Set the localAdministratorStatus property: Indicates whether the owner of the Dev Box is a local administrator.- Parameters:
localAdministratorStatus
- the localAdministratorStatus value to set.- Returns:
- the DevBox object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<DevBox>
- Throws:
IOException
-
fromJson
Reads an instance of DevBox from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DevBox if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the DevBox.
-