Package google.registry.model.host
Class HostBase.Builder<T extends HostBase,B extends HostBase.Builder<T,B>>
java.lang.Object
google.registry.model.Buildable.Builder<T>
google.registry.model.Buildable.GenericBuilder<T,B>
google.registry.model.EppResource.Builder<T,B>
google.registry.model.host.HostBase.Builder<T,B>
- Direct Known Subclasses:
Host.Builder
- Enclosing class:
HostBase
protected static class HostBase.Builder<T extends HostBase,B extends HostBase.Builder<T,B>>
extends EppResource.Builder<T,B>
A builder for constructing
HostBase
, since it is immutable.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddInetAddresses
(com.google.common.collect.ImmutableSet<InetAddress> inetAddresses) build()
Build the resource, nullifying empty strings and sets and setting defaults.removeInetAddresses
(com.google.common.collect.ImmutableSet<InetAddress> inetAddresses) setHostName
(String hostName) setInetAddresses
(com.google.common.collect.ImmutableSet<InetAddress> inetAddresses) setLastSuperordinateChange
(org.joda.time.DateTime lastSuperordinateChange) setLastTransferTime
(org.joda.time.DateTime lastTransferTime) Set this resource's repoId.setSuperordinateDomain
(VKey<Domain> superordinateDomain) Methods inherited from class google.registry.model.EppResource.Builder
addStatusValue, addStatusValues, removeStatusValue, removeStatusValues, setCreationRegistrarId, setCreationTime, setCreationTimeForTest, setDeletionTime, setLastEppUpdateRegistrarId, setLastEppUpdateTime, setPersistedCurrentSponsorRegistrarId, setStatusValues, setUpdateTimestamp
Methods inherited from class google.registry.model.Buildable.GenericBuilder
thisCastToDerived
Methods inherited from class google.registry.model.Buildable.Builder
getInstance
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
setRepoId
Description copied from class:EppResource.Builder
Set this resource's repoId.- Overrides:
setRepoId
in classEppResource.Builder<T extends HostBase,
B extends HostBase.Builder<T, B>>
-
build
Description copied from class:EppResource.Builder
Build the resource, nullifying empty strings and sets and setting defaults.- Overrides:
build
in classEppResource.Builder<T extends HostBase,
B extends HostBase.Builder<T, B>>
-
setHostName
-
setInetAddresses
-
setLastSuperordinateChange
-
addInetAddresses
-
removeInetAddresses
-
setSuperordinateDomain
-
setLastTransferTime
-