Class ProductCatalogSKUPricingTier

java.lang.Object
com.datadog.api.client.v2.model.ProductCatalogSKUPricingTier

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ProductCatalogSKUPricingTier extends Object
A usage range and the price that applies to usage falling inside it.
  • Field Details

  • Constructor Details

    • ProductCatalogSKUPricingTier

      public ProductCatalogSKUPricingTier()
    • ProductCatalogSKUPricingTier

      public ProductCatalogSKUPricingTier(Long maxUsageQuantity, Long minUsageQuantity, String price, ProductCatalogSKUPricingUnitType pricingUnitType)
  • Method Details

    • maxUsageQuantity

      public ProductCatalogSKUPricingTier maxUsageQuantity(Long maxUsageQuantity)
    • getMaxUsageQuantity

      @Nullable public Long getMaxUsageQuantity()
      The exclusive upper bound of the usage range the tier prices. null on the final tier, which is unbounded.
      Returns:
      maxUsageQuantity
    • setMaxUsageQuantity

      public void setMaxUsageQuantity(Long maxUsageQuantity)
    • minUsageQuantity

      public ProductCatalogSKUPricingTier minUsageQuantity(Long minUsageQuantity)
    • getMinUsageQuantity

      public Long getMinUsageQuantity()
      The inclusive lower bound of the usage range the tier prices.
      Returns:
      minUsageQuantity
    • setMinUsageQuantity

      public void setMinUsageQuantity(Long minUsageQuantity)
    • price

      public ProductCatalogSKUPricingTier price(String price)
    • getPrice

      public String getPrice()
      The price applied to usage in the tier, as a decimal string. The number of decimal places is not normalized, so free tiers appear as either 0 or 0.00.
      Returns:
      price
    • setPrice

      public void setPrice(String price)
    • pricingUnitType

      public ProductCatalogSKUPricingTier pricingUnitType(ProductCatalogSKUPricingUnitType pricingUnitType)
    • getPricingUnitType

      public ProductCatalogSKUPricingUnitType getPricingUnitType()
      Whether the tier's price applies per unit of usage or to a block of usage.
      Returns:
      pricingUnitType
    • setPricingUnitType

      public void setPricingUnitType(ProductCatalogSKUPricingUnitType pricingUnitType)
    • putAdditionalProperty

      public ProductCatalogSKUPricingTier putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - The arbitrary key to set
      value - The associated value
      Returns:
      ProductCatalogSKUPricingTier
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - The arbitrary key to get
      Returns:
      The specific additional property for the given key
    • equals

      public boolean equals(Object o)
      Return true if this ProductCatalogSKUPricingTier object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object