Class Invoice.LineItem

  • Enclosing class:
    Invoice

    public static class Invoice.LineItem
    extends java.lang.Object
    Represents a chargeable line on an invoice.
    • Constructor Summary

      Constructors 
      Constructor Description
      LineItem​(java.lang.String id, java.lang.String description, java.math.BigDecimal amount, java.lang.String plan, java.lang.String agent, java.time.ZonedDateTime addedAt)  
      LineItem​(java.lang.String id, java.lang.String description, java.math.BigDecimal amount, java.lang.String plan, java.lang.String agent, java.time.ZonedDateTime addedAt, java.time.ZonedDateTime startedAt, java.time.ZonedDateTime endedAt, com.yahoo.config.provision.ApplicationId applicationId, com.yahoo.config.provision.zone.ZoneId zoneId, java.math.BigDecimal cpuHours, java.math.BigDecimal memoryHours, java.math.BigDecimal diskHours, java.math.BigDecimal cpuCost, java.math.BigDecimal memoryCost, java.math.BigDecimal diskCost)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.time.ZonedDateTime addedAt()
      When was this line item added
      java.lang.String agent()
      Who created this line item
      java.math.BigDecimal amount()
      The dollar amount of this
      java.util.Optional<com.yahoo.config.provision.ApplicationId> applicationId()
      Optionally - what application is this line item about
      java.lang.String description()
      The string description of this - used for display purposes
      java.util.Optional<java.time.ZonedDateTime> endedAt()
      What time period is this line item for - time end
      boolean equals​(java.lang.Object o)  
      java.util.Optional<java.math.BigDecimal> getCpuCost()  
      java.util.Optional<java.math.BigDecimal> getCpuHours()  
      java.util.Optional<java.math.BigDecimal> getDiskCost()  
      java.util.Optional<java.math.BigDecimal> getDiskHours()  
      java.util.Optional<java.math.BigDecimal> getMemoryCost()  
      java.util.Optional<java.math.BigDecimal> getMemoryHours()  
      int hashCode()  
      java.lang.String id()
      The opaque ID of this
      java.lang.String plan()
      The plan used to calculate amount of this
      java.util.Optional<java.time.ZonedDateTime> startedAt()
      What time period is this line item for - time start
      java.lang.String toString()  
      java.util.Optional<com.yahoo.config.provision.zone.ZoneId> zoneId()
      Optionally - what zone deployment is this line item about
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LineItem

        public LineItem​(java.lang.String id,
                        java.lang.String description,
                        java.math.BigDecimal amount,
                        java.lang.String plan,
                        java.lang.String agent,
                        java.time.ZonedDateTime addedAt)
      • LineItem

        public LineItem​(java.lang.String id,
                        java.lang.String description,
                        java.math.BigDecimal amount,
                        java.lang.String plan,
                        java.lang.String agent,
                        java.time.ZonedDateTime addedAt,
                        java.time.ZonedDateTime startedAt,
                        java.time.ZonedDateTime endedAt,
                        com.yahoo.config.provision.ApplicationId applicationId,
                        com.yahoo.config.provision.zone.ZoneId zoneId,
                        java.math.BigDecimal cpuHours,
                        java.math.BigDecimal memoryHours,
                        java.math.BigDecimal diskHours,
                        java.math.BigDecimal cpuCost,
                        java.math.BigDecimal memoryCost,
                        java.math.BigDecimal diskCost)
    • Method Detail

      • id

        public java.lang.String id()
        The opaque ID of this
      • description

        public java.lang.String description()
        The string description of this - used for display purposes
      • amount

        public java.math.BigDecimal amount()
        The dollar amount of this
      • plan

        public java.lang.String plan()
        The plan used to calculate amount of this
      • agent

        public java.lang.String agent()
        Who created this line item
      • addedAt

        public java.time.ZonedDateTime addedAt()
        When was this line item added
      • startedAt

        public java.util.Optional<java.time.ZonedDateTime> startedAt()
        What time period is this line item for - time start
      • endedAt

        public java.util.Optional<java.time.ZonedDateTime> endedAt()
        What time period is this line item for - time end
      • applicationId

        public java.util.Optional<com.yahoo.config.provision.ApplicationId> applicationId()
        Optionally - what application is this line item about
      • zoneId

        public java.util.Optional<com.yahoo.config.provision.zone.ZoneId> zoneId()
        Optionally - what zone deployment is this line item about
      • getCpuHours

        public java.util.Optional<java.math.BigDecimal> getCpuHours()
      • getMemoryHours

        public java.util.Optional<java.math.BigDecimal> getMemoryHours()
      • getDiskHours

        public java.util.Optional<java.math.BigDecimal> getDiskHours()
      • getCpuCost

        public java.util.Optional<java.math.BigDecimal> getCpuCost()
      • getMemoryCost

        public java.util.Optional<java.math.BigDecimal> getMemoryCost()
      • getDiskCost

        public java.util.Optional<java.math.BigDecimal> getDiskCost()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object