Class Bill.LineItem
java.lang.Object
com.yahoo.vespa.hosted.controller.api.integration.billing.Bill.LineItem
- Enclosing class:
- Bill
Represents a chargeable line on a bill.
-
Constructor Summary
ConstructorsConstructorDescriptionLineItem(String id, String description, BigDecimal amount, String plan, String agent, ZonedDateTime addedAt) LineItem(String id, String description, BigDecimal amount, String plan, String agent, ZonedDateTime addedAt, ZonedDateTime startedAt, ZonedDateTime endedAt, com.yahoo.config.provision.ApplicationId applicationId, com.yahoo.config.provision.zone.ZoneId zoneId, BigDecimal cpuHours, BigDecimal memoryHours, BigDecimal diskHours, BigDecimal cpuCost, BigDecimal memoryCost, BigDecimal diskCost, com.yahoo.config.provision.NodeResources.Architecture architecture, int majorVersion) -
Method Summary
Modifier and TypeMethodDescriptionaddedAt()When was this line item addedagent()Who created this line itemamount()The dollar amount of thisOptional<com.yahoo.config.provision.ApplicationId>Optionally - what application is this line item aboutThe string description of this - used for display purposesendedAt()What time period is this line item for - time endbooleanOptional<com.yahoo.config.provision.NodeResources.Architecture>intinthashCode()id()The opaque ID of thisplan()The plan used to calculate amount of thisWhat time period is this line item for - time starttoString()Optional<com.yahoo.config.provision.zone.ZoneId>zoneId()Optionally - what zone deployment is this line item about
-
Constructor Details
-
LineItem
public LineItem(String id, String description, BigDecimal amount, String plan, String agent, ZonedDateTime addedAt) -
LineItem
public LineItem(String id, String description, BigDecimal amount, String plan, String agent, ZonedDateTime addedAt, ZonedDateTime startedAt, ZonedDateTime endedAt, com.yahoo.config.provision.ApplicationId applicationId, com.yahoo.config.provision.zone.ZoneId zoneId, BigDecimal cpuHours, BigDecimal memoryHours, BigDecimal diskHours, BigDecimal cpuCost, BigDecimal memoryCost, BigDecimal diskCost, com.yahoo.config.provision.NodeResources.Architecture architecture, int majorVersion)
-
-
Method Details
-
id
The opaque ID of this -
description
The string description of this - used for display purposes -
amount
The dollar amount of this -
plan
The plan used to calculate amount of this -
agent
Who created this line item -
addedAt
When was this line item added -
startedAt
What time period is this line item for - time start -
endedAt
What time period is this line item for - time end -
applicationId
Optionally - what application is this line item about -
zoneId
Optionally - what zone deployment is this line item about -
getCpuHours
-
getMemoryHours
-
getDiskHours
-
getCpuCost
-
getMemoryCost
-
getDiskCost
-
getArchitecture
-
getMajorVersion
public int getMajorVersion() -
equals
-
hashCode
public int hashCode() -
toString
-