Class Tld.Builder

java.lang.Object
google.registry.model.Buildable.Builder<Tld>
google.registry.model.tld.Tld.Builder
Enclosing class:
Tld

public static class Tld.Builder extends Buildable.Builder<Tld>
A builder for constructing Tld objects, since they are immutable.
  • Field Details

    • ROID_SUFFIX_PATTERN

      public static final Pattern ROID_SUFFIX_PATTERN
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setTldType

      public Tld.Builder setTldType(Tld.TldType tldType)
    • setInvoicingEnabled

      public Tld.Builder setInvoicingEnabled(boolean invoicingEnabled)
    • setTldStateTransitions

      public Tld.Builder setTldStateTransitions(com.google.common.collect.ImmutableSortedMap<org.joda.time.DateTime,Tld.TldState> tldStatesMap)
      Sets the TLD state to transition to the specified states at the specified times.
    • setTldStr

      public Tld.Builder setTldStr(String tldStr)
    • setEscrowEnabled

      public Tld.Builder setEscrowEnabled(boolean enabled)
    • setDnsPaused

      public Tld.Builder setDnsPaused(boolean paused)
    • setDriveFolderId

      public Tld.Builder setDriveFolderId(String driveFolderId)
    • setPremiumPricingEngine

      public Tld.Builder setPremiumPricingEngine(String pricingEngineClass)
    • setDnsWriters

      public Tld.Builder setDnsWriters(com.google.common.collect.ImmutableSet<String> dnsWriters)
    • setNumDnsPublishLocks

      public Tld.Builder setNumDnsPublishLocks(int numDnsPublishLocks)
    • setDnsAPlusAaaaTtl

      public Tld.Builder setDnsAPlusAaaaTtl(org.joda.time.Duration dnsAPlusAaaaTtl)
    • setDnsNsTtl

      public Tld.Builder setDnsNsTtl(org.joda.time.Duration dnsNsTtl)
    • setDnsDsTtl

      public Tld.Builder setDnsDsTtl(org.joda.time.Duration dnsDsTtl)
    • setAddGracePeriodLength

      public Tld.Builder setAddGracePeriodLength(org.joda.time.Duration addGracePeriodLength)
    • setAutoRenewGracePeriodLength

      public Tld.Builder setAutoRenewGracePeriodLength(org.joda.time.Duration autoRenewGracePeriodLength)
      Warning! Changing this will affect the billing time of autorenew events in the past.
    • setRedemptionGracePeriodLength

      public Tld.Builder setRedemptionGracePeriodLength(org.joda.time.Duration redemptionGracePeriodLength)
    • setRenewGracePeriodLength

      public Tld.Builder setRenewGracePeriodLength(org.joda.time.Duration renewGracePeriodLength)
    • setTransferGracePeriodLength

      public Tld.Builder setTransferGracePeriodLength(org.joda.time.Duration transferGracePeriodLength)
    • setAutomaticTransferLength

      public Tld.Builder setAutomaticTransferLength(org.joda.time.Duration automaticTransferLength)
    • setPendingDeleteLength

      public Tld.Builder setPendingDeleteLength(org.joda.time.Duration pendingDeleteLength)
    • setCurrency

      public Tld.Builder setCurrency(org.joda.money.CurrencyUnit currency)
    • setCreateBillingCost

      public Tld.Builder setCreateBillingCost(org.joda.money.Money amount)
    • setCreateBillingCostTransitions

      public Tld.Builder setCreateBillingCostTransitions(com.google.common.collect.ImmutableSortedMap<org.joda.time.DateTime,org.joda.money.Money> createCostsMap)
    • setReservedListsByName

      public Tld.Builder setReservedListsByName(Set<String> reservedListNames)
    • setReservedLists

      public Tld.Builder setReservedLists(ReservedList... reservedLists)
    • setReservedLists

      public Tld.Builder setReservedLists(Set<ReservedList> reservedLists)
    • setPremiumList

      public Tld.Builder setPremiumList(@Nullable PremiumList premiumList)
    • setRestoreBillingCost

      public Tld.Builder setRestoreBillingCost(org.joda.money.Money amount)
    • setRenewBillingCostTransitions

      public Tld.Builder setRenewBillingCostTransitions(com.google.common.collect.ImmutableSortedMap<org.joda.time.DateTime,org.joda.money.Money> renewCostsMap)
      Sets the renew billing cost to transition to the specified values at the specified times.

      Renew billing costs transitions should only be added at least 5 days (the length of an automatic transfer) in advance, to avoid discrepancies between the cost stored with the billing event (created when the transfer is requested) and the cost at the time when the transfer actually occurs (5 days later).

    • setEapFeeSchedule

      public Tld.Builder setEapFeeSchedule(com.google.common.collect.ImmutableSortedMap<org.joda.time.DateTime,org.joda.money.Money> eapFeeSchedule)
      Sets the EAP fee schedule for the TLD.
    • setRoidSuffix

      public Tld.Builder setRoidSuffix(String roidSuffix)
    • setServerStatusChangeBillingCost

      public Tld.Builder setServerStatusChangeBillingCost(org.joda.money.Money amount)
    • setRegistryLockOrUnlockBillingCost

      public Tld.Builder setRegistryLockOrUnlockBillingCost(org.joda.money.Money amount)
    • setLordnUsername

      public Tld.Builder setLordnUsername(String username)
    • setClaimsPeriodEnd

      public Tld.Builder setClaimsPeriodEnd(org.joda.time.DateTime claimsPeriodEnd)
    • setAllowedRegistrantContactIds

      public Tld.Builder setAllowedRegistrantContactIds(com.google.common.collect.ImmutableSet<String> allowedRegistrantContactIds)
    • setAllowedFullyQualifiedHostNames

      public Tld.Builder setAllowedFullyQualifiedHostNames(com.google.common.collect.ImmutableSet<String> allowedFullyQualifiedHostNames)
    • setDefaultPromoTokens

      public Tld.Builder setDefaultPromoTokens(com.google.common.collect.ImmutableList<VKey<AllocationToken>> promoTokens)
    • setIdnTables

      public Tld.Builder setIdnTables(com.google.common.collect.ImmutableSet<IdnTableEnum> idnTables)
    • setBreakglassMode

      public Tld.Builder setBreakglassMode(boolean breakglassMode)
    • setBsaEnrollStartTime

      public Tld.Builder setBsaEnrollStartTime(Optional<org.joda.time.DateTime> enrollTime)
    • build

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