Share via


ProjectEnvironmentTypeUpdateProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.devcenter.fluent.models.ProjectEnvironmentTypeUpdateProperties

Implements

public class ProjectEnvironmentTypeUpdateProperties
implements JsonSerializable<ProjectEnvironmentTypeUpdateProperties>

Properties of a project environment type. These properties can be updated after the resource has been created.

Constructor Summary

Constructor Description
ProjectEnvironmentTypeUpdateProperties()

Creates an instance of ProjectEnvironmentTypeUpdateProperties class.

Method Summary

Modifier and Type Method and Description
ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment creatorRoleAssignment()

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

String deploymentTargetId()

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

String displayName()

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

static ProjectEnvironmentTypeUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of ProjectEnvironmentTypeUpdateProperties from the JsonReader.

EnvironmentTypeEnableStatus status()

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

JsonWriter toJson(JsonWriter jsonWriter)
Map<String,UserRoleAssignmentValue> userRoleAssignments()

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

void validate()

Validates the instance.

ProjectEnvironmentTypeUpdateProperties withCreatorRoleAssignment(ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment creatorRoleAssignment)

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

ProjectEnvironmentTypeUpdateProperties withDeploymentTargetId(String deploymentTargetId)

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

ProjectEnvironmentTypeUpdateProperties withDisplayName(String displayName)

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

ProjectEnvironmentTypeUpdateProperties withStatus(EnvironmentTypeEnableStatus status)

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

ProjectEnvironmentTypeUpdateProperties withUserRoleAssignments(Map<String,UserRoleAssignmentValue> userRoleAssignments)

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

Methods inherited from java.lang.Object

Constructor Details

ProjectEnvironmentTypeUpdateProperties

public ProjectEnvironmentTypeUpdateProperties()

Creates an instance of ProjectEnvironmentTypeUpdateProperties class.

Method Details

creatorRoleAssignment

public ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment creatorRoleAssignment()

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

Returns:

the creatorRoleAssignment value.

deploymentTargetId

public String 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.

displayName

public String displayName()

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

Returns:

the displayName value.

fromJson

public static ProjectEnvironmentTypeUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of ProjectEnvironmentTypeUpdateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

status

public EnvironmentTypeEnableStatus status()

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

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

userRoleAssignments

public Map<String,UserRoleAssignmentValue> 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.

validate

public void validate()

Validates the instance.

withCreatorRoleAssignment

public ProjectEnvironmentTypeUpdateProperties 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 ProjectEnvironmentTypeUpdateProperties object itself.

withDeploymentTargetId

public ProjectEnvironmentTypeUpdateProperties 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.

Parameters:

deploymentTargetId - the deploymentTargetId value to set.

Returns:

the ProjectEnvironmentTypeUpdateProperties object itself.

withDisplayName

public ProjectEnvironmentTypeUpdateProperties withDisplayName(String displayName)

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

Parameters:

displayName - the displayName value to set.

Returns:

the ProjectEnvironmentTypeUpdateProperties object itself.

withStatus

public ProjectEnvironmentTypeUpdateProperties withStatus(EnvironmentTypeEnableStatus status)

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

Parameters:

status - the status value to set.

Returns:

the ProjectEnvironmentTypeUpdateProperties object itself.

withUserRoleAssignments

public ProjectEnvironmentTypeUpdateProperties 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 ProjectEnvironmentTypeUpdateProperties object itself.

Applies to