public static class

ActionScheduleEdits.Builder

extends Object
java.lang.Object
   ↳ com.urbanairship.automation.ActionScheduleEdits.Builder

Class Overview

ActionScheduleEdits builder.

Summary

Public Methods
ActionScheduleEdits build()
Builds the in-app message schedule edit.
ActionScheduleEdits.Builder setActions(Map<StringJsonValue> actionMap)
Adds a map of actions.
ActionScheduleEdits.Builder setEditGracePeriod(long duration, TimeUnit timeUnit)
Sets the edit grace period after a schedule expires or finishes.
ActionScheduleEdits.Builder setEnd(long end)
Sets the end time in MS.
ActionScheduleEdits.Builder setInterval(long duration, TimeUnit timeUnit)
Sets the execution interval.
ActionScheduleEdits.Builder setLimit(int limit)
Sets the display limit.
ActionScheduleEdits.Builder setPriority(int priority)
Sets the priority level, in ascending order.
ActionScheduleEdits.Builder setStart(long start)
Sets the start time in MS.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public ActionScheduleEdits build ()

Builds the in-app message schedule edit.

Returns
  • The schedule edit.

public ActionScheduleEdits.Builder setActions (Map<StringJsonValue> actionMap)

Adds a map of actions.

Parameters
actionMap A map of action names to action values.
Returns
  • The Builder instance.

public ActionScheduleEdits.Builder setEditGracePeriod (long duration, TimeUnit timeUnit)

Sets the edit grace period after a schedule expires or finishes.

Parameters
duration The grace period.
timeUnit The time unit.
Returns
  • The Builder instance.

public ActionScheduleEdits.Builder setEnd (long end)

Sets the end time in MS.

Parameters
end The end time in MS.
Returns
  • The Builder instance.

public ActionScheduleEdits.Builder setInterval (long duration, TimeUnit timeUnit)

Sets the execution interval.

Parameters
duration The interval.
timeUnit The time unit.
Returns
  • The Builder instance.

public ActionScheduleEdits.Builder setLimit (int limit)

Sets the display limit.

Parameters
limit The display limit.
Returns
  • The builder instance.

public ActionScheduleEdits.Builder setPriority (int priority)

Sets the priority level, in ascending order.

Parameters
priority The priority level.
Returns
  • The Builder instance.

public ActionScheduleEdits.Builder setStart (long start)

Sets the start time in MS.

Parameters
start The start time in MS.
Returns
  • The Builder instance.