Record Class Bill.ItemSummary

java.lang.Object
java.lang.Record
com.yahoo.vespa.hosted.controller.api.integration.billing.Bill.ItemSummary
Enclosing class:
Bill

public static record Bill.ItemSummary(BigDecimal cpuUsage, BigDecimal ramUsage, BigDecimal diskUsage, BigDecimal gpuUsage, BigDecimal cpuCost, BigDecimal ramCost, BigDecimal diskCost, BigDecimal gpuCost) extends Record
  • Constructor Details

    • ItemSummary

      public ItemSummary(BigDecimal cpuUsage, BigDecimal ramUsage, BigDecimal diskUsage, BigDecimal gpuUsage, BigDecimal cpuCost, BigDecimal ramCost, BigDecimal diskCost, BigDecimal gpuCost)
      Creates an instance of a ItemSummary record class.
      Parameters:
      cpuUsage - the value for the cpuUsage record component
      ramUsage - the value for the ramUsage record component
      diskUsage - the value for the diskUsage record component
      gpuUsage - the value for the gpuUsage record component
      cpuCost - the value for the cpuCost record component
      ramCost - the value for the ramCost record component
      diskCost - the value for the diskCost record component
      gpuCost - the value for the gpuCost record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • cpuUsage

      public BigDecimal cpuUsage()
      Returns the value of the cpuUsage record component.
      Returns:
      the value of the cpuUsage record component
    • ramUsage

      public BigDecimal ramUsage()
      Returns the value of the ramUsage record component.
      Returns:
      the value of the ramUsage record component
    • diskUsage

      public BigDecimal diskUsage()
      Returns the value of the diskUsage record component.
      Returns:
      the value of the diskUsage record component
    • gpuUsage

      public BigDecimal gpuUsage()
      Returns the value of the gpuUsage record component.
      Returns:
      the value of the gpuUsage record component
    • cpuCost

      public BigDecimal cpuCost()
      Returns the value of the cpuCost record component.
      Returns:
      the value of the cpuCost record component
    • ramCost

      public BigDecimal ramCost()
      Returns the value of the ramCost record component.
      Returns:
      the value of the ramCost record component
    • diskCost

      public BigDecimal diskCost()
      Returns the value of the diskCost record component.
      Returns:
      the value of the diskCost record component
    • gpuCost

      public BigDecimal gpuCost()
      Returns the value of the gpuCost record component.
      Returns:
      the value of the gpuCost record component