Package com.datadog.api.client.v2.model
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProductCatalogSKUDataAttributesResponse(List<ProductCatalogSKUAllotment> allotments, String billingDimension, String billingUnits, String currency, ProductCatalogSKUOnDemandOption defaultOnDemandOption, Long numberOfUnitsIncludedInPrice, String onDemandListPrice, ProductCatalogSKUTieredPricing onDemandTiered, ProductCatalogSKUPricingType pricingType, String skuName) -
Method Summary
Modifier and TypeMethodDescriptionaddAllotmentsItem(ProductCatalogSKUAllotment allotmentsItem) allotments(List<ProductCatalogSKUAllotment> allotments) billingDimension(String billingDimension) billingUnits(String billingUnits) defaultOnDemandOption(ProductCatalogSKUOnDemandOption defaultOnDemandOption) booleanReturn true if this ProductCatalogSKUDataAttributesResponse object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The allotments the SKU provides to other SKUs.The identifier of the billing dimension the SKU is billed on, as used by the usage metering endpoints.The billable usage unit the SKU is priced per.The ISO-4217 code of the currency the prices are expressed in.The billing frequency applied to on-demand usage of the SKU by default.The number of billable usage units that one unit of price covers.The public list price of on-demand usage of the SKU, as a decimal string.The tiered pricing applied to on-demand usage of the SKU.How the SKU is priced.The human-readable name of the SKU.inthashCode()numberOfUnitsIncludedInPrice(Long numberOfUnitsIncludedInPrice) onDemandListPrice(String onDemandListPrice) onDemandTiered(ProductCatalogSKUTieredPricing onDemandTiered) pricingType(ProductCatalogSKUPricingType pricingType) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAllotments(List<ProductCatalogSKUAllotment> allotments) voidsetBillingDimension(String billingDimension) voidsetBillingUnits(String billingUnits) voidsetCurrency(String currency) voidsetDefaultOnDemandOption(ProductCatalogSKUOnDemandOption defaultOnDemandOption) voidsetNumberOfUnitsIncludedInPrice(Long numberOfUnitsIncludedInPrice) voidsetOnDemandListPrice(String onDemandListPrice) voidsetOnDemandTiered(ProductCatalogSKUTieredPricing onDemandTiered) voidsetPricingType(ProductCatalogSKUPricingType pricingType) voidsetSkuName(String skuName) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ALLOTMENTS
- See Also:
-
JSON_PROPERTY_BILLING_DIMENSION
- See Also:
-
JSON_PROPERTY_BILLING_UNITS
- See Also:
-
JSON_PROPERTY_CURRENCY
- See Also:
-
JSON_PROPERTY_DEFAULT_ON_DEMAND_OPTION
- See Also:
-
JSON_PROPERTY_NUMBER_OF_UNITS_INCLUDED_IN_PRICE
- See Also:
-
JSON_PROPERTY_ON_DEMAND_LIST_PRICE
- See Also:
-
JSON_PROPERTY_ON_DEMAND_TIERED
- See Also:
-
JSON_PROPERTY_PRICING_TYPE
- See Also:
-
JSON_PROPERTY_SKU_NAME
- See Also:
-
-
Constructor Details
-
ProductCatalogSKUDataAttributesResponse
public ProductCatalogSKUDataAttributesResponse() -
ProductCatalogSKUDataAttributesResponse
public ProductCatalogSKUDataAttributesResponse(List<ProductCatalogSKUAllotment> allotments, String billingDimension, String billingUnits, String currency, ProductCatalogSKUOnDemandOption defaultOnDemandOption, Long numberOfUnitsIncludedInPrice, String onDemandListPrice, ProductCatalogSKUTieredPricing onDemandTiered, ProductCatalogSKUPricingType pricingType, String skuName)
-
-
Method Details
-
allotments
public ProductCatalogSKUDataAttributesResponse allotments(List<ProductCatalogSKUAllotment> allotments) -
addAllotmentsItem
public ProductCatalogSKUDataAttributesResponse addAllotmentsItem(ProductCatalogSKUAllotment allotmentsItem) -
getAllotments
The allotments the SKU provides to other SKUs. Every entry carries the code of this SKU as itsparent_sku_code. Empty when the SKU provides no allotments.- Returns:
- allotments
-
setAllotments
-
billingDimension
-
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
-
billingUnits
-
getBillingUnits
The billable usage unit the SKU is priced per.nullfor SKUs that are not priced per unit of usage, such as those whosepricing_typeispercent.- Returns:
- billingUnits
-
setBillingUnits
-
currency
-
getCurrency
The ISO-4217 code of the currency the prices are expressed in.- Returns:
- currency
-
setCurrency
-
defaultOnDemandOption
public ProductCatalogSKUDataAttributesResponse defaultOnDemandOption(ProductCatalogSKUOnDemandOption defaultOnDemandOption) -
getDefaultOnDemandOption
The billing frequency applied to on-demand usage of the SKU by default.- Returns:
- defaultOnDemandOption
-
setDefaultOnDemandOption
-
numberOfUnitsIncludedInPrice
public ProductCatalogSKUDataAttributesResponse numberOfUnitsIncludedInPrice(Long numberOfUnitsIncludedInPrice) -
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 at18.00withnumber_of_units_included_in_priceof1costs18.00per host, while a SKU priced at12.00withnumber_of_units_included_in_priceof10000costs12.00per 10,000 requests. It is a scaling factor on the price, not a free allotment; included quantities are inallotments. The same factor applies to the price of a tier inon_demand_tieredwhosepricing_unit_typeisunit. It does not apply to a tier whosepricing_unit_typeisblock: that tier'spriceis charged for the whole block bounded bymin_usage_quantityandmax_usage_quantity, however much of the block is used.0for SKUs that are not priced per unit of usage, such as those whosepricing_typeispercent.- Returns:
- numberOfUnitsIncludedInPrice
-
setNumberOfUnitsIncludedInPrice
-
onDemandListPrice
-
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 as0,0.9, and30000.00all occur.nullwhen the SKU is priced with tiers, in which case the prices are inon_demand_tiered.- Returns:
- onDemandListPrice
-
setOnDemandListPrice
-
onDemandTiered
public ProductCatalogSKUDataAttributesResponse onDemandTiered(ProductCatalogSKUTieredPricing onDemandTiered) -
getOnDemandTiered
The tiered pricing applied to on-demand usage of the SKU.nullwhen the SKU is priced with a single list price instead.- Returns:
- onDemandTiered
-
setOnDemandTiered
-
pricingType
public ProductCatalogSKUDataAttributesResponse pricingType(ProductCatalogSKUPricingType pricingType) -
getPricingType
How the SKU is priced.usageprices each billable usage unit, andpercentprices a percentage; percent-priced SKUs have nobilling_units.- Returns:
- pricingType
-
setPricingType
-
skuName
-
getSkuName
The human-readable name of the SKU.- Returns:
- skuName
-
setSkuName
-
putAdditionalProperty
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 setvalue- The associated value- Returns:
- ProductCatalogSKUDataAttributesResponse
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
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
Return true if this ProductCatalogSKUDataAttributesResponse object is equal to o. -
hashCode
public int hashCode() -
toString
-