Share via


ProjectEnvironmentTypeProperties Class

public final class ProjectEnvironmentTypeProperties
extends ProjectEnvironmentTypeUpdateProperties

Properties of a project environment type.

Constructor Summary

Constructor Description
ProjectEnvironmentTypeProperties()

Creates an instance of ProjectEnvironmentTypeProperties class.

Method Summary

Modifier and Type Method and Description
Integer environmentCount()

Get the environmentCount property: The number of environments of this type.

static ProjectEnvironmentTypeProperties fromJson(JsonReader jsonReader)

Reads an instance of ProjectEnvironmentTypeProperties from the JsonReader.

ProvisioningState provisioningState()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ProjectEnvironmentTypeProperties withCreatorRoleAssignment(ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment creatorRoleAssignment)

Set the creatorRoleAssignment property: The role definition assigned to the environment creator on backing resources.

ProjectEnvironmentTypeProperties withDeploymentTargetId(String deploymentTargetId)

Set the deploymentTargetId property: Id of a subscription that the environment type will be mapped to.

ProjectEnvironmentTypeProperties withDisplayName(String displayName)

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

ProjectEnvironmentTypeProperties withStatus(EnvironmentTypeEnableStatus status)

Set the status property: Defines whether this Environment Type can be used in this Project.

ProjectEnvironmentTypeProperties withUserRoleAssignments(Map<String,UserRoleAssignmentValue> userRoleAssignments)

Set the userRoleAssignments property: Role Assignments created on environment backing resources.

Methods inherited from ProjectEnvironmentTypeUpdateProperties

Methods inherited from java.lang.Object

Constructor Details

ProjectEnvironmentTypeProperties

public ProjectEnvironmentTypeProperties()

Creates an instance of ProjectEnvironmentTypeProperties class.

Method Details

environmentCount

public Integer environmentCount()

Get the environmentCount property: The number of environments of this type.

Returns:

the environmentCount value.

fromJson

public static ProjectEnvironmentTypeProperties fromJson(JsonReader jsonReader)

Reads an instance of ProjectEnvironmentTypeProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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:

ProjectEnvironmentTypeProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

ProjectEnvironmentTypeProperties.validate()

withCreatorRoleAssignment

public ProjectEnvironmentTypeProperties withCreatorRoleAssignment(ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment creatorRoleAssignment)

Set the creatorRoleAssignment property: The role definition assigned to the environment creator on backing resources.

Overrides:

ProjectEnvironmentTypeProperties.withCreatorRoleAssignment(ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment creatorRoleAssignment)

Parameters:

creatorRoleAssignment

withDeploymentTargetId

public ProjectEnvironmentTypeProperties withDeploymentTargetId(String deploymentTargetId)

Set the deploymentTargetId property: Id of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this subscription.

Overrides:

ProjectEnvironmentTypeProperties.withDeploymentTargetId(String deploymentTargetId)

Parameters:

deploymentTargetId

withDisplayName

public ProjectEnvironmentTypeProperties withDisplayName(String displayName)

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

Overrides:

ProjectEnvironmentTypeProperties.withDisplayName(String displayName)

Parameters:

displayName

withStatus

public ProjectEnvironmentTypeProperties withStatus(EnvironmentTypeEnableStatus status)

Set the status property: Defines whether this Environment Type can be used in this Project.

Overrides:

ProjectEnvironmentTypeProperties.withStatus(EnvironmentTypeEnableStatus status)

Parameters:

status

withUserRoleAssignments

public ProjectEnvironmentTypeProperties withUserRoleAssignments(Map<String,UserRoleAssignmentValue> userRoleAssignments)

Set the userRoleAssignments property: Role Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role definition IDs.

Overrides:

ProjectEnvironmentTypeProperties.withUserRoleAssignments(Map<String,UserRoleAssignmentValue> userRoleAssignments)

Parameters:

userRoleAssignments

Applies to