Google Cloud Billing V1 Client - Class TierRate (1.9.7)

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
Name Description
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
Type Description
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
Name Description
var float
Returns
Type Description
$this

getUnitPrice

The price per unit of usage.

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

Returns
Type Description
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
Name Description
var Google\Type\Money
Returns
Type Description
$this