TicketTemplate

A TicketTemplate is a preset for the creation of new tickets and backfills. The template contains only the metadata, that is necessary (or relevant) for the creation of new tickets and backfills and therefor does not manage something like the identifier. A TicketTemplate can be used to create an unlimited amount of new objects. For the creation of a template, a corresponding builder has to be used.

Parameters

searchFields

The indexed metadata, that will be assigned for the Ticket or Backfill on creation.

extensions

The non-indexed metadata, that will be assigned for the Ticket or Backfill on creation.

Types

Link copied to clipboard
class Builder

A Builder represents a mutable builder instance for the chained creation of TicketTemplate instances. An instance of this builder can be obtained using the TicketTemplate.newBuilder method, and it can optionally be initialized with default values using the overloaded function. The builder can then be used to create any number of TicketTemplate instances, and even after creating a TicketTemplate, further modifications can be made that will only affect new TicketTemplate instances.

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun createNewBackfill(): Messages.Backfill

Creates a new Backfill with the properties defined in this TicketTemplate for creation. The identifier and timestamp are not set and remain at their default values. All backfills created by this method behave completely autonomously, and changes to them do not affect this TicketTemplate or other returned instances that have already been created.

Link copied to clipboard
fun createNewTicket(): Messages.Ticket

Creates a new Ticket with the properties defined in this TicketTemplate for creation. The identifier, assignment, and timestamp are not set and remain at their default values. All tickets created by this method behave completely autonomously, and changes to them do not affect this TicketTemplate or other returned instances that may have already been created.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
@Contract(value = " -> new", pure = true)
open override fun toString(): String