Class ProductCatalogSKUDataAttributesResponse

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ProductCatalogSKUDataAttributesResponse extends Object
The pricing and allotment metadata of a SKU.
  • Field Details

  • Constructor Details

  • Method Details

    • allotments

    • addAllotmentsItem

      public ProductCatalogSKUDataAttributesResponse addAllotmentsItem(ProductCatalogSKUAllotment allotmentsItem)
    • getAllotments

      public List<ProductCatalogSKUAllotment> getAllotments()
      The allotments the SKU provides to other SKUs. Every entry carries the code of this SKU as its parent_sku_code. Empty when the SKU provides no allotments.
      Returns:
      allotments
    • setAllotments

      public void setAllotments(List<ProductCatalogSKUAllotment> allotments)
    • billingDimension

      public ProductCatalogSKUDataAttributesResponse billingDimension(String billingDimension)
    • getBillingDimension

      public String getBillingDimension()
      The identifier of the billing dimension the SKU is billed on, as used by the usage metering endpoints. Several SKUs can share one billing dimension, so this value does not identify a SKU.
      Returns:
      billingDimension
    • setBillingDimension

      public void setBillingDimension(String billingDimension)
    • billingUnits

      public ProductCatalogSKUDataAttributesResponse billingUnits(String billingUnits)
    • getBillingUnits

      @Nullable public String getBillingUnits()
      The billable usage unit the SKU is priced per. null for SKUs that are not priced per unit of usage, such as those whose pricing_type is percent.
      Returns:
      billingUnits
    • setBillingUnits

      public void setBillingUnits(String billingUnits)
    • currency

      public ProductCatalogSKUDataAttributesResponse currency(String currency)
    • getCurrency

      public String getCurrency()
      The ISO-4217 code of the currency the prices are expressed in.
      Returns:
      currency
    • setCurrency

      public void setCurrency(String currency)
    • defaultOnDemandOption

      public ProductCatalogSKUDataAttributesResponse defaultOnDemandOption(ProductCatalogSKUOnDemandOption defaultOnDemandOption)
    • getDefaultOnDemandOption

      public ProductCatalogSKUOnDemandOption getDefaultOnDemandOption()
      The billing frequency applied to on-demand usage of the SKU by default.
      Returns:
      defaultOnDemandOption
    • setDefaultOnDemandOption

      public void setDefaultOnDemandOption(ProductCatalogSKUOnDemandOption defaultOnDemandOption)
    • numberOfUnitsIncludedInPrice

      public ProductCatalogSKUDataAttributesResponse numberOfUnitsIncludedInPrice(Long numberOfUnitsIncludedInPrice)
    • getNumberOfUnitsIncludedInPrice

      public Long getNumberOfUnitsIncludedInPrice()
      The number of billable usage units that one unit of price covers. Divide measured usage by this value before multiplying by the price. For example, a SKU priced at 18.00 with number_of_units_included_in_price of 1 costs 18.00 per host, while a SKU priced at 12.00 with number_of_units_included_in_price of 10000 costs 12.00 per 10,000 requests. It is a scaling factor on the price, not a free allotment; included quantities are in allotments. The same factor applies to the price of a tier in on_demand_tiered whose pricing_unit_type is unit. It does not apply to a tier whose pricing_unit_type is block: that tier's price is charged for the whole block bounded by min_usage_quantity and max_usage_quantity, however much of the block is used. 0 for SKUs that are not priced per unit of usage, such as those whose pricing_type is percent.
      Returns:
      numberOfUnitsIncludedInPrice
    • setNumberOfUnitsIncludedInPrice

      public void setNumberOfUnitsIncludedInPrice(Long numberOfUnitsIncludedInPrice)
    • onDemandListPrice

      public ProductCatalogSKUDataAttributesResponse onDemandListPrice(String onDemandListPrice)
    • getOnDemandListPrice

      @Nullable public String getOnDemandListPrice()
      The public list price of on-demand usage of the SKU, as a decimal string. The number of decimal places is not normalized, so values such as 0, 0.9, and 30000.00 all occur. null when the SKU is priced with tiers, in which case the prices are in on_demand_tiered.
      Returns:
      onDemandListPrice
    • setOnDemandListPrice

      public void setOnDemandListPrice(String onDemandListPrice)
    • onDemandTiered

    • getOnDemandTiered

      @Nullable public ProductCatalogSKUTieredPricing getOnDemandTiered()
      The tiered pricing applied to on-demand usage of the SKU. null when the SKU is priced with a single list price instead.
      Returns:
      onDemandTiered
    • setOnDemandTiered

      public void setOnDemandTiered(ProductCatalogSKUTieredPricing onDemandTiered)
    • pricingType

    • getPricingType

      public ProductCatalogSKUPricingType getPricingType()
      How the SKU is priced. usage prices each billable usage unit, and percent prices a percentage; percent-priced SKUs have no billing_units.
      Returns:
      pricingType
    • setPricingType

      public void setPricingType(ProductCatalogSKUPricingType pricingType)
    • skuName

    • getSkuName

      public String getSkuName()
      The human-readable name of the SKU.
      Returns:
      skuName
    • setSkuName

      public void setSkuName(String skuName)
    • putAdditionalProperty

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