Package google.registry.model.tld
Class Tld.Builder
- Enclosing class:
Tld
A builder for constructing
Tld
objects, since they are immutable.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance.setAddGracePeriodLength
(org.joda.time.Duration addGracePeriodLength) setAllowedFullyQualifiedHostNames
(com.google.common.collect.ImmutableSet<String> allowedFullyQualifiedHostNames) setAllowedRegistrantContactIds
(com.google.common.collect.ImmutableSet<String> allowedRegistrantContactIds) setAutomaticTransferLength
(org.joda.time.Duration automaticTransferLength) setAutoRenewGracePeriodLength
(org.joda.time.Duration autoRenewGracePeriodLength) Warning! Changing this will affect the billing time of autorenew events in the past.setBreakglassMode
(boolean breakglassMode) setBsaEnrollStartTime
(Optional<org.joda.time.DateTime> enrollTime) setClaimsPeriodEnd
(org.joda.time.DateTime claimsPeriodEnd) setCreateBillingCostTransitions
(com.google.common.collect.ImmutableSortedMap<org.joda.time.DateTime, org.joda.money.Money> createCostsMap) setCurrency
(org.joda.money.CurrencyUnit currency) setDefaultPromoTokens
(com.google.common.collect.ImmutableList<VKey<AllocationToken>> promoTokens) setDnsAPlusAaaaTtl
(org.joda.time.Duration dnsAPlusAaaaTtl) setDnsDsTtl
(org.joda.time.Duration dnsDsTtl) setDnsNsTtl
(org.joda.time.Duration dnsNsTtl) setDnsPaused
(boolean paused) setDnsWriters
(com.google.common.collect.ImmutableSet<String> dnsWriters) setDriveFolderId
(String driveFolderId) setEapFeeSchedule
(com.google.common.collect.ImmutableSortedMap<org.joda.time.DateTime, org.joda.money.Money> eapFeeSchedule) Sets the EAP fee schedule for the TLD.setEscrowEnabled
(boolean enabled) setIdnTables
(com.google.common.collect.ImmutableSet<IdnTableEnum> idnTables) setInvoicingEnabled
(boolean invoicingEnabled) setLordnUsername
(String username) setNumDnsPublishLocks
(int numDnsPublishLocks) setPendingDeleteLength
(org.joda.time.Duration pendingDeleteLength) setPremiumList
(PremiumList premiumList) setPremiumPricingEngine
(String pricingEngineClass) setRedemptionGracePeriodLength
(org.joda.time.Duration redemptionGracePeriodLength) setRegistryLockOrUnlockBillingCost
(org.joda.money.Money amount) 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.setRenewGracePeriodLength
(org.joda.time.Duration renewGracePeriodLength) setReservedLists
(ReservedList... reservedLists) setReservedLists
(Set<ReservedList> reservedLists) setReservedListsByName
(Set<String> reservedListNames) setRestoreBillingCost
(org.joda.money.Money amount) setRoidSuffix
(String roidSuffix) setServerStatusChangeBillingCost
(org.joda.money.Money amount) 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.setTldType
(Tld.TldType tldType) setTransferGracePeriodLength
(org.joda.time.Duration transferGracePeriodLength) Methods inherited from class google.registry.model.Buildable.Builder
getInstance
-
Field Details
-
ROID_SUFFIX_PATTERN
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setTldType
-
setInvoicingEnabled
-
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
-
setEscrowEnabled
-
setDnsPaused
-
setDriveFolderId
-
setPremiumPricingEngine
-
setDnsWriters
-
setNumDnsPublishLocks
-
setDnsAPlusAaaaTtl
-
setDnsNsTtl
-
setDnsDsTtl
-
setAddGracePeriodLength
-
setAutoRenewGracePeriodLength
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
-
setTransferGracePeriodLength
-
setAutomaticTransferLength
-
setPendingDeleteLength
-
setCurrency
-
setCreateBillingCostTransitions
public Tld.Builder setCreateBillingCostTransitions(com.google.common.collect.ImmutableSortedMap<org.joda.time.DateTime, org.joda.money.Money> createCostsMap) -
setReservedListsByName
-
setReservedLists
-
setReservedLists
-
setPremiumList
-
setRestoreBillingCost
-
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
-
setServerStatusChangeBillingCost
-
setRegistryLockOrUnlockBillingCost
-
setLordnUsername
-
setClaimsPeriodEnd
-
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
-
setBreakglassMode
-
setBsaEnrollStartTime
-
build
Description copied from class:Buildable.Builder
Build the instance.- Overrides:
build
in classBuildable.Builder<Tld>
-