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 Summary
ConstructorsConstructorDescriptionItemSummary(BigDecimal cpuUsage, BigDecimal ramUsage, BigDecimal diskUsage, BigDecimal gpuUsage, BigDecimal cpuCost, BigDecimal ramCost, BigDecimal diskCost, BigDecimal gpuCost) Creates an instance of aItemSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncpuCost()Returns the value of thecpuCostrecord component.cpuUsage()Returns the value of thecpuUsagerecord component.diskCost()Returns the value of thediskCostrecord component.Returns the value of thediskUsagerecord component.final booleanIndicates whether some other object is "equal to" this one.gpuCost()Returns the value of thegpuCostrecord component.gpuUsage()Returns the value of thegpuUsagerecord component.final inthashCode()Returns a hash code value for this object.ramCost()Returns the value of theramCostrecord component.ramUsage()Returns the value of theramUsagerecord component.final StringtoString()Returns a string representation of this record class.
-
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 aItemSummaryrecord class.- Parameters:
cpuUsage- the value for thecpuUsagerecord componentramUsage- the value for theramUsagerecord componentdiskUsage- the value for thediskUsagerecord componentgpuUsage- the value for thegpuUsagerecord componentcpuCost- the value for thecpuCostrecord componentramCost- the value for theramCostrecord componentdiskCost- the value for thediskCostrecord componentgpuCost- the value for thegpuCostrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
cpuUsage
Returns the value of thecpuUsagerecord component.- Returns:
- the value of the
cpuUsagerecord component
-
ramUsage
Returns the value of theramUsagerecord component.- Returns:
- the value of the
ramUsagerecord component
-
diskUsage
Returns the value of thediskUsagerecord component.- Returns:
- the value of the
diskUsagerecord component
-
gpuUsage
Returns the value of thegpuUsagerecord component.- Returns:
- the value of the
gpuUsagerecord component
-
cpuCost
Returns the value of thecpuCostrecord component.- Returns:
- the value of the
cpuCostrecord component
-
ramCost
Returns the value of theramCostrecord component.- Returns:
- the value of the
ramCostrecord component
-
diskCost
Returns the value of thediskCostrecord component.- Returns:
- the value of the
diskCostrecord component
-
gpuCost
Returns the value of thegpuCostrecord component.- Returns:
- the value of the
gpuCostrecord component
-