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 Details

    • ScheduleBasedTriggerContext

      public ScheduleBasedTriggerContext()
      Creates an instance of ScheduleBasedTriggerContext class.
  • Method Details

    • 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 class TriggerContext
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.