PeriodicTimerSourceInfo Class

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

public final class PeriodicTimerSourceInfo

Periodic timer event source.

Constructor Summary

Constructor Description
PeriodicTimerSourceInfo()

Creates an instance of PeriodicTimerSourceInfo class.

Method Summary

Modifier and Type Method and Description
String schedule()

Get the schedule property: Periodic frequency at which timer event needs to be raised.

OffsetDateTime startTime()

Get the startTime property: The time of the day that results in a valid trigger.

String topic()

Get the topic property: Topic where periodic events are published to IoT device.

void validate()

Validates the instance.

PeriodicTimerSourceInfo withSchedule(String schedule)

Set the schedule property: Periodic frequency at which timer event needs to be raised.

PeriodicTimerSourceInfo withStartTime(OffsetDateTime startTime)

Set the startTime property: The time of the day that results in a valid trigger.

PeriodicTimerSourceInfo withTopic(String topic)

Set the topic property: Topic where periodic events are published to IoT device.

Methods inherited from java.lang.Object

Constructor Details

PeriodicTimerSourceInfo

public PeriodicTimerSourceInfo()

Creates an instance of PeriodicTimerSourceInfo class.

Method Details

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.

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.

topic

public String topic()

Get the topic property: Topic where periodic events are published to IoT device.

Returns:

the topic value.

validate

public void validate()

Validates the instance.

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.

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.

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.

Applies to