Google Cloud Billing V1 Client - Class TierRate (1.8.0)

Reference documentation and code samples for the Google Cloud Billing V1 Client class TierRate.

The price rate indicating starting usage and its corresponding price.

Generated from protobuf message google.cloud.billing.v1.PricingExpression.TierRate

Namespace

Google \ Cloud \ Billing \ V1 \ PricingExpression

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ start_usage_amount float

Usage is priced at this rate only after this amount. Example: start_usage_amount of 10 indicates that the usage will be priced at the unit_price after the first 10 usage_units.

↳ unit_price Google\Type\Money

The price per unit of usage. Example: unit_price of amount $10 indicates that each unit will cost $10.

getStartUsageAmount

Usage is priced at this rate only after this amount.

Example: start_usage_amount of 10 indicates that the usage will be priced at the unit_price after the first 10 usage_units.

Returns
TypeDescription
float

setStartUsageAmount

Usage is priced at this rate only after this amount.

Example: start_usage_amount of 10 indicates that the usage will be priced at the unit_price after the first 10 usage_units.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getUnitPrice

The price per unit of usage.

Example: unit_price of amount $10 indicates that each unit will cost $10.

Returns
TypeDescription
Google\Type\Money|null

hasUnitPrice

clearUnitPrice

setUnitPrice

The price per unit of usage.

Example: unit_price of amount $10 indicates that each unit will cost $10.

Parameter
NameDescription
var Google\Type\Money
Returns
TypeDescription
$this