Class DomainBase.Builder<T extends DomainBase,B extends DomainBase.Builder<T,B>>

All Implemented Interfaces:
EppResource.BuilderWithTransferData<DomainTransferData,B>
Direct Known Subclasses:
Domain.Builder
Enclosing class:
DomainBase

public static class DomainBase.Builder<T extends DomainBase,B extends DomainBase.Builder<T,B>> extends EppResource.Builder<T,B> implements EppResource.BuilderWithTransferData<DomainTransferData,B>
A builder for constructing Domain, since it is immutable.
  • Constructor Details Link icon

    • Builder Link icon

      public Builder()
  • Method Details Link icon

    • build Link icon

      public T build()
      Description copied from class: EppResource.Builder
      Build the resource, nullifying empty strings and sets and setting defaults.
      Overrides:
      build in class EppResource.Builder<T extends DomainBase,B extends DomainBase.Builder<T,B>>
    • setDomainName Link icon

      public B setDomainName(String domainName)
    • setDsData Link icon

      public B setDsData(com.google.common.collect.ImmutableSet<DomainDsData> dsData)
    • setRegistrant Link icon

      public B setRegistrant(Optional<VKey<Contact>> registrant)
    • setAuthInfo Link icon

      public B setAuthInfo(DomainAuthInfo authInfo)
    • setNameservers Link icon

      public B setNameservers(VKey<Host> nameserver)
    • setNameservers Link icon

      public B setNameservers(com.google.common.collect.ImmutableSet<VKey<Host>> nameservers)
    • addNameserver Link icon

      public B addNameserver(VKey<Host> nameserver)
    • addNameservers Link icon

      public B addNameservers(com.google.common.collect.ImmutableSet<VKey<Host>> nameservers)
    • removeNameserver Link icon

      public B removeNameserver(VKey<Host> nameserver)
    • removeNameservers Link icon

      public B removeNameservers(com.google.common.collect.ImmutableSet<VKey<Host>> nameservers)
    • setContacts Link icon

      public B setContacts(DesignatedContact contact)
    • setContacts Link icon

      public B setContacts(com.google.common.collect.ImmutableSet<DesignatedContact> contacts)
    • addContacts Link icon

      public B addContacts(com.google.common.collect.ImmutableSet<DesignatedContact> contacts)
    • removeContacts Link icon

      public B removeContacts(com.google.common.collect.ImmutableSet<DesignatedContact> contacts)
    • setLaunchNotice Link icon

      public B setLaunchNotice(LaunchNotice launchNotice)
    • setIdnTableName Link icon

      public B setIdnTableName(String idnTableName)
    • setSubordinateHosts Link icon

      public B setSubordinateHosts(com.google.common.collect.ImmutableSet<String> subordinateHosts)
    • addSubordinateHost Link icon

      public B addSubordinateHost(String hostToAdd)
    • removeSubordinateHost Link icon

      public B removeSubordinateHost(String hostToRemove)
    • setRegistrationExpirationTime Link icon

      public B setRegistrationExpirationTime(org.joda.time.DateTime registrationExpirationTime)
    • setDeletePollMessage Link icon

      public B setDeletePollMessage(VKey<PollMessage.OneTime> deletePollMessage)
    • setAutorenewBillingEvent Link icon

      public B setAutorenewBillingEvent(VKey<BillingRecurrence> autorenewBillingEvent)
    • setAutorenewPollMessage Link icon

      public B setAutorenewPollMessage(@Nullable VKey<PollMessage.Autorenew> autorenewPollMessage)
    • setLordnPhase Link icon

      public B setLordnPhase(LordnTaskUtils.LordnPhase lordnPhase)
    • setSmdId Link icon

      public B setSmdId(String smdId)
    • setGracePeriods Link icon

      public B setGracePeriods(com.google.common.collect.ImmutableSet<GracePeriod> gracePeriods)
    • addGracePeriod Link icon

      public B addGracePeriod(GracePeriod gracePeriod)
    • removeGracePeriod Link icon

      public B removeGracePeriod(GracePeriod gracePeriod)
    • setAutorenewEndTime Link icon

      public B setAutorenewEndTime(Optional<org.joda.time.DateTime> autorenewEndTime)
      Sets the autorenew end time, or clears it if empty is passed.

      Note that DateTimeUtils.END_OF_TIME is used as a sentinel value in the database representation to signify that autorenew doesn't end, and is mapped to empty here for the purposes of more legible business logic.

    • setTransferData Link icon

      public B setTransferData(DomainTransferData transferData)
      Specified by:
      setTransferData in interface EppResource.BuilderWithTransferData<T extends DomainBase,B extends DomainBase.Builder<T,B>>
    • setLastTransferTime Link icon

      public B setLastTransferTime(org.joda.time.DateTime lastTransferTime)
      Description copied from interface: EppResource.BuilderWithTransferData
      Set the time when this resource was transferred.
      Specified by:
      setLastTransferTime in interface EppResource.BuilderWithTransferData<T extends DomainBase,B extends DomainBase.Builder<T,B>>
    • setCurrentBulkToken Link icon

      public B setCurrentBulkToken(@Nullable VKey<AllocationToken> currentBulkToken)