Class ComputeStartStopSchedule
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.ComputeStartStopSchedule
-
public final class ComputeStartStopSchedule extends Object
Compute start stop schedule properties.
-
-
Constructor Summary
Constructors Constructor Description ComputeStartStopSchedule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputePowerAction
action()
Get the action property: The compute power action.String
id()
Get the id property: Schedule id.ProvisioningStatus
provisioningStatus()
Get the provisioningStatus property: The current deployment state of schedule.ScheduleBase
schedule()
Get the schedule property: Base definition of a schedule.void
validate()
Validates the instance.ComputeStartStopSchedule
withAction(ComputePowerAction action)
Set the action property: The compute power action.ComputeStartStopSchedule
withSchedule(ScheduleBase schedule)
Set the schedule property: Base definition of a schedule.
-
-
-
Method Detail
-
id
public String id()
Get the id property: Schedule id.- Returns:
- the id value.
-
provisioningStatus
public ProvisioningStatus provisioningStatus()
Get the provisioningStatus property: The current deployment state of schedule.- Returns:
- the provisioningStatus value.
-
action
public ComputePowerAction action()
Get the action property: The compute power action.- Returns:
- the action value.
-
withAction
public ComputeStartStopSchedule withAction(ComputePowerAction action)
Set the action property: The compute power action.- Parameters:
action
- the action value to set.- Returns:
- the ComputeStartStopSchedule object itself.
-
schedule
public ScheduleBase schedule()
Get the schedule property: Base definition of a schedule.- Returns:
- the schedule value.
-
withSchedule
public ComputeStartStopSchedule withSchedule(ScheduleBase schedule)
Set the schedule property: Base definition of a schedule.- Parameters:
schedule
- the schedule value to set.- Returns:
- the ComputeStartStopSchedule object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-