ScheduleBasedTriggerContext Class

public final class ScheduleBasedTriggerContext
extends TriggerContext

Schedule based trigger context.

Constructor Summary

Constructor Description
ScheduleBasedTriggerContext()

Creates an instance of ScheduleBasedTriggerContext class.

Method Summary

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

Reads an instance of ScheduleBasedTriggerContext from the JsonReader.

String objectType()

Get the objectType property: Type of the specific object - used for deserializing.

BackupSchedule schedule()

Get the schedule property: Schedule for this backup.

List<TaggingCriteria> taggingCriteria()

Get the taggingCriteria property: List of tags that can be applicable for given schedule.

JsonWriter toJson(JsonWriter jsonWriter)
ScheduleBasedTriggerContext withSchedule(BackupSchedule schedule)

Set the schedule property: Schedule for this backup.

ScheduleBasedTriggerContext withTaggingCriteria(List<TaggingCriteria> taggingCriteria)

Set the taggingCriteria property: List of tags that can be applicable for given schedule.

Methods inherited from TriggerContext

Methods inherited from java.lang.Object

Constructor Details

ScheduleBasedTriggerContext

public ScheduleBasedTriggerContext()

Creates an instance of ScheduleBasedTriggerContext class.

Method Details

fromJson

public static ScheduleBasedTriggerContext fromJson(JsonReader jsonReader)

Reads an instance of ScheduleBasedTriggerContext from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

objectType

public String objectType()

Get the objectType property: Type of the specific object - used for deserializing.

Overrides:

ScheduleBasedTriggerContext.objectType()

Returns:

the objectType value.

schedule

public BackupSchedule schedule()

Get the schedule property: Schedule for this backup.

Returns:

the schedule value.

taggingCriteria

public List<TaggingCriteria> taggingCriteria()

Get the taggingCriteria property: List of tags that can be applicable for given schedule.

Returns:

the taggingCriteria value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ScheduleBasedTriggerContext.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withSchedule

public ScheduleBasedTriggerContext withSchedule(BackupSchedule schedule)

Set the schedule property: Schedule for this backup.

Parameters:

schedule - the schedule value to set.

Returns:

the ScheduleBasedTriggerContext object itself.

withTaggingCriteria

public ScheduleBasedTriggerContext withTaggingCriteria(List<TaggingCriteria> taggingCriteria)

Set the taggingCriteria property: List of tags that can be applicable for given schedule.

Parameters:

taggingCriteria - the taggingCriteria value to set.

Returns:

the ScheduleBasedTriggerContext object itself.

Applies to