Class LabPlanProperties
- java.lang.Object
-
- com.azure.resourcemanager.labservices.fluent.models.LabPlanUpdateProperties
-
- com.azure.resourcemanager.labservices.fluent.models.LabPlanProperties
-
public final class LabPlanProperties extends LabPlanUpdateProperties
Lab plan resource properties.
-
-
Constructor Summary
Constructors Constructor Description LabPlanProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProvisioningState
provisioningState()
Get the provisioningState property: Current provisioning state of the lab plan.void
validate()
Validates the instance.LabPlanProperties
withAllowedRegions(List<String> allowedRegions)
Set the allowedRegions property: The allowed regions for the lab creator to use when creating labs using this lab plan.LabPlanProperties
withDefaultAutoShutdownProfile(AutoShutdownProfile defaultAutoShutdownProfile)
Set the defaultAutoShutdownProfile property: The default lab shutdown profile.LabPlanProperties
withDefaultConnectionProfile(ConnectionProfile defaultConnectionProfile)
Set the defaultConnectionProfile property: The default lab connection profile.LabPlanProperties
withDefaultNetworkProfile(LabPlanNetworkProfile defaultNetworkProfile)
Set the defaultNetworkProfile property: The lab plan network profile.LabPlanProperties
withLinkedLmsInstance(String linkedLmsInstance)
Set the linkedLmsInstance property: Base Url of the lms instance this lab plan can link lab rosters against.LabPlanProperties
withSharedGalleryId(String sharedGalleryId)
Set the sharedGalleryId property: Resource ID of the Shared Image Gallery attached to this lab plan.LabPlanProperties
withSupportInfo(SupportInfo supportInfo)
Set the supportInfo property: Support contact information and instructions for users of the lab plan.-
Methods inherited from class com.azure.resourcemanager.labservices.fluent.models.LabPlanUpdateProperties
allowedRegions, defaultAutoShutdownProfile, defaultConnectionProfile, defaultNetworkProfile, linkedLmsInstance, sharedGalleryId, supportInfo
-
-
-
-
Method Detail
-
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: Current provisioning state of the lab plan.- Returns:
- the provisioningState value.
-
withDefaultConnectionProfile
public LabPlanProperties withDefaultConnectionProfile(ConnectionProfile defaultConnectionProfile)
Set the defaultConnectionProfile property: The default lab connection profile. This can be changed on a lab resource and only provides a default profile.- Overrides:
withDefaultConnectionProfile
in classLabPlanUpdateProperties
- Parameters:
defaultConnectionProfile
- the defaultConnectionProfile value to set.- Returns:
- the LabPlanUpdateProperties object itself.
-
withDefaultAutoShutdownProfile
public LabPlanProperties withDefaultAutoShutdownProfile(AutoShutdownProfile defaultAutoShutdownProfile)
Set the defaultAutoShutdownProfile property: The default lab shutdown profile. This can be changed on a lab resource and only provides a default profile.- Overrides:
withDefaultAutoShutdownProfile
in classLabPlanUpdateProperties
- Parameters:
defaultAutoShutdownProfile
- the defaultAutoShutdownProfile value to set.- Returns:
- the LabPlanUpdateProperties object itself.
-
withDefaultNetworkProfile
public LabPlanProperties withDefaultNetworkProfile(LabPlanNetworkProfile defaultNetworkProfile)
Set the defaultNetworkProfile property: The lab plan network profile. To enforce lab network policies they must be defined here and cannot be changed when there are existing labs associated with this lab plan.- Overrides:
withDefaultNetworkProfile
in classLabPlanUpdateProperties
- Parameters:
defaultNetworkProfile
- the defaultNetworkProfile value to set.- Returns:
- the LabPlanUpdateProperties object itself.
-
withAllowedRegions
public LabPlanProperties withAllowedRegions(List<String> allowedRegions)
Set the allowedRegions property: The allowed regions for the lab creator to use when creating labs using this lab plan.- Overrides:
withAllowedRegions
in classLabPlanUpdateProperties
- Parameters:
allowedRegions
- the allowedRegions value to set.- Returns:
- the LabPlanUpdateProperties object itself.
-
withSharedGalleryId
public LabPlanProperties withSharedGalleryId(String sharedGalleryId)
Set the sharedGalleryId property: Resource ID of the Shared Image Gallery attached to this lab plan. When saving a lab template virtual machine image it will be persisted in this gallery. Shared images from the gallery can be made available to use when creating new labs.- Overrides:
withSharedGalleryId
in classLabPlanUpdateProperties
- Parameters:
sharedGalleryId
- the sharedGalleryId value to set.- Returns:
- the LabPlanUpdateProperties object itself.
-
withSupportInfo
public LabPlanProperties withSupportInfo(SupportInfo supportInfo)
Set the supportInfo property: Support contact information and instructions for users of the lab plan. This information is displayed to lab owners and virtual machine users for all labs in the lab plan.- Overrides:
withSupportInfo
in classLabPlanUpdateProperties
- Parameters:
supportInfo
- the supportInfo value to set.- Returns:
- the LabPlanUpdateProperties object itself.
-
withLinkedLmsInstance
public LabPlanProperties withLinkedLmsInstance(String linkedLmsInstance)
Set the linkedLmsInstance property: Base Url of the lms instance this lab plan can link lab rosters against.- Overrides:
withLinkedLmsInstance
in classLabPlanUpdateProperties
- Parameters:
linkedLmsInstance
- the linkedLmsInstance value to set.- Returns:
- the LabPlanUpdateProperties object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classLabPlanUpdateProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-