Class PeriodicTimerSourceInfo
java.lang.Object
com.azure.resourcemanager.databoxedge.models.PeriodicTimerSourceInfo
Periodic timer event source.
-
Constructor Summary
ConstructorDescriptionCreates an instance of PeriodicTimerSourceInfo class. -
Method Summary
Modifier and TypeMethodDescriptionschedule()
Get the schedule property: Periodic frequency at which timer event needs to be raised.Get the startTime property: The time of the day that results in a valid trigger.topic()
Get the topic property: Topic where periodic events are published to IoT device.void
validate()
Validates the instance.withSchedule
(String schedule) Set the schedule property: Periodic frequency at which timer event needs to be raised.withStartTime
(OffsetDateTime startTime) Set the startTime property: The time of the day that results in a valid trigger.Set the topic property: Topic where periodic events are published to IoT device.
-
Constructor Details
-
PeriodicTimerSourceInfo
public PeriodicTimerSourceInfo()Creates an instance of PeriodicTimerSourceInfo class.
-
-
Method Details
-
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
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
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
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
Get the topic property: Topic where periodic events are published to IoT device.- Returns:
- the topic value.
-
withTopic
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.
-