Class AllocationToken.Builder
java.lang.Object
google.registry.model.Buildable.Builder<AllocationToken>
google.registry.model.domain.token.AllocationToken.Builder
- Enclosing class:
AllocationToken
A builder for constructing
AllocationToken
objects, since they are immutable.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance.setAllowedEppActions
(Set<FeeQueryCommandExtensionItem.CommandName> allowedEppActions) setAllowedRegistrarIds
(Set<String> allowedRegistrarIds) setAllowedTlds
(Set<String> allowedTlds) setCreationTimeForTest
(org.joda.time.DateTime creationTime) setDiscountFraction
(double discountFraction) setDiscountPremiums
(boolean discountPremiums) setDiscountPrice
(org.joda.money.Money discountPrice) setDiscountYears
(int discountYears) setDomainName
(String domainName) setRedemptionHistoryId
(HistoryEntry.HistoryEntryId redemptionHistoryId) setRegistrationBehavior
(AllocationToken.RegistrationBehavior registrationBehavior) setRenewalPrice
(org.joda.money.Money renewalPrice) setRenewalPriceBehavior
(BillingBase.RenewalPriceBehavior renewalPriceBehavior) setTokenStatusTransitions
(com.google.common.collect.ImmutableSortedMap<org.joda.time.DateTime, AllocationToken.TokenStatus> transitions) setTokenType
(AllocationToken.TokenType tokenType) Methods inherited from class google.registry.model.Buildable.Builder
getInstance
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Description copied from class:Buildable.Builder
Build the instance.- Overrides:
build
in classBuildable.Builder<AllocationToken>
-
setToken
-
setRedemptionHistoryId
public AllocationToken.Builder setRedemptionHistoryId(HistoryEntry.HistoryEntryId redemptionHistoryId) -
setDomainName
-
setCreationTimeForTest
-
setAllowedRegistrarIds
-
setAllowedTlds
-
setDiscountFraction
-
setDiscountPremiums
-
setDiscountYears
-
setTokenType
-
setTokenStatusTransitions
public AllocationToken.Builder setTokenStatusTransitions(com.google.common.collect.ImmutableSortedMap<org.joda.time.DateTime, AllocationToken.TokenStatus> transitions) -
setAllowedEppActions
public AllocationToken.Builder setAllowedEppActions(Set<FeeQueryCommandExtensionItem.CommandName> allowedEppActions) -
setRenewalPriceBehavior
public AllocationToken.Builder setRenewalPriceBehavior(BillingBase.RenewalPriceBehavior renewalPriceBehavior) -
setRenewalPrice
-
setRegistrationBehavior
public AllocationToken.Builder setRegistrationBehavior(AllocationToken.RegistrationBehavior registrationBehavior) -
setDiscountPrice
-