Поделиться через


ProjectProperties Class

public final class ProjectProperties
extends ProjectUpdateProperties

Properties of a project.

Constructor Summary

Constructor Description
ProjectProperties()

Creates an instance of ProjectProperties class.

Method Summary

Modifier and Type Method and Description
String devCenterUri()

Get the devCenterUri property: The URI of the Dev Center resource this project is associated with.

static ProjectProperties fromJson(JsonReader jsonReader)

Reads an instance of ProjectProperties from the JsonReader.

ProvisioningState provisioningState()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ProjectProperties withCatalogSettings(ProjectCatalogSettings catalogSettings)

Set the catalogSettings property: Settings to be used when associating a project with a catalog.

ProjectProperties withDescription(String description)

Set the description property: Description of the project.

ProjectProperties withDevCenterId(String devCenterId)

Set the devCenterId property: Resource Id of an associated DevCenter.

ProjectProperties withDisplayName(String displayName)

Set the displayName property: The display name of the project.

ProjectProperties withMaxDevBoxesPerUser(Integer maxDevBoxesPerUser)

Set the maxDevBoxesPerUser property: When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project.

Methods inherited from ProjectUpdateProperties

Methods inherited from java.lang.Object

Constructor Details

ProjectProperties

public ProjectProperties()

Creates an instance of ProjectProperties class.

Method Details

devCenterUri

public String devCenterUri()

Get the devCenterUri property: The URI of the Dev Center resource this project is associated with.

Returns:

the devCenterUri value.

fromJson

public static ProjectProperties fromJson(JsonReader jsonReader)

Reads an instance of ProjectProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

provisioningState

public ProvisioningState provisioningState()

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

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ProjectProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

ProjectProperties.validate()

withCatalogSettings

public ProjectProperties withCatalogSettings(ProjectCatalogSettings catalogSettings)

Set the catalogSettings property: Settings to be used when associating a project with a catalog.

Overrides:

ProjectProperties.withCatalogSettings(ProjectCatalogSettings catalogSettings)

Parameters:

catalogSettings

withDescription

public ProjectProperties withDescription(String description)

Set the description property: Description of the project.

Overrides:

ProjectProperties.withDescription(String description)

Parameters:

description

withDevCenterId

public ProjectProperties withDevCenterId(String devCenterId)

Set the devCenterId property: Resource Id of an associated DevCenter.

Overrides:

ProjectProperties.withDevCenterId(String devCenterId)

Parameters:

devCenterId

withDisplayName

public ProjectProperties withDisplayName(String displayName)

Set the displayName property: The display name of the project.

Overrides:

ProjectProperties.withDisplayName(String displayName)

Parameters:

displayName

withMaxDevBoxesPerUser

public ProjectProperties withMaxDevBoxesPerUser(Integer maxDevBoxesPerUser)

Set the maxDevBoxesPerUser property: When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This will have no effect on existing Dev Boxes when reduced.

Overrides:

ProjectProperties.withMaxDevBoxesPerUser(Integer maxDevBoxesPerUser)

Parameters:

maxDevBoxesPerUser

Applies to