Поделиться через


ScheduleUpdateProperties Class

public class ScheduleUpdateProperties
extends TrackedResourceUpdate

Updatable properties of a Schedule.

Constructor Summary

Constructor Description
ScheduleUpdateProperties()

Creates an instance of ScheduleUpdateProperties class.

Method Summary

Modifier and Type Method and Description
ScheduledFrequency frequency()

Get the frequency property: The frequency of this scheduled task.

static ScheduleUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of ScheduleUpdateProperties from the JsonReader.

ScheduleEnableStatus state()

Get the state property: Indicates whether or not this scheduled task is enabled.

String time()

Get the time property: The target time to trigger the action.

String timeZone()

Get the timeZone property: The IANA timezone id at which the schedule should execute.

JsonWriter toJson(JsonWriter jsonWriter)
ScheduledType type()

Get the type property: Supported type this scheduled task represents.

void validate()

Validates the instance.

ScheduleUpdateProperties withFrequency(ScheduledFrequency frequency)

Set the frequency property: The frequency of this scheduled task.

ScheduleUpdateProperties withLocation(String location)

Set the location property: The geo-location where the resource lives.

ScheduleUpdateProperties withState(ScheduleEnableStatus state)

Set the state property: Indicates whether or not this scheduled task is enabled.

ScheduleUpdateProperties withTags(Map<String,String> tags)

Set the tags property: Resource tags.

ScheduleUpdateProperties withTime(String time)

Set the time property: The target time to trigger the action.

ScheduleUpdateProperties withTimeZone(String timeZone)

Set the timeZone property: The IANA timezone id at which the schedule should execute.

ScheduleUpdateProperties withType(ScheduledType type)

Set the type property: Supported type this scheduled task represents.

Methods inherited from TrackedResourceUpdate

Methods inherited from java.lang.Object

Constructor Details

ScheduleUpdateProperties

public ScheduleUpdateProperties()

Creates an instance of ScheduleUpdateProperties class.

Method Details

frequency

public ScheduledFrequency frequency()

Get the frequency property: The frequency of this scheduled task.

Returns:

the frequency value.

fromJson

public static ScheduleUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of ScheduleUpdateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ScheduleUpdateProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ScheduleUpdateProperties.

state

public ScheduleEnableStatus state()

Get the state property: Indicates whether or not this scheduled task is enabled.

Returns:

the state value.

time

public String time()

Get the time property: The target time to trigger the action. The format is HH:MM.

Returns:

the time value.

timeZone

public String timeZone()

Get the timeZone property: The IANA timezone id at which the schedule should execute.

Returns:

the timeZone value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ScheduleUpdateProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public ScheduledType type()

Get the type property: Supported type this scheduled task represents.

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

ScheduleUpdateProperties.validate()

withFrequency

public ScheduleUpdateProperties withFrequency(ScheduledFrequency frequency)

Set the frequency property: The frequency of this scheduled task.

Parameters:

frequency - the frequency value to set.

Returns:

the ScheduleUpdateProperties object itself.

withLocation

public ScheduleUpdateProperties withLocation(String location)

Set the location property: The geo-location where the resource lives.

Overrides:

ScheduleUpdateProperties.withLocation(String location)

Parameters:

location

withState

public ScheduleUpdateProperties withState(ScheduleEnableStatus state)

Set the state property: Indicates whether or not this scheduled task is enabled.

Parameters:

state - the state value to set.

Returns:

the ScheduleUpdateProperties object itself.

withTags

public ScheduleUpdateProperties withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Overrides:

ScheduleUpdateProperties.withTags(Map<String,String> tags)

Parameters:

tags

withTime

public ScheduleUpdateProperties withTime(String time)

Set the time property: The target time to trigger the action. The format is HH:MM.

Parameters:

time - the time value to set.

Returns:

the ScheduleUpdateProperties object itself.

withTimeZone

public ScheduleUpdateProperties withTimeZone(String timeZone)

Set the timeZone property: The IANA timezone id at which the schedule should execute.

Parameters:

timeZone - the timeZone value to set.

Returns:

the ScheduleUpdateProperties object itself.

withType

public ScheduleUpdateProperties withType(ScheduledType type)

Set the type property: Supported type this scheduled task represents.

Parameters:

type - the type value to set.

Returns:

the ScheduleUpdateProperties object itself.

Applies to