Class ScheduleProperties
java.lang.Object
com.azure.resourcemanager.devcenter.fluent.models.ScheduleUpdateProperties
com.azure.resourcemanager.devcenter.fluent.models.ScheduleProperties
The Schedule properties defining when and what to execute.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the provisioningState property: The provisioning state of the resource.void
validate()
Validates the instance.withFrequency
(ScheduledFrequency frequency) Set the frequency property: The frequency of this scheduled task.withState
(EnableStatus state) Set the state property: Indicates whether or not this scheduled task is enabled.Set the time property: The target time to trigger the action.withTimeZone
(String timeZone) Set the timeZone property: The IANA timezone id at which the schedule should execute.withType
(ScheduledType type) Set the type property: Supported type this scheduled task represents.
-
Constructor Details
-
ScheduleProperties
public ScheduleProperties()Creates an instance of ScheduleProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: The provisioning state of the resource.- Returns:
- the provisioningState value.
-
withType
Set the type property: Supported type this scheduled task represents.- Overrides:
withType
in classScheduleUpdateProperties
- Parameters:
type
- the type value to set.- Returns:
- the ScheduleUpdateProperties object itself.
-
withFrequency
Set the frequency property: The frequency of this scheduled task.- Overrides:
withFrequency
in classScheduleUpdateProperties
- Parameters:
frequency
- the frequency value to set.- Returns:
- the ScheduleUpdateProperties object itself.
-
withTime
Set the time property: The target time to trigger the action. The format is HH:MM.- Overrides:
withTime
in classScheduleUpdateProperties
- Parameters:
time
- the time value to set.- Returns:
- the ScheduleUpdateProperties object itself.
-
withTimeZone
Set the timeZone property: The IANA timezone id at which the schedule should execute.- Overrides:
withTimeZone
in classScheduleUpdateProperties
- Parameters:
timeZone
- the timeZone value to set.- Returns:
- the ScheduleUpdateProperties object itself.
-
withState
Set the state property: Indicates whether or not this scheduled task is enabled.- Overrides:
withState
in classScheduleUpdateProperties
- Parameters:
state
- the state value to set.- Returns:
- the ScheduleUpdateProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classScheduleUpdateProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-