Class ProjectEnvironmentTypeUpdate
java.lang.Object
com.azure.resourcemanager.devcenter.models.ProjectEnvironmentTypeUpdate
The project environment type for partial update. Properties not provided in the update request will not be changed.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the creatorRoleAssignment property: The role definition assigned to the environment creator on backing resources.Get the deploymentTargetId property: Id of a subscription that the environment type will be mapped to.identity()
Get the identity property: Managed identity properties.status()
Get the status property: Defines whether this Environment Type can be used in this Project.tags()
Get the tags property: Resource tags.Get the userRoleAssignments property: Role Assignments created on environment backing resources.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.withIdentity
(ManagedServiceIdentity identity) Set the identity property: Managed identity properties.withStatus
(EnableStatus status) Set the status property: Defines whether this Environment Type can be used in this Project.Set the tags property: Resource tags.withUserRoleAssignments
(Map<String, UserRoleAssignmentValue> userRoleAssignments) Set the userRoleAssignments property: Role Assignments created on environment backing resources.
-
Constructor Details
-
ProjectEnvironmentTypeUpdate
public ProjectEnvironmentTypeUpdate()
-
-
Method Details
-
tags
Get the tags property: Resource tags.- Returns:
- the tags value.
-
withTags
Set the tags property: Resource tags.- Parameters:
tags
- the tags value to set.- Returns:
- the ProjectEnvironmentTypeUpdate object itself.
-
identity
Get the identity property: Managed identity properties.- Returns:
- the identity value.
-
withIdentity
Set the identity property: Managed identity properties.- Parameters:
identity
- the identity value to set.- Returns:
- the ProjectEnvironmentTypeUpdate object itself.
-
deploymentTargetId
Get 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.- Returns:
- the deploymentTargetId 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.- Parameters:
deploymentTargetId
- the deploymentTargetId value to set.- Returns:
- the ProjectEnvironmentTypeUpdate object itself.
-
status
Get the status property: Defines whether this Environment Type can be used in this Project.- Returns:
- the status value.
-
withStatus
Set the status property: Defines whether this Environment Type can be used in this Project.- Parameters:
status
- the status value to set.- Returns:
- the ProjectEnvironmentTypeUpdate object itself.
-
creatorRoleAssignment
Get the creatorRoleAssignment property: The role definition assigned to the environment creator on backing resources.- Returns:
- the creatorRoleAssignment value.
-
withCreatorRoleAssignment
public ProjectEnvironmentTypeUpdate withCreatorRoleAssignment(ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment creatorRoleAssignment) Set the creatorRoleAssignment property: The role definition assigned to the environment creator on backing resources.- Parameters:
creatorRoleAssignment
- the creatorRoleAssignment value to set.- Returns:
- the ProjectEnvironmentTypeUpdate object itself.
-
userRoleAssignments
Get 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.- Returns:
- the userRoleAssignments value.
-
withUserRoleAssignments
public ProjectEnvironmentTypeUpdate 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.- Parameters:
userRoleAssignments
- the userRoleAssignments value to set.- Returns:
- the ProjectEnvironmentTypeUpdate object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-