Class LegacyUsageDetail


  • public final class LegacyUsageDetail
    extends UsageDetailInner
    Legacy usage detail.
    • Constructor Detail

      • LegacyUsageDetail

        public LegacyUsageDetail()
    • Method Detail

      • billingAccountId

        public String billingAccountId()
        Get the billingAccountId property: Billing Account identifier.
        Returns:
        the billingAccountId value.
      • billingAccountName

        public String billingAccountName()
        Get the billingAccountName property: Billing Account Name.
        Returns:
        the billingAccountName value.
      • billingPeriodStartDate

        public OffsetDateTime billingPeriodStartDate()
        Get the billingPeriodStartDate property: The billing period start date.
        Returns:
        the billingPeriodStartDate value.
      • billingPeriodEndDate

        public OffsetDateTime billingPeriodEndDate()
        Get the billingPeriodEndDate property: The billing period end date.
        Returns:
        the billingPeriodEndDate value.
      • billingProfileId

        public String billingProfileId()
        Get the billingProfileId property: Billing Profile identifier.
        Returns:
        the billingProfileId value.
      • billingProfileName

        public String billingProfileName()
        Get the billingProfileName property: Billing Profile Name.
        Returns:
        the billingProfileName value.
      • accountOwnerId

        public String accountOwnerId()
        Get the accountOwnerId property: Account Owner Id.
        Returns:
        the accountOwnerId value.
      • accountName

        public String accountName()
        Get the accountName property: Account Name.
        Returns:
        the accountName value.
      • subscriptionId

        public String subscriptionId()
        Get the subscriptionId property: Subscription guid.
        Returns:
        the subscriptionId value.
      • subscriptionName

        public String subscriptionName()
        Get the subscriptionName property: Subscription name.
        Returns:
        the subscriptionName value.
      • date

        public OffsetDateTime date()
        Get the date property: Date for the usage record.
        Returns:
        the date value.
      • product

        public String product()
        Get the product property: Product name for the consumed service or purchase. Not available for Marketplace.
        Returns:
        the product value.
      • partNumber

        public String partNumber()
        Get the partNumber property: Part Number of the service used. Can be used to join with the price sheet. Not available for marketplace.
        Returns:
        the partNumber value.
      • meterId

        public UUID meterId()
        Get the meterId property: The meter id (GUID). Not available for marketplace. For reserved instance this represents the primary meter for which the reservation was purchased. For the actual VM Size for which the reservation is purchased see productOrderName.
        Returns:
        the meterId value.
      • meterDetails

        public MeterDetailsResponse meterDetails()
        Get the meterDetails property: The details about the meter. By default this is not populated, unless it's specified in $expand.
        Returns:
        the meterDetails value.
      • quantity

        public BigDecimal quantity()
        Get the quantity property: The usage quantity.
        Returns:
        the quantity value.
      • effectivePrice

        public BigDecimal effectivePrice()
        Get the effectivePrice property: Effective Price that's charged for the usage.
        Returns:
        the effectivePrice value.
      • cost

        public BigDecimal cost()
        Get the cost property: The amount of cost before tax.
        Returns:
        the cost value.
      • unitPrice

        public BigDecimal unitPrice()
        Get the unitPrice property: Unit Price is the price applicable to you. (your EA or other contract price).
        Returns:
        the unitPrice value.
      • billingCurrency

        public String billingCurrency()
        Get the billingCurrency property: Billing Currency.
        Returns:
        the billingCurrency value.
      • resourceLocation

        public String resourceLocation()
        Get the resourceLocation property: Resource Location.
        Returns:
        the resourceLocation value.
      • consumedService

        public String consumedService()
        Get the consumedService property: Consumed service name. Name of the azure resource provider that emits the usage or was purchased. This value is not provided for marketplace usage.
        Returns:
        the consumedService value.
      • resourceId

        public String resourceId()
        Get the resourceId property: Unique identifier of the Azure Resource Manager usage detail resource.
        Returns:
        the resourceId value.
      • resourceName

        public String resourceName()
        Get the resourceName property: Resource Name.
        Returns:
        the resourceName value.
      • serviceInfo1

        public String serviceInfo1()
        Get the serviceInfo1 property: Service-specific metadata.
        Returns:
        the serviceInfo1 value.
      • serviceInfo2

        public String serviceInfo2()
        Get the serviceInfo2 property: Legacy field with optional service-specific metadata.
        Returns:
        the serviceInfo2 value.
      • additionalInfo

        public String additionalInfo()
        Get the additionalInfo property: Additional details of this usage item. By default this is not populated, unless it's specified in $expand. Use this field to get usage line item specific details such as the actual VM Size (ServiceType) or the ratio in which the reservation discount is applied.
        Returns:
        the additionalInfo value.
      • invoiceSection

        public String invoiceSection()
        Get the invoiceSection property: Invoice Section Name.
        Returns:
        the invoiceSection value.
      • costCenter

        public String costCenter()
        Get the costCenter property: The cost center of this department if it is a department and a cost center is provided.
        Returns:
        the costCenter value.
      • resourceGroup

        public String resourceGroup()
        Get the resourceGroup property: Resource Group Name.
        Returns:
        the resourceGroup value.
      • reservationId

        public String reservationId()
        Get the reservationId property: ARM resource id of the reservation. Only applies to records relevant to reservations.
        Returns:
        the reservationId value.
      • reservationName

        public String reservationName()
        Get the reservationName property: User provided display name of the reservation. Last known name for a particular day is populated in the daily data. Only applies to records relevant to reservations.
        Returns:
        the reservationName value.
      • productOrderId

        public String productOrderId()
        Get the productOrderId property: Product Order Id. For reservations this is the Reservation Order ID.
        Returns:
        the productOrderId value.
      • productOrderName

        public String productOrderName()
        Get the productOrderName property: Product Order Name. For reservations this is the SKU that was purchased.
        Returns:
        the productOrderName value.
      • offerId

        public String offerId()
        Get the offerId property: Offer Id. Ex: MS-AZR-0017P, MS-AZR-0148P.
        Returns:
        the offerId value.
      • isAzureCreditEligible

        public Boolean isAzureCreditEligible()
        Get the isAzureCreditEligible property: Is Azure Credit Eligible.
        Returns:
        the isAzureCreditEligible value.
      • term

        public String term()
        Get the term property: Term (in months). 1 month for monthly recurring purchase. 12 months for a 1 year reservation. 36 months for a 3 year reservation.
        Returns:
        the term value.
      • publisherName

        public String publisherName()
        Get the publisherName property: Publisher Name.
        Returns:
        the publisherName value.
      • publisherType

        public String publisherType()
        Get the publisherType property: Publisher Type.
        Returns:
        the publisherType value.
      • planName

        public String planName()
        Get the planName property: Plan Name.
        Returns:
        the planName value.
      • chargeType

        public String chargeType()
        Get the chargeType property: Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund.
        Returns:
        the chargeType value.
      • frequency

        public String frequency()
        Get the frequency property: Indicates how frequently this charge will occur. OneTime for purchases which only happen once, Monthly for fees which recur every month, and UsageBased for charges based on how much a service is used.
        Returns:
        the frequency value.
      • payGPrice

        public BigDecimal payGPrice()
        Get the payGPrice property: Retail price for the resource.
        Returns:
        the payGPrice value.
      • pricingModel

        public PricingModelType pricingModel()
        Get the pricingModel property: Identifier that indicates how the meter is priced.
        Returns:
        the pricingModel value.