ScheduleInner Class

public final class ScheduleInner
extends ProxyResource

Represents a Schedule to execute a task.

Constructor Summary

Constructor Description
ScheduleInner()

Creates an instance of ScheduleInner class.

Method Summary

Modifier and Type Method and Description
ScheduledFrequency frequency()

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

static ScheduleInner fromJson(JsonReader jsonReader)

Reads an instance of ScheduleInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String location()

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

String name()

Get the name property: The name of the resource.

ProvisioningState provisioningState()

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

ScheduleEnableStatus state()

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

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Map<String,String> tags()

Get the tags property: Resource tags.

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)
String type()

Get the type property: The type of the resource.

ScheduledType typePropertiesType()

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

void validate()

Validates the instance.

ScheduleInner withFrequency(ScheduledFrequency frequency)

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

ScheduleInner withLocation(String location)

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

ScheduleInner withState(ScheduleEnableStatus state)

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

ScheduleInner withTags(Map<String,String> tags)

Set the tags property: Resource tags.

ScheduleInner withTime(String time)

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

ScheduleInner withTimeZone(String timeZone)

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

ScheduleInner withTypePropertiesType(ScheduledType type)

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

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ScheduleInner

public ScheduleInner()

Creates an instance of ScheduleInner class.

Method Details

frequency

public ScheduledFrequency frequency()

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

Returns:

the frequency value.

fromJson

public static ScheduleInner fromJson(JsonReader jsonReader)

Reads an instance of ScheduleInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ScheduleInner.id()

Returns:

the id value.

location

public String location()

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

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ScheduleInner.name()

Returns:

the name value.

provisioningState

public ProvisioningState provisioningState()

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

Returns:

the provisioningState value.

state

public ScheduleEnableStatus state()

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

Returns:

the state value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

tags

public Map<String,String> tags()

Get the tags property: Resource tags.

Returns:

the tags 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:

ScheduleInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ScheduleInner.type()

Returns:

the type value.

typePropertiesType

public ScheduledType typePropertiesType()

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

Returns:

the type value.

validate

public void validate()

Validates the instance.

withFrequency

public ScheduleInner withFrequency(ScheduledFrequency frequency)

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

Parameters:

frequency - the frequency value to set.

Returns:

the ScheduleInner object itself.

withLocation

public ScheduleInner withLocation(String location)

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

Parameters:

location - the location value to set.

Returns:

the ScheduleInner object itself.

withState

public ScheduleInner 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 ScheduleInner object itself.

withTags

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

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the ScheduleInner object itself.

withTime

public ScheduleInner 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 ScheduleInner object itself.

withTimeZone

public ScheduleInner 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 ScheduleInner object itself.

withTypePropertiesType

public ScheduleInner withTypePropertiesType(ScheduledType type)

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

Parameters:

type - the type value to set.

Returns:

the ScheduleInner object itself.

Applies to