Schedule Class

  • java.lang.Object
    • com.azure.resourcemanager.alertsmanagement.models.Schedule

Implements

public final class Schedule
implements JsonSerializable<Schedule>

Scheduling configuration for a given alert processing rule.

Constructor Summary

Constructor Description
Schedule()

Creates an instance of Schedule class.

Method Summary

Modifier and Type Method and Description
String effectiveFrom()

Get the effectiveFrom property: Scheduling effective from time.

String effectiveUntil()

Get the effectiveUntil property: Scheduling effective until time.

static Schedule fromJson(JsonReader jsonReader)

Reads an instance of Schedule from the JsonReader.

List<Recurrence> recurrences()

Get the recurrences property: List of recurrences.

String timeZone()

Get the timeZone property: Scheduling time zone.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Schedule withEffectiveFrom(String effectiveFrom)

Set the effectiveFrom property: Scheduling effective from time.

Schedule withEffectiveUntil(String effectiveUntil)

Set the effectiveUntil property: Scheduling effective until time.

Schedule withRecurrences(List<Recurrence> recurrences)

Set the recurrences property: List of recurrences.

Schedule withTimeZone(String timeZone)

Set the timeZone property: Scheduling time zone.

Methods inherited from java.lang.Object

Constructor Details

Schedule

public Schedule()

Creates an instance of Schedule class.

Method Details

effectiveFrom

public String effectiveFrom()

Get the effectiveFrom property: Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.

Returns:

the effectiveFrom value.

effectiveUntil

public String effectiveUntil()

Get the effectiveUntil property: Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.

Returns:

the effectiveUntil value.

fromJson

public static Schedule fromJson(JsonReader jsonReader)

Reads an instance of Schedule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

recurrences

public List<Recurrence> recurrences()

Get the recurrences property: List of recurrences.

Returns:

the recurrences value.

timeZone

public String timeZone()

Get the timeZone property: Scheduling time zone.

Returns:

the timeZone value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEffectiveFrom

public Schedule withEffectiveFrom(String effectiveFrom)

Set the effectiveFrom property: Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix.

Parameters:

effectiveFrom - the effectiveFrom value to set.

Returns:

the Schedule object itself.

withEffectiveUntil

public Schedule withEffectiveUntil(String effectiveUntil)

Set the effectiveUntil property: Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix.

Parameters:

effectiveUntil - the effectiveUntil value to set.

Returns:

the Schedule object itself.

withRecurrences

public Schedule withRecurrences(List<Recurrence> recurrences)

Set the recurrences property: List of recurrences.

Parameters:

recurrences - the recurrences value to set.

Returns:

the Schedule object itself.

withTimeZone

public Schedule withTimeZone(String timeZone)

Set the timeZone property: Scheduling time zone.

Parameters:

timeZone - the timeZone value to set.

Returns:

the Schedule object itself.

Applies to