Reference documentation and code samples for the Recommender V1 Client class CostProjection.
Contains metadata about how much money a recommendation can save or incur.
Generated from protobuf message google.cloud.recommender.v1.CostProjection
Namespace
Google \ Cloud \ Recommender \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ cost
Google\Type\Money
An approximate projection on amount saved or amount incurred. Negative cost units indicate cost savings and positive cost units indicate increase. See google.type.Money documentation for positive/negative units. A user's permissions may affect whether the cost is computed using list prices or custom contract prices.
↳ duration
getCost
An approximate projection on amount saved or amount incurred. Negative cost units indicate cost savings and positive cost units indicate increase.
See google.type.Money documentation for positive/negative units. A user's permissions may affect whether the cost is computed using list prices or custom contract prices.
hasCost
clearCost
setCost
An approximate projection on amount saved or amount incurred. Negative cost units indicate cost savings and positive cost units indicate increase.
See google.type.Money documentation for positive/negative units. A user's permissions may affect whether the cost is computed using list prices or custom contract prices.
$this
getDuration
Duration for which this cost applies.
hasDuration
clearDuration
setDuration
Duration for which this cost applies.
$this