LegacyUsageDetailProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.consumption.fluent.models.LegacyUsageDetailProperties

Implements

public final class LegacyUsageDetailProperties
implements JsonSerializable<LegacyUsageDetailProperties>

The properties of the legacy usage detail.

Constructor Summary

Constructor Description
LegacyUsageDetailProperties()

Creates an instance of LegacyUsageDetailProperties class.

Method Summary

Modifier and Type Method and Description
String accountName()

Get the accountName property: Account Name.

String accountOwnerId()

Get the accountOwnerId property: Account Owner Id.

String additionalInfo()

Get the additionalInfo property: Additional details of this usage item.

String benefitId()

Get the benefitId property: Unique identifier for the applicable benefit.

String benefitName()

Get the benefitName property: Name of the applicable benefit.

String billingAccountId()

Get the billingAccountId property: Billing Account identifier.

String billingAccountName()

Get the billingAccountName property: Billing Account Name.

String billingCurrency()

Get the billingCurrency property: Billing Currency.

OffsetDateTime billingPeriodEndDate()

Get the billingPeriodEndDate property: The billing period end date.

OffsetDateTime billingPeriodStartDate()

Get the billingPeriodStartDate property: The billing period start date.

String billingProfileId()

Get the billingProfileId property: Billing Profile identifier.

String billingProfileName()

Get the billingProfileName property: Billing Profile Name.

String chargeType()

Get the chargeType property: Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund.

String consumedService()

Get the consumedService property: Consumed service name.

BigDecimal cost()

Get the cost property: The amount of cost before tax.

String costCenter()

Get the costCenter property: The cost center of this department if it is a department and a cost center is provided.

OffsetDateTime date()

Get the date property: Date for the usage record.

BigDecimal effectivePrice()

Get the effectivePrice property: Effective Price that's charged for the usage.

String frequency()

Get the frequency property: Indicates how frequently this charge will occur.

static LegacyUsageDetailProperties fromJson(JsonReader jsonReader)

Reads an instance of LegacyUsageDetailProperties from the JsonReader.

String invoiceSection()

Get the invoiceSection property: Invoice Section Name.

Boolean isAzureCreditEligible()

Get the isAzureCreditEligible property: Is Azure Credit Eligible.

MeterDetailsResponse meterDetails()

Get the meterDetails property: The details about the meter.

UUID meterId()

Get the meterId property: The meter id (GUID).

String offerId()

Get the offerId property: Offer Id.

String partNumber()

Get the partNumber property: Part Number of the service used.

BigDecimal payGPrice()

Get the payGPrice property: Retail price for the resource.

String planName()

Get the planName property: Plan Name.

PricingModelType pricingModel()

Get the pricingModel property: Identifier that indicates how the meter is priced.

String product()

Get the product property: Product name for the consumed service or purchase.

String productOrderId()

Get the productOrderId property: Product Order Id.

String productOrderName()

Get the productOrderName property: Product Order Name.

String publisherName()

Get the publisherName property: Publisher Name.

String publisherType()

Get the publisherType property: Publisher Type.

BigDecimal quantity()

Get the quantity property: The usage quantity.

String reservationId()

Get the reservationId property: ARM resource id of the reservation.

String reservationName()

Get the reservationName property: User provided display name of the reservation.

String resourceGroup()

Get the resourceGroup property: Resource Group Name.

String resourceId()

Get the resourceId property: Unique identifier of the Azure Resource Manager usage detail resource.

String resourceLocation()

Get the resourceLocation property: Resource Location.

String resourceName()

Get the resourceName property: Resource Name.

String serviceInfo1()

Get the serviceInfo1 property: Service-specific metadata.

String serviceInfo2()

Get the serviceInfo2 property: Legacy field with optional service-specific metadata.

String subscriptionId()

Get the subscriptionId property: Subscription guid.

String subscriptionName()

Get the subscriptionName property: Subscription name.

String term()

Get the term property: Term (in months).

JsonWriter toJson(JsonWriter jsonWriter)
BigDecimal unitPrice()

Get the unitPrice property: Unit Price is the price applicable to you.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

LegacyUsageDetailProperties

public LegacyUsageDetailProperties()

Creates an instance of LegacyUsageDetailProperties class.

Method Details

accountName

public String accountName()

Get the accountName property: Account Name.

Returns:

the accountName value.

accountOwnerId

public String accountOwnerId()

Get the accountOwnerId property: Account Owner Id.

Returns:

the accountOwnerId 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.

benefitId

public String benefitId()

Get the benefitId property: Unique identifier for the applicable benefit.

Returns:

the benefitId value.

benefitName

public String benefitName()

Get the benefitName property: Name of the applicable benefit.

Returns:

the benefitName value.

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.

billingCurrency

public String billingCurrency()

Get the billingCurrency property: Billing Currency.

Returns:

the billingCurrency value.

billingPeriodEndDate

public OffsetDateTime billingPeriodEndDate()

Get the billingPeriodEndDate property: The billing period end date.

Returns:

the billingPeriodEndDate value.

billingPeriodStartDate

public OffsetDateTime billingPeriodStartDate()

Get the billingPeriodStartDate property: The billing period start date.

Returns:

the billingPeriodStartDate 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.

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.

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.

cost

public BigDecimal cost()

Get the cost property: The amount of cost before tax.

Returns:

the cost 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.

date

public OffsetDateTime date()

Get the date property: Date for the usage record.

Returns:

the date value.

effectivePrice

public BigDecimal effectivePrice()

Get the effectivePrice property: Effective Price that's charged for the usage.

Returns:

the effectivePrice 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.

fromJson

public static LegacyUsageDetailProperties fromJson(JsonReader jsonReader)

Reads an instance of LegacyUsageDetailProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of LegacyUsageDetailProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the LegacyUsageDetailProperties.

invoiceSection

public String invoiceSection()

Get the invoiceSection property: Invoice Section Name.

Returns:

the invoiceSection value.

isAzureCreditEligible

public Boolean isAzureCreditEligible()

Get the isAzureCreditEligible property: Is Azure Credit Eligible.

Returns:

the isAzureCreditEligible 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.

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.

offerId

public String offerId()

Get the offerId property: Offer Id. Ex: MS-AZR-0017P, MS-AZR-0148P.

Returns:

the offerId 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.

payGPrice

public BigDecimal payGPrice()

Get the payGPrice property: Retail price for the resource.

Returns:

the payGPrice value.

planName

public String planName()

Get the planName property: Plan Name.

Returns:

the planName value.

pricingModel

public PricingModelType pricingModel()

Get the pricingModel property: Identifier that indicates how the meter is priced.

Returns:

the pricingModel 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.

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.

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.

quantity

public BigDecimal quantity()

Get the quantity property: The usage quantity.

Returns:

the quantity 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.

resourceGroup

public String resourceGroup()

Get the resourceGroup property: Resource Group Name.

Returns:

the resourceGroup value.

resourceId

public String resourceId()

Get the resourceId property: Unique identifier of the Azure Resource Manager usage detail resource.

Returns:

the resourceId value.

resourceLocation

public String resourceLocation()

Get the resourceLocation property: Resource Location.

Returns:

the resourceLocation 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.

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.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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.

validate

public void validate()

Validates the instance.

Applies to