class Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1CostProjection

Contains metadata about how much money a recommendation can save or incur.

Attributes

cost[RW]

Represents an amount of money with its currency type. Corresponds to the JSON property `cost` @return [Google::Apis::RecommenderV1beta1::GoogleTypeMoney]

duration[RW]

Duration for which this cost applies. Corresponds to the JSON property `duration` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/recommender_v1beta1/classes.rb, line 39
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/recommender_v1beta1/classes.rb, line 44
def update!(**args)
  @cost = args[:cost] if args.key?(:cost)
  @duration = args[:duration] if args.key?(:duration)
end