Class DevCenterEnvironment
java.lang.Object
com.azure.developer.devcenter.models.DevCenterEnvironment
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DevCenterEnvironment>
public final class DevCenterEnvironment
extends Object
implements com.azure.json.JsonSerializable<DevCenterEnvironment>
Properties of an environment.
-
Constructor Summary
ConstructorsConstructorDescriptionDevCenterEnvironment
(String environmentName, String environmentTypeName, String catalogName, String environmentDefinitionName) Creates an instance of DevCenterEnvironment class. -
Method Summary
Modifier and TypeMethodDescriptionstatic DevCenterEnvironment
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DevCenterEnvironment from the JsonReader.Get the catalogName property: Name of the catalog.Get the environmentDefinitionName property: Name of the environment definition.Get the environmentTypeName property: Environment type.com.azure.core.models.ResponseError
getError()
Get the error property: Provisioning error details.getName()
Get the name property: Environment name.Get the parameters property: Parameters object for the environment.Get the provisioningState property: The provisioning state of the environment.Get the resourceGroupId property: The identifier of the resource group containing the environment's resources.Get the userId property: The AAD object id of the owner of this Environment.setParameters
(Map<String, Object> parameters) Set the parameters property: Parameters object for the environment.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
-
DevCenterEnvironment
public DevCenterEnvironment(String environmentName, String environmentTypeName, String catalogName, String environmentDefinitionName) Creates an instance of DevCenterEnvironment class.- Parameters:
environmentName
- the environmentName value to set.environmentTypeName
- the environmentTypeName value to set.catalogName
- the catalogName value to set.environmentDefinitionName
- the environmentDefinitionName value to set.
-
-
Method Details
-
getParameters
Get the parameters property: Parameters object for the environment.- Returns:
- the parameters value.
-
setParameters
Set the parameters property: Parameters object for the environment.- Parameters:
parameters
- the parameters value to set.- Returns:
- the DevCenterEnvironment object itself.
-
getName
Get the name property: Environment name.- Returns:
- the name value.
-
getEnvironmentTypeName
Get the environmentTypeName property: Environment type.- Returns:
- the environmentTypeName value.
-
getUserId
Get the userId property: The AAD object id of the owner of this Environment.- Returns:
- the userId value.
-
getProvisioningState
Get the provisioningState property: The provisioning state of the environment.- Returns:
- the provisioningState value.
-
getResourceGroupId
Get the resourceGroupId property: The identifier of the resource group containing the environment's resources.- Returns:
- the resourceGroupId value.
-
getCatalogName
Get the catalogName property: Name of the catalog.- Returns:
- the catalogName value.
-
getEnvironmentDefinitionName
Get the environmentDefinitionName property: Name of the environment definition.- Returns:
- the environmentDefinitionName value.
-
getError
public com.azure.core.models.ResponseError getError()Get the error property: Provisioning error details. Populated only for error states.- Returns:
- the error value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<DevCenterEnvironment>
- Throws:
IOException
-
fromJson
public static DevCenterEnvironment fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DevCenterEnvironment from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DevCenterEnvironment 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 DevCenterEnvironment.
-