java.lang.Object
org.springframework.cloud.servicebroker.autoconfigure.web.Cost

public class Cost extends Object
Internal class for marshaling ServiceBrokerProperties configuration properties that describes a service offered by this broker.
Author:
Roy Clarkson
See Also:
  • Constructor Details

    • Cost

      public Cost()
  • Method Details

    • getAmount

      public Map<String,Double> getAmount()
    • setAmount

      public void setAmount(String amount, Double value)
      Set a single amount key-value pair.
      Parameters:
      amount - currency code
      value - currency amount
    • setAmount

      public void setAmount(Map<String,Double> amount)
    • getUnit

      public String getUnit()
    • setUnit

      public void setUnit(String unit)
    • toModel

      public Map<String,Object> toModel()
      Converts this object into its corresponding model.
      Returns:
      a Map model
      See Also: