Class PeriodicTimerSourceInfo

java.lang.Object
com.azure.resourcemanager.databoxedge.models.PeriodicTimerSourceInfo

public final class PeriodicTimerSourceInfo extends Object
Periodic timer event source.
  • Constructor Details

    • PeriodicTimerSourceInfo

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

    • startTime

      public OffsetDateTime startTime()
      Get the startTime property: The time of the day that results in a valid trigger. Schedule is computed with reference to the time specified upto seconds. If timezone is not specified the time will considered to be in device timezone. The value will always be returned as UTC time.
      Returns:
      the startTime value.
    • withStartTime

      public PeriodicTimerSourceInfo withStartTime(OffsetDateTime startTime)
      Set the startTime property: The time of the day that results in a valid trigger. Schedule is computed with reference to the time specified upto seconds. If timezone is not specified the time will considered to be in device timezone. The value will always be returned as UTC time.
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the PeriodicTimerSourceInfo object itself.
    • schedule

      public String schedule()
      Get the schedule property: Periodic frequency at which timer event needs to be raised. Supports daily, hourly, minutes, and seconds.
      Returns:
      the schedule value.
    • withSchedule

      public PeriodicTimerSourceInfo withSchedule(String schedule)
      Set the schedule property: Periodic frequency at which timer event needs to be raised. Supports daily, hourly, minutes, and seconds.
      Parameters:
      schedule - the schedule value to set.
      Returns:
      the PeriodicTimerSourceInfo object itself.
    • topic

      public String topic()
      Get the topic property: Topic where periodic events are published to IoT device.
      Returns:
      the topic value.
    • withTopic

      public PeriodicTimerSourceInfo withTopic(String topic)
      Set the topic property: Topic where periodic events are published to IoT device.
      Parameters:
      topic - the topic value to set.
      Returns:
      the PeriodicTimerSourceInfo object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.