RetargetScheduleProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.devtestlabs.models.RetargetScheduleProperties

public final class RetargetScheduleProperties

Properties for retargeting a virtual machine schedule.

Constructor Summary

Constructor Description
RetargetScheduleProperties()

Creates an instance of RetargetScheduleProperties class.

Method Summary

Modifier and Type Method and Description
String currentResourceId()

Get the currentResourceId property: The resource Id of the virtual machine on which the schedule operates.

String targetResourceId()

Get the targetResourceId property: The resource Id of the virtual machine that the schedule should be retargeted to.

void validate()

Validates the instance.

RetargetScheduleProperties withCurrentResourceId(String currentResourceId)

Set the currentResourceId property: The resource Id of the virtual machine on which the schedule operates.

RetargetScheduleProperties withTargetResourceId(String targetResourceId)

Set the targetResourceId property: The resource Id of the virtual machine that the schedule should be retargeted to.

Methods inherited from java.lang.Object

Constructor Details

RetargetScheduleProperties

public RetargetScheduleProperties()

Creates an instance of RetargetScheduleProperties class.

Method Details

currentResourceId

public String currentResourceId()

Get the currentResourceId property: The resource Id of the virtual machine on which the schedule operates.

Returns:

the currentResourceId value.

targetResourceId

public String targetResourceId()

Get the targetResourceId property: The resource Id of the virtual machine that the schedule should be retargeted to.

Returns:

the targetResourceId value.

validate

public void validate()

Validates the instance.

withCurrentResourceId

public RetargetScheduleProperties withCurrentResourceId(String currentResourceId)

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.

withTargetResourceId

public RetargetScheduleProperties withTargetResourceId(String targetResourceId)

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.

Applies to