Class ProjectEnvironmentTypeProperties
java.lang.Object
com.azure.resourcemanager.devcenter.fluent.models.ProjectEnvironmentTypeUpdateProperties
com.azure.resourcemanager.devcenter.fluent.models.ProjectEnvironmentTypeProperties
Properties of a project environment type.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the provisioningState property: The provisioning state of the resource.void
validate()
Validates the instance.withCreatorRoleAssignment
(ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment creatorRoleAssignment) Set the creatorRoleAssignment property: The role definition assigned to the environment creator on backing resources.withDeploymentTargetId
(String deploymentTargetId) Set the deploymentTargetId property: Id of a subscription that the environment type will be mapped to.withStatus
(EnableStatus status) Set the status property: Defines whether this Environment Type can be used in this Project.withUserRoleAssignments
(Map<String, UserRoleAssignmentValue> userRoleAssignments) Set the userRoleAssignments property: Role Assignments created on environment backing resources.Methods inherited from class com.azure.resourcemanager.devcenter.fluent.models.ProjectEnvironmentTypeUpdateProperties
creatorRoleAssignment, deploymentTargetId, status, userRoleAssignments
-
Constructor Details
-
ProjectEnvironmentTypeProperties
public ProjectEnvironmentTypeProperties()
-
-
Method Details
-
provisioningState
Get the provisioningState property: The provisioning state of the resource.- Returns:
- the provisioningState value.
-
withDeploymentTargetId
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:
withDeploymentTargetId
in classProjectEnvironmentTypeUpdateProperties
- Parameters:
deploymentTargetId
- the deploymentTargetId value to set.- Returns:
- the ProjectEnvironmentTypeUpdateProperties object itself.
-
withStatus
Set the status property: Defines whether this Environment Type can be used in this Project.- Overrides:
withStatus
in classProjectEnvironmentTypeUpdateProperties
- Parameters:
status
- the status value to set.- Returns:
- the ProjectEnvironmentTypeUpdateProperties object itself.
-
withCreatorRoleAssignment
public ProjectEnvironmentTypeProperties withCreatorRoleAssignment(ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment creatorRoleAssignment) Set the creatorRoleAssignment property: The role definition assigned to the environment creator on backing resources.- Overrides:
withCreatorRoleAssignment
in classProjectEnvironmentTypeUpdateProperties
- Parameters:
creatorRoleAssignment
- the creatorRoleAssignment value to set.- Returns:
- the ProjectEnvironmentTypeUpdateProperties object itself.
-
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:
withUserRoleAssignments
in classProjectEnvironmentTypeUpdateProperties
- Parameters:
userRoleAssignments
- the userRoleAssignments value to set.- Returns:
- the ProjectEnvironmentTypeUpdateProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classProjectEnvironmentTypeUpdateProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-