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

java.lang.Object
google.registry.model.Buildable.Builder<T>
google.registry.model.Buildable.GenericBuilder<T,B>
google.registry.model.reporting.HistoryEntry.Builder<T,B>
Direct Known Subclasses:
ContactHistory.Builder, DomainHistory.Builder, HostHistory.Builder
Enclosing class:
HistoryEntry

public abstract static class HistoryEntry.Builder<T extends HistoryEntry,B extends HistoryEntry.Builder<?,?>> extends Buildable.GenericBuilder<T,B>
A builder for HistoryEntry since it is immutable
  • Constructor Details

    • Builder

      protected Builder()
    • Builder

      protected Builder(T instance)
  • Method Details

    • copyFrom

      public B copyFrom(HistoryEntry historyEntry)
    • copyFrom

      public B copyFrom(HistoryEntry.Builder<? extends HistoryEntry,?> builder)
    • build

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

      public B setRevisionId(Long revisionId)
    • setRepoId

      protected B setRepoId(EppResource eppResource)
    • setType

      public B setType(HistoryEntry.Type type)
    • setXmlBytes

      public B setXmlBytes(byte[] xmlBytes)
    • setModificationTime

      public B setModificationTime(org.joda.time.DateTime modificationTime)
    • setRegistrarId

      public B setRegistrarId(String registrarId)
    • setTrid

      public B setTrid(Trid trid)
    • setBySuperuser

      public B setBySuperuser(boolean bySuperuser)
    • setReason

      public B setReason(String reason)
    • setRequestedByRegistrar

      public B setRequestedByRegistrar(Boolean requestedByRegistrar)