Class LabProperties
- java.lang.Object
-
- com.azure.resourcemanager.labservices.fluent.models.LabUpdateProperties
-
- com.azure.resourcemanager.labservices.fluent.models.LabProperties
-
public final class LabProperties extends LabUpdateProperties
Properties of a lab resource.
-
-
Constructor Summary
Constructors Constructor Description LabProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LabNetworkProfile
networkProfile()
Get the networkProfile property: The network profile for the lab, typically applied via a lab plan.ProvisioningState
provisioningState()
Get the provisioningState property: Current provisioning state of the lab.LabState
state()
Get the state property: The lab state.void
validate()
Validates the instance.LabProperties
withAutoShutdownProfile(AutoShutdownProfile autoShutdownProfile)
Set the autoShutdownProfile property: The resource auto shutdown configuration for the lab.LabProperties
withConnectionProfile(ConnectionProfile connectionProfile)
Set the connectionProfile property: The connection profile for the lab.LabProperties
withDescription(String description)
Set the description property: The description of the lab.LabProperties
withLabPlanId(String labPlanId)
Set the labPlanId property: The ID of the lab plan.LabProperties
withNetworkProfile(LabNetworkProfile networkProfile)
Set the networkProfile property: The network profile for the lab, typically applied via a lab plan.LabProperties
withRosterProfile(RosterProfile rosterProfile)
Set the rosterProfile property: The lab user list management profile.LabProperties
withSecurityProfile(SecurityProfile securityProfile)
Set the securityProfile property: The lab security profile.LabProperties
withTitle(String title)
Set the title property: The title of the lab.LabProperties
withVirtualMachineProfile(VirtualMachineProfile virtualMachineProfile)
Set the virtualMachineProfile property: The profile used for creating lab virtual machines.-
Methods inherited from class com.azure.resourcemanager.labservices.fluent.models.LabUpdateProperties
autoShutdownProfile, connectionProfile, description, labPlanId, rosterProfile, securityProfile, title, virtualMachineProfile
-
-
-
-
Method Detail
-
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: Current provisioning state of the lab.- Returns:
- the provisioningState value.
-
networkProfile
public LabNetworkProfile networkProfile()
Get the networkProfile property: The network profile for the lab, typically applied via a lab plan. This profile cannot be modified once a lab has been created.- Returns:
- the networkProfile value.
-
withNetworkProfile
public LabProperties withNetworkProfile(LabNetworkProfile networkProfile)
Set the networkProfile property: The network profile for the lab, typically applied via a lab plan. This profile cannot be modified once a lab has been created.- Parameters:
networkProfile
- the networkProfile value to set.- Returns:
- the LabProperties object itself.
-
state
public LabState state()
Get the state property: The lab state.- Returns:
- the state value.
-
withAutoShutdownProfile
public LabProperties withAutoShutdownProfile(AutoShutdownProfile autoShutdownProfile)
Set the autoShutdownProfile property: The resource auto shutdown configuration for the lab. This controls whether actions are taken on resources that are sitting idle.- Overrides:
withAutoShutdownProfile
in classLabUpdateProperties
- Parameters:
autoShutdownProfile
- the autoShutdownProfile value to set.- Returns:
- the LabUpdateProperties object itself.
-
withConnectionProfile
public LabProperties withConnectionProfile(ConnectionProfile connectionProfile)
Set the connectionProfile property: The connection profile for the lab. This controls settings such as web access to lab resources or whether RDP or SSH ports are open.- Overrides:
withConnectionProfile
in classLabUpdateProperties
- Parameters:
connectionProfile
- the connectionProfile value to set.- Returns:
- the LabUpdateProperties object itself.
-
withVirtualMachineProfile
public LabProperties withVirtualMachineProfile(VirtualMachineProfile virtualMachineProfile)
Set the virtualMachineProfile property: The profile used for creating lab virtual machines.- Overrides:
withVirtualMachineProfile
in classLabUpdateProperties
- Parameters:
virtualMachineProfile
- the virtualMachineProfile value to set.- Returns:
- the LabUpdateProperties object itself.
-
withSecurityProfile
public LabProperties withSecurityProfile(SecurityProfile securityProfile)
Set the securityProfile property: The lab security profile.- Overrides:
withSecurityProfile
in classLabUpdateProperties
- Parameters:
securityProfile
- the securityProfile value to set.- Returns:
- the LabUpdateProperties object itself.
-
withRosterProfile
public LabProperties withRosterProfile(RosterProfile rosterProfile)
Set the rosterProfile property: The lab user list management profile.- Overrides:
withRosterProfile
in classLabUpdateProperties
- Parameters:
rosterProfile
- the rosterProfile value to set.- Returns:
- the LabUpdateProperties object itself.
-
withLabPlanId
public LabProperties withLabPlanId(String labPlanId)
Set the labPlanId property: The ID of the lab plan. Used during resource creation to provide defaults and acts as a permission container when creating a lab via labs.azure.com. Setting a labPlanId on an existing lab provides organization..- Overrides:
withLabPlanId
in classLabUpdateProperties
- Parameters:
labPlanId
- the labPlanId value to set.- Returns:
- the LabUpdateProperties object itself.
-
withTitle
public LabProperties withTitle(String title)
Set the title property: The title of the lab.- Overrides:
withTitle
in classLabUpdateProperties
- Parameters:
title
- the title value to set.- Returns:
- the LabUpdateProperties object itself.
-
withDescription
public LabProperties withDescription(String description)
Set the description property: The description of the lab.- Overrides:
withDescription
in classLabUpdateProperties
- Parameters:
description
- the description value to set.- Returns:
- the LabUpdateProperties object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classLabUpdateProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-