Class ProductCatalogSKUAllotment

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ProductCatalogSKUAllotment extends Object
A quantity of one SKU that is included with, and consumed before, the billable usage of another SKU.
  • Field Details

  • Constructor Details

    • ProductCatalogSKUAllotment

      public ProductCatalogSKUAllotment()
    • ProductCatalogSKUAllotment

      public ProductCatalogSKUAllotment(String childSkuCode, Double hourlyQuantity, Long monthlyQuantity, String parentSkuCode)
  • Method Details

    • childSkuCode

      public ProductCatalogSKUAllotment childSkuCode(String childSkuCode)
    • getChildSkuCode

      public String getChildSkuCode()
      The code of the SKU that receives the allotment.
      Returns:
      childSkuCode
    • setChildSkuCode

      public void setChildSkuCode(String childSkuCode)
    • hourlyQuantity

      public ProductCatalogSKUAllotment hourlyQuantity(Double hourlyQuantity)
    • getHourlyQuantity

      public Double getHourlyQuantity()
      The quantity allotted per hour. Fractional for some allotments, and equal to monthly_quantity for others, depending on how the child SKU meters usage.
      Returns:
      hourlyQuantity
    • setHourlyQuantity

      public void setHourlyQuantity(Double hourlyQuantity)
    • monthlyQuantity

      public ProductCatalogSKUAllotment monthlyQuantity(Long monthlyQuantity)
    • getMonthlyQuantity

      public Long getMonthlyQuantity()
      The quantity allotted per month.
      Returns:
      monthlyQuantity
    • setMonthlyQuantity

      public void setMonthlyQuantity(Long monthlyQuantity)
    • parentSkuCode

      public ProductCatalogSKUAllotment parentSkuCode(String parentSkuCode)
    • getParentSkuCode

      public String getParentSkuCode()
      The code of the SKU that provides the allotment. Always the code of the SKU the allotment is returned under.
      Returns:
      parentSkuCode
    • setParentSkuCode

      public void setParentSkuCode(String parentSkuCode)
    • putAdditionalProperty

      public ProductCatalogSKUAllotment 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:
      ProductCatalogSKUAllotment
    • 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 ProductCatalogSKUAllotment 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