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