public static class

ScheduleEdits.Builder

extends Object
java.lang.Object
   ↳ com.urbanairship.automation.ScheduleEdits.Builder<T extends com.urbanairship.automation.ScheduleData>

Class Overview

ScheduleEdits builder.

Summary

Public Methods
ScheduleEdits<T> build()
Builds the in-app message schedule edits.
Builder<T> setAudience(Audience audience)
Sets the audience.
Builder<T> setAudience(AudienceSelector audience)
Sets the audience.
Builder<T> setEditGracePeriod(long duration, TimeUnit timeUnit)
Sets the edit grace period after a schedule expires or finishes.
Builder<T> setEnd(long end)
Sets the end time in ms.
Builder<T> setInterval(long duration, TimeUnit timeUnit)
Sets the display interval.
Builder<T> setLimit(int limit)
Sets the display limit.
Builder<T> setMetadata(JsonMap metadata)
Sets the metadata.
Builder<T> setPriority(int priority)
Sets the priority level, in ascending order.
Builder<T> setStart(long start)
Sets the start time in ms.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public ScheduleEdits<T> build ()

Builds the in-app message schedule edits.

Returns
  • The schedule edits.

public Builder<T> setAudience (Audience audience)

Sets the audience.

Parameters
audience The audience.
Returns
  • The builder instance.

public Builder<T> setAudience (AudienceSelector audience)

Sets the audience.

Parameters
audience The audience.
Returns
  • The builder instance.

public Builder<T> 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 Builder<T> setEnd (long end)

Sets the end time in ms.

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

public Builder<T> setInterval (long duration, TimeUnit timeUnit)

Sets the display interval.

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

public Builder<T> setLimit (int limit)

Sets the display limit.

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

public Builder<T> setMetadata (JsonMap metadata)

Sets the metadata.

Parameters
metadata The metadata.
Returns
  • The Builder instance.

public Builder<T> setPriority (int priority)

Sets the priority level, in ascending order.

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

public Builder<T> setStart (long start)

Sets the start time in ms.

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