Class BulkPricingPackage

All Implemented Interfaces:
Buildable, Cloneable

@Entity(name="PackagePromotion") public class BulkPricingPackage extends ImmutableObject implements Buildable
An entity representing a bulk pricing promotion. Note that this table is still called PackagePromotion in Cloud SQL.
  • Constructor Details

    • BulkPricingPackage

      public BulkPricingPackage()
  • Method Details

    • getId

      public long getId()
    • getToken

      public VKey<AllocationToken> getToken()
    • getMaxDomains

      public int getMaxDomains()
    • getMaxCreates

      public int getMaxCreates()
    • getBulkPrice

      public getBulkPrice()
    • getNextBillingDate

      public org.joda.time.DateTime getNextBillingDate()
    • getLastNotificationSent

      public Optional<org.joda.time.DateTime> getLastNotificationSent()
    • loadByTokenString

      public static Optional<BulkPricingPackage> loadByTokenString(String tokenString)
      Loads and returns a BulkPricingPackage entity by its token string directly from Cloud SQL.
    • createVKey

      public VKey<BulkPricingPackage> createVKey()
      createVKey in class ImmutableObject
    • asBuilder

      public BulkPricingPackage.Builder asBuilder()
      Specified by:
      asBuilder in interface Buildable