Class RetargetScheduleProperties
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.RetargetScheduleProperties
Properties for retargeting a virtual machine schedule.
-
Constructor Summary
ConstructorDescriptionCreates an instance of RetargetScheduleProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the currentResourceId property: The resource Id of the virtual machine on which the schedule operates.Get the targetResourceId property: The resource Id of the virtual machine that the schedule should be retargeted to.void
validate()
Validates the instance.withCurrentResourceId
(String currentResourceId) Set the currentResourceId property: The resource Id of the virtual machine on which the schedule operates.withTargetResourceId
(String targetResourceId) Set the targetResourceId property: The resource Id of the virtual machine that the schedule should be retargeted to.
-
Constructor Details
-
RetargetScheduleProperties
public RetargetScheduleProperties()Creates an instance of RetargetScheduleProperties class.
-
-
Method Details
-
currentResourceId
Get the currentResourceId property: The resource Id of the virtual machine on which the schedule operates.- Returns:
- the currentResourceId value.
-
withCurrentResourceId
Set the currentResourceId property: The resource Id of the virtual machine on which the schedule operates.- Parameters:
currentResourceId
- the currentResourceId value to set.- Returns:
- the RetargetScheduleProperties object itself.
-
targetResourceId
Get the targetResourceId property: The resource Id of the virtual machine that the schedule should be retargeted to.- Returns:
- the targetResourceId value.
-
withTargetResourceId
Set the targetResourceId property: The resource Id of the virtual machine that the schedule should be retargeted to.- Parameters:
targetResourceId
- the targetResourceId value to set.- Returns:
- the RetargetScheduleProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-