Class ScheduleBasedTriggerContext
java.lang.Object
com.azure.resourcemanager.dataprotection.models.TriggerContext
com.azure.resourcemanager.dataprotection.models.ScheduleBasedTriggerContext
ScheduleBasedTriggerContext
Schedule based trigger context.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ScheduleBasedTriggerContext class. -
Method Summary
Modifier and TypeMethodDescriptionschedule()
Get the schedule property: BackupScheduleGet the taggingCriteria property: List of tags that can be applicable for given schedule.void
validate()
Validates the instance.withSchedule
(BackupSchedule schedule) Set the schedule property: BackupSchedulewithTaggingCriteria
(List<TaggingCriteria> taggingCriteria) Set the taggingCriteria property: List of tags that can be applicable for given schedule.
-
Constructor Details
-
ScheduleBasedTriggerContext
public ScheduleBasedTriggerContext()Creates an instance of ScheduleBasedTriggerContext class.
-
-
Method Details
-
schedule
Get the schedule property: BackupScheduleSchedule for this backup.
- Returns:
- the schedule value.
-
withSchedule
Set the schedule property: BackupScheduleSchedule for this backup.
- Parameters:
schedule
- the schedule value to set.- Returns:
- the ScheduleBasedTriggerContext object itself.
-
taggingCriteria
Get the taggingCriteria property: List of tags that can be applicable for given schedule.- Returns:
- the taggingCriteria value.
-
withTaggingCriteria
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.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classTriggerContext
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-