ScheduleProperties Class
- java.
lang. Object - com.
azure. resourcemanager. devcenter. models. TrackedResourceUpdate - com.
azure. resourcemanager. devcenter. fluent. models. ScheduleUpdateProperties - com.
azure. resourcemanager. devcenter. fluent. models. ScheduleProperties
- com.
- com.
- com.
public final class ScheduleProperties
extends ScheduleUpdateProperties
The Schedule properties defining when and what to execute.
Constructor Summary
| Constructor | Description |
|---|---|
| ScheduleProperties() |
Creates an instance of Schedule |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Schedule |
fromJson(JsonReader jsonReader)
Reads an instance of Schedule |
|
Provisioning |
provisioningState()
Get the provisioning |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Schedule |
withFrequency(ScheduledFrequency frequency)
Set the frequency property: The frequency of this scheduled task. |
|
Schedule |
withLocation(String location)
Set the location property: The geo-location where the resource lives. |
|
Schedule |
withState(ScheduleEnableStatus state)
Set the state property: Indicates whether or not this scheduled task is enabled. |
|
Schedule |
withTags(Map<String,String> tags)
Set the tags property: Resource tags. |
|
Schedule |
withTime(String time)
Set the time property: The target time to trigger the action. |
|
Schedule |
withTimeZone(String timeZone)
Set the time |
|
Schedule |
withType(ScheduledType type)
Set the type property: Supported type this scheduled task represents. |
Methods inherited from ScheduleUpdateProperties
Methods inherited from TrackedResourceUpdate
Methods inherited from java.lang.Object
Constructor Details
ScheduleProperties
public ScheduleProperties()
Creates an instance of ScheduleProperties class.
Method Details
fromJson
public static ScheduleProperties fromJson(JsonReader jsonReader)
Reads an instance of ScheduleProperties from the JsonReader.
Parameters:
Returns:
Throws:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the resource.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ScheduleProperties.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
ScheduleProperties.validate()withFrequency
public ScheduleProperties withFrequency(ScheduledFrequency frequency)
Set the frequency property: The frequency of this scheduled task.
Overrides:
ScheduleProperties.withFrequency(ScheduledFrequency frequency)Parameters:
withLocation
public ScheduleProperties withLocation(String location)
Set the location property: The geo-location where the resource lives.
Overrides:
ScheduleProperties.withLocation(String location)Parameters:
withState
public ScheduleProperties withState(ScheduleEnableStatus state)
Set the state property: Indicates whether or not this scheduled task is enabled.
Overrides:
ScheduleProperties.withState(ScheduleEnableStatus state)Parameters:
withTags
public ScheduleProperties withTags(Map<String,String> tags)
Set the tags property: Resource tags.
Overrides:
ScheduleProperties.withTags(Map<String,String> tags)Parameters:
withTime
public ScheduleProperties withTime(String time)
Set the time property: The target time to trigger the action. The format is HH:MM.
Overrides:
ScheduleProperties.withTime(String time)Parameters:
withTimeZone
public ScheduleProperties withTimeZone(String timeZone)
Set the timeZone property: The IANA timezone id at which the schedule should execute.
Overrides:
ScheduleProperties.withTimeZone(String timeZone)Parameters:
withType
public ScheduleProperties withType(ScheduledType type)
Set the type property: Supported type this scheduled task represents.
Overrides:
ScheduleProperties.withType(ScheduledType type)Parameters: