Class PollMessage.Builder<T extends PollMessage,B extends PollMessage.Builder<?,?>>

Direct Known Subclasses:
PollMessage.Autorenew.Builder, PollMessage.OneTime.Builder
Enclosing class:
PollMessage

public abstract static class PollMessage.Builder<T extends PollMessage,B extends PollMessage.Builder<?,?>> extends Buildable.GenericBuilder<T,B>
Builder for PollMessage because it is immutable.
  • Constructor Details

    • Builder

      protected Builder()
    • Builder

      protected Builder(T instance)
  • Method Details

    • setId

      public B setId(Long id)
      Manually set the ID for testing or in special circumstances.

      In general the ID is auto-created, and there should be no need to set it manually.

      This is only here for testing and for one special situation in which we're making a new poll message to replace an existing one, so it has to have the same ID.

    • setRegistrarId

      public B setRegistrarId(String registrarId)
    • setEventTime

      public B setEventTime(org.joda.time.DateTime eventTime)
    • setMsg

      public B setMsg(String msg)
    • setDomainHistoryId

      public B setDomainHistoryId(HistoryEntry.HistoryEntryId historyId)
    • setContactHistoryId

      public B setContactHistoryId(HistoryEntry.HistoryEntryId historyId)
    • setHostHistoryId

      public B setHostHistoryId(HistoryEntry.HistoryEntryId historyId)
    • setHistoryEntry

      public B setHistoryEntry(HistoryEntry history)
    • build

      public T build()
      Description copied from class: Buildable.Builder
      Build the instance.
      Overrides:
      build in class Buildable.Builder<T extends PollMessage>