RecurrentSchedule Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.RecurrentSchedule

Implements

public final class RecurrentSchedule
implements JsonSerializable<RecurrentSchedule>

The scheduling constraints for when the profile begins.

Constructor Summary

Constructor Description
RecurrentSchedule()

Creates an instance of RecurrentSchedule class.

Method Summary

Modifier and Type Method and Description
List<String> days()

Get the days property: the collection of days that the profile takes effect on.

static RecurrentSchedule fromJson(JsonReader jsonReader)

Reads an instance of RecurrentSchedule from the JsonReader.

List<Integer> hours()

Get the hours property: A collection of hours that the profile takes effect on.

List<Integer> minutes()

Get the minutes property: A collection of minutes at which the profile takes effect at.

String timeZone()

Get the timeZone property: the timezone for the hours of the profile.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RecurrentSchedule withDays(List<String> days)

Set the days property: the collection of days that the profile takes effect on.

RecurrentSchedule withHours(List<Integer> hours)

Set the hours property: A collection of hours that the profile takes effect on.

RecurrentSchedule withMinutes(List<Integer> minutes)

Set the minutes property: A collection of minutes at which the profile takes effect at.

RecurrentSchedule withTimeZone(String timeZone)

Set the timeZone property: the timezone for the hours of the profile.

Methods inherited from java.lang.Object

Constructor Details

RecurrentSchedule

public RecurrentSchedule()

Creates an instance of RecurrentSchedule class.

Method Details

days

public List days()

Get the days property: the collection of days that the profile takes effect on. Possible values are Sunday through Saturday.

Returns:

the days value.

fromJson

public static RecurrentSchedule fromJson(JsonReader jsonReader)

Reads an instance of RecurrentSchedule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

hours

public List hours()

Get the hours property: A collection of hours that the profile takes effect on. Values supported are 0 to 23 on the 24-hour clock (AM/PM times are not supported).

Returns:

the hours value.

minutes

public List minutes()

Get the minutes property: A collection of minutes at which the profile takes effect at.

Returns:

the minutes value.

timeZone

public String timeZone()

Get the timeZone property: the timezone for the hours of the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time.

Returns:

the timeZone value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDays

public RecurrentSchedule withDays(List days)

Set the days property: the collection of days that the profile takes effect on. Possible values are Sunday through Saturday.

Parameters:

days - the days value to set.

Returns:

the RecurrentSchedule object itself.

withHours

public RecurrentSchedule withHours(List hours)

Set the hours property: A collection of hours that the profile takes effect on. Values supported are 0 to 23 on the 24-hour clock (AM/PM times are not supported).

Parameters:

hours - the hours value to set.

Returns:

the RecurrentSchedule object itself.

withMinutes

public RecurrentSchedule withMinutes(List minutes)

Set the minutes property: A collection of minutes at which the profile takes effect at.

Parameters:

minutes - the minutes value to set.

Returns:

the RecurrentSchedule object itself.

withTimeZone

public RecurrentSchedule withTimeZone(String timeZone)

Set the timeZone property: the timezone for the hours of the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time.

Parameters:

timeZone - the timeZone value to set.

Returns:

the RecurrentSchedule object itself.

Applies to