Package google.registry.model.poll
Class PollMessage.Builder<T extends PollMessage,B extends PollMessage.Builder<?,?>>
java.lang.Object
google.registry.model.Buildable.Builder<T>
google.registry.model.Buildable.GenericBuilder<T,B>
google.registry.model.poll.PollMessage.Builder<T,B>
- 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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance.setContactHistoryId
(HistoryEntry.HistoryEntryId historyId) setDomainHistoryId
(HistoryEntry.HistoryEntryId historyId) setEventTime
(org.joda.time.DateTime eventTime) setHistoryEntry
(HistoryEntry history) setHostHistoryId
(HistoryEntry.HistoryEntryId historyId) Manually set the ID for testing or in special circumstances.setRegistrarId
(String registrarId) Methods inherited from class google.registry.model.Buildable.GenericBuilder
thisCastToDerived
Methods inherited from class google.registry.model.Buildable.Builder
getInstance
-
Constructor Details
-
Builder
protected Builder() -
Builder
-
-
Method Details
-
setId
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
-
setEventTime
-
setMsg
-
setDomainHistoryId
-
setContactHistoryId
-
setHostHistoryId
-
setHistoryEntry
-
build
Description copied from class:Buildable.Builder
Build the instance.- Overrides:
build
in classBuildable.Builder<T extends PollMessage>
-