Recurrence Class

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

Implements

public class Recurrence
implements JsonSerializable<Recurrence>

Recurrence object.

Constructor Summary

Constructor Description
Recurrence()

Creates an instance of Recurrence class.

Method Summary

Modifier and Type Method and Description
String endTime()

Get the endTime property: End time for recurrence.

static Recurrence fromJson(JsonReader jsonReader)

Reads an instance of Recurrence from the JsonReader.

RecurrenceType recurrenceType()

Get the recurrenceType property: Specifies when the recurrence should be applied.

String startTime()

Get the startTime property: Start time for recurrence.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Recurrence withEndTime(String endTime)

Set the endTime property: End time for recurrence.

Recurrence withStartTime(String startTime)

Set the startTime property: Start time for recurrence.

Methods inherited from java.lang.Object

Constructor Details

Recurrence

public Recurrence()

Creates an instance of Recurrence class.

Method Details

endTime

public String endTime()

Get the endTime property: End time for recurrence.

Returns:

the endTime value.

fromJson

public static Recurrence fromJson(JsonReader jsonReader)

Reads an instance of Recurrence from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

recurrenceType

public RecurrenceType recurrenceType()

Get the recurrenceType property: Specifies when the recurrence should be applied.

Returns:

the recurrenceType value.

startTime

public String startTime()

Get the startTime property: Start time for recurrence.

Returns:

the startTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEndTime

public Recurrence withEndTime(String endTime)

Set the endTime property: End time for recurrence.

Parameters:

endTime - the endTime value to set.

Returns:

the Recurrence object itself.

withStartTime

public Recurrence withStartTime(String startTime)

Set the startTime property: Start time for recurrence.

Parameters:

startTime - the startTime value to set.

Returns:

the Recurrence object itself.

Applies to