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


ScheduleProperties Class

public final class ScheduleProperties
extends ScheduleUpdateProperties

The Schedule properties defining when and what to execute.

Constructor Summary

Constructor Description
ScheduleProperties()

Creates an instance of ScheduleProperties class.

Method Summary

Modifier and Type Method and Description
static ScheduleProperties fromJson(JsonReader jsonReader)

Reads an instance of ScheduleProperties from the JsonReader.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ScheduleProperties withFrequency(ScheduledFrequency frequency)

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

ScheduleProperties withLocation(String location)

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

ScheduleProperties withState(ScheduleEnableStatus state)

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

ScheduleProperties withTags(Map<String,String> tags)

Set the tags property: Resource tags.

ScheduleProperties withTime(String time)

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

ScheduleProperties withTimeZone(String timeZone)

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

ScheduleProperties 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:

jsonReader - The JsonReader being read.

Returns:

An instance of ScheduleProperties 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 ScheduleProperties.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ScheduleProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

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:

frequency

withLocation

public ScheduleProperties withLocation(String location)

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

Overrides:

ScheduleProperties.withLocation(String location)

Parameters:

location

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:

state

withTags

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

Set the tags property: Resource tags.

Overrides:

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

Parameters:

tags

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:

time

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:

timeZone

withType

public ScheduleProperties withType(ScheduledType type)

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

Overrides:

ScheduleProperties.withType(ScheduledType type)

Parameters:

type

Applies to