LegacyUsageDetailProperties Class
- java.
lang. Object - com.
azure. resourcemanager. consumption. fluent. models. LegacyUsageDetailProperties
- com.
Implements
public final class LegacyUsageDetailProperties
implements JsonSerializable<LegacyUsageDetailProperties>
The properties of the legacy usage detail.
Constructor Summary
| Constructor | Description |
|---|---|
| LegacyUsageDetailProperties() |
Creates an instance of Legacy |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
accountName()
Get the account |
| String |
accountOwnerId()
Get the account |
| String |
additionalInfo()
Get the additional |
| String |
benefitId()
Get the benefit |
| String |
benefitName()
Get the benefit |
| String |
billingAccountId()
Get the billing |
| String |
billingAccountName()
Get the billing |
| String |
billingCurrency()
Get the billing |
|
Offset |
billingPeriodEndDate()
Get the billing |
|
Offset |
billingPeriodStartDate()
Get the billing |
| String |
billingProfileId()
Get the billing |
| String |
billingProfileName()
Get the billing |
| String |
chargeType()
Get the charge |
| String |
consumedService()
Get the consumed |
|
Big |
cost()
Get the cost property: The amount of cost before tax. |
| String |
costCenter()
Get the cost |
|
Offset |
date()
Get the date property: Date for the usage record. |
|
Big |
effectivePrice()
Get the effective |
| String |
frequency()
Get the frequency property: Indicates how frequently this charge will occur. |
|
static
Legacy |
fromJson(JsonReader jsonReader)
Reads an instance of Legacy |
| String |
invoiceSection()
Get the invoice |
| Boolean |
isAzureCreditEligible()
Get the is |
|
Meter |
meterDetails()
Get the meter |
| UUID |
meterId()
Get the meter |
| String |
offerId()
Get the offer |
| String |
partNumber()
Get the part |
|
Big |
payGPrice()
Get the pay |
| String |
planName()
Get the plan |
|
Pricing |
pricingModel()
Get the pricing |
| String |
product()
Get the product property: Product name for the consumed service or purchase. |
| String |
productOrderId()
Get the product |
| String |
productOrderName()
Get the product |
| String |
publisherName()
Get the publisher |
| String |
publisherType()
Get the publisher |
|
Big |
quantity()
Get the quantity property: The usage quantity. |
| String |
reservationId()
Get the reservation |
| String |
reservationName()
Get the reservation |
| String |
resourceGroup()
Get the resource |
| String |
resourceId()
Get the resource |
| String |
resourceLocation()
Get the resource |
| String |
resourceName()
Get the resource |
| String |
serviceInfo1()
Get the service |
| String |
serviceInfo2()
Get the service |
| String |
subscriptionId()
Get the subscription |
| String |
subscriptionName()
Get the subscription |
| String |
term()
Get the term property: Term (in months). |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Big |
unitPrice()
Get the unit |
| 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:
accountOwnerId
public String accountOwnerId()
Get the accountOwnerId property: Account Owner Id.
Returns:
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:
benefitId
public String benefitId()
Get the benefitId property: Unique identifier for the applicable benefit.
Returns:
benefitName
public String benefitName()
Get the benefitName property: Name of the applicable benefit.
Returns:
billingAccountId
public String billingAccountId()
Get the billingAccountId property: Billing Account identifier.
Returns:
billingAccountName
public String billingAccountName()
Get the billingAccountName property: Billing Account Name.
Returns:
billingCurrency
public String billingCurrency()
Get the billingCurrency property: Billing Currency.
Returns:
billingPeriodEndDate
public OffsetDateTime billingPeriodEndDate()
Get the billingPeriodEndDate property: The billing period end date.
Returns:
billingPeriodStartDate
public OffsetDateTime billingPeriodStartDate()
Get the billingPeriodStartDate property: The billing period start date.
Returns:
billingProfileId
public String billingProfileId()
Get the billingProfileId property: Billing Profile identifier.
Returns:
billingProfileName
public String billingProfileName()
Get the billingProfileName property: Billing Profile Name.
Returns:
chargeType
public String chargeType()
Get the chargeType property: Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund.
Returns:
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:
cost
public BigDecimal cost()
Get the cost property: The amount of cost before tax.
Returns:
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:
date
public OffsetDateTime date()
Get the date property: Date for the usage record.
Returns:
effectivePrice
public BigDecimal effectivePrice()
Get the effectivePrice property: Effective Price that's charged for the usage.
Returns:
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:
fromJson
public static LegacyUsageDetailProperties fromJson(JsonReader jsonReader)
Reads an instance of LegacyUsageDetailProperties from the JsonReader.
Parameters:
Returns:
Throws:
invoiceSection
public String invoiceSection()
Get the invoiceSection property: Invoice Section Name.
Returns:
isAzureCreditEligible
public Boolean isAzureCreditEligible()
Get the isAzureCreditEligible property: Is Azure Credit Eligible.
Returns:
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:
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:
offerId
public String offerId()
Get the offerId property: Offer Id. Ex: MS-AZR-0017P, MS-AZR-0148P.
Returns:
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:
payGPrice
public BigDecimal payGPrice()
Get the payGPrice property: Retail price for the resource.
Returns:
planName
public String planName()
Get the planName property: Plan Name.
Returns:
pricingModel
public PricingModelType pricingModel()
Get the pricingModel property: Identifier that indicates how the meter is priced.
Returns:
product
public String product()
Get the product property: Product name for the consumed service or purchase. Not available for Marketplace.
Returns:
productOrderId
public String productOrderId()
Get the productOrderId property: Product Order Id. For reservations this is the Reservation Order ID.
Returns:
productOrderName
public String productOrderName()
Get the productOrderName property: Product Order Name. For reservations this is the SKU that was purchased.
Returns:
publisherName
public String publisherName()
Get the publisherName property: Publisher Name.
Returns:
publisherType
public String publisherType()
Get the publisherType property: Publisher Type.
Returns:
quantity
public BigDecimal quantity()
Get the quantity property: The usage quantity.
Returns:
reservationId
public String reservationId()
Get the reservationId property: ARM resource id of the reservation. Only applies to records relevant to reservations.
Returns:
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:
resourceGroup
public String resourceGroup()
Get the resourceGroup property: Resource Group Name.
Returns:
resourceId
public String resourceId()
Get the resourceId property: Unique identifier of the Azure Resource Manager usage detail resource.
Returns:
resourceLocation
public String resourceLocation()
Get the resourceLocation property: Resource Location.
Returns:
resourceName
public String resourceName()
Get the resourceName property: Resource Name.
Returns:
serviceInfo1
public String serviceInfo1()
Get the serviceInfo1 property: Service-specific metadata.
Returns:
serviceInfo2
public String serviceInfo2()
Get the serviceInfo2 property: Legacy field with optional service-specific metadata.
Returns:
subscriptionId
public String subscriptionId()
Get the subscriptionId property: Subscription guid.
Returns:
subscriptionName
public String subscriptionName()
Get the subscriptionName property: Subscription name.
Returns:
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:
toJson
unitPrice
public BigDecimal unitPrice()
Get the unitPrice property: Unit Price is the price applicable to you. (your EA or other contract price).
Returns:
validate
public void validate()
Validates the instance.