Class PackagePromotion.Builder
- java.lang.Object
-
- google.registry.model.Buildable.Builder<PackagePromotion>
-
- google.registry.model.domain.token.PackagePromotion.Builder
-
- Enclosing class:
- PackagePromotion
public static class PackagePromotion.Builder extends Buildable.Builder<PackagePromotion>
A builder for constructingPackagePromotion
objects, since they are immutable.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PackagePromotion
build()
Build the instance.PackagePromotion.Builder
setLastNotificationSent(org.joda.time.DateTime lastNotificationSent)
PackagePromotion.Builder
setMaxCreates(int maxCreates)
PackagePromotion.Builder
setMaxDomains(int maxDomains)
PackagePromotion.Builder
setNextBillingDate(org.joda.time.DateTime nextBillingDate)
PackagePromotion.Builder
setPackagePrice(org.joda.money.Money packagePrice)
PackagePromotion.Builder
setToken(AllocationToken token)
-
Methods inherited from class google.registry.model.Buildable.Builder
getInstance
-
-
-
-
Method Detail
-
build
public PackagePromotion build()
Description copied from class:Buildable.Builder
Build the instance.- Overrides:
build
in classBuildable.Builder<PackagePromotion>
-
setToken
public PackagePromotion.Builder setToken(AllocationToken token)
-
setMaxDomains
public PackagePromotion.Builder setMaxDomains(int maxDomains)
-
setMaxCreates
public PackagePromotion.Builder setMaxCreates(int maxCreates)
-
setPackagePrice
public PackagePromotion.Builder setPackagePrice(org.joda.money.Money packagePrice)
-
setNextBillingDate
public PackagePromotion.Builder setNextBillingDate(org.joda.time.DateTime nextBillingDate)
-
setLastNotificationSent
public PackagePromotion.Builder setLastNotificationSent(@Nullable org.joda.time.DateTime lastNotificationSent)
-
-