Share via


ProjectEnvironmentTypeInner Class

public final class ProjectEnvironmentTypeInner
extends ProxyResource

Represents an environment type.

Constructor Summary

Constructor Description
ProjectEnvironmentTypeInner()

Creates an instance of ProjectEnvironmentTypeInner 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.

Integer environmentCount()

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

static ProjectEnvironmentTypeInner fromJson(JsonReader jsonReader)

Reads an instance of ProjectEnvironmentTypeInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

ManagedServiceIdentity identity()

Get the identity property: Managed identity properties.

String location()

Get the location property: The geo-location for the environment type.

String name()

Get the name property: The name of the resource.

ProvisioningState provisioningState()

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

EnvironmentTypeEnableStatus status()

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

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

Map<String,UserRoleAssignmentValue> userRoleAssignments()

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

void validate()

Validates the instance.

ProjectEnvironmentTypeInner withCreatorRoleAssignment(ProjectEnvironmentTypeUpdatePropertiesCreatorRoleAssignment creatorRoleAssignment)

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

ProjectEnvironmentTypeInner withDeploymentTargetId(String deploymentTargetId)

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

ProjectEnvironmentTypeInner withDisplayName(String displayName)

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

ProjectEnvironmentTypeInner withIdentity(ManagedServiceIdentity identity)

Set the identity property: Managed identity properties.

ProjectEnvironmentTypeInner withLocation(String location)

Set the location property: The geo-location for the environment type.

ProjectEnvironmentTypeInner withStatus(EnvironmentTypeEnableStatus status)

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

ProjectEnvironmentTypeInner withTags(Map<String,String> tags)

Set the tags property: Resource tags.

ProjectEnvironmentTypeInner withUserRoleAssignments(Map<String,UserRoleAssignmentValue> userRoleAssignments)

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

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ProjectEnvironmentTypeInner

public ProjectEnvironmentTypeInner()

Creates an instance of ProjectEnvironmentTypeInner 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.

environmentCount

public Integer environmentCount()

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

Returns:

the environmentCount value.

fromJson

public static ProjectEnvironmentTypeInner fromJson(JsonReader jsonReader)

Reads an instance of ProjectEnvironmentTypeInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ProjectEnvironmentTypeInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ProjectEnvironmentTypeInner.id()

Returns:

the id value.

identity

public ManagedServiceIdentity identity()

Get the identity property: Managed identity properties.

Returns:

the identity value.

location

public String location()

Get the location property: The geo-location for the environment type.

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ProjectEnvironmentTypeInner.name()

Returns:

the name value.

provisioningState

public ProvisioningState provisioningState()

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

Returns:

the provisioningState value.

status

public EnvironmentTypeEnableStatus status()

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

Returns:

the status value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

tags

public Map<String,String> tags()

Get the tags property: Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ProjectEnvironmentTypeInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ProjectEnvironmentTypeInner.type()

Returns:

the type value.

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 ProjectEnvironmentTypeInner 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 ProjectEnvironmentTypeInner object itself.

withDeploymentTargetId

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

withDisplayName

public ProjectEnvironmentTypeInner withDisplayName(String displayName)

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

Parameters:

displayName - the displayName value to set.

Returns:

the ProjectEnvironmentTypeInner object itself.

withIdentity

public ProjectEnvironmentTypeInner withIdentity(ManagedServiceIdentity identity)

Set the identity property: Managed identity properties.

Parameters:

identity - the identity value to set.

Returns:

the ProjectEnvironmentTypeInner object itself.

withLocation

public ProjectEnvironmentTypeInner withLocation(String location)

Set the location property: The geo-location for the environment type.

Parameters:

location - the location value to set.

Returns:

the ProjectEnvironmentTypeInner object itself.

withStatus

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

withTags

public ProjectEnvironmentTypeInner withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the ProjectEnvironmentTypeInner object itself.

withUserRoleAssignments

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

Applies to