Package google.registry.model.billing
Class BillingEvent.Builder
java.lang.Object
google.registry.model.Buildable.Builder<BillingEvent>
google.registry.model.Buildable.GenericBuilder<BillingEvent,BillingEvent.Builder>
google.registry.model.billing.BillingBase.Builder<BillingEvent,BillingEvent.Builder>
google.registry.model.billing.BillingEvent.Builder
- Enclosing class:
BillingEvent
public static class BillingEvent.Builder
extends BillingBase.Builder<BillingEvent,BillingEvent.Builder>
A builder for
BillingEvent
since it is immutable.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance.setAllocationToken
(VKey<AllocationToken> allocationToken) setBillingTime
(org.joda.time.DateTime billingTime) setCancellationMatchingBillingEvent
(BillingRecurrence cancellationMatchingBillingEvent) setCost
(org.joda.money.Money cost) setPeriodYears
(Integer periodYears) setSyntheticCreationTime
(org.joda.time.DateTime syntheticCreationTime) Methods inherited from class google.registry.model.billing.BillingBase.Builder
setDomainHistory, setDomainHistoryId, setEventTime, setFlags, setId, setReason, setRegistrarId, setTargetId
Methods inherited from class google.registry.model.Buildable.GenericBuilder
thisCastToDerived
Methods inherited from class google.registry.model.Buildable.Builder
getInstance
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setCost
-
setPeriodYears
-
setBillingTime
-
setSyntheticCreationTime
-
setCancellationMatchingBillingEvent
public BillingEvent.Builder setCancellationMatchingBillingEvent(BillingRecurrence cancellationMatchingBillingEvent) -
setAllocationToken
-
build
Description copied from class:Buildable.Builder
Build the instance.- Overrides:
build
in classBillingBase.Builder<BillingEvent,
BillingEvent.Builder>
-