ModernUsageDetailProperties Class
- java.
lang. Object - com.
azure. resourcemanager. consumption. fluent. models. ModernUsageDetailProperties
- com.
Implements
public final class ModernUsageDetailProperties
implements JsonSerializable<ModernUsageDetailProperties>
The properties of the usage detail.
Constructor Summary
| Constructor | Description |
|---|---|
| ModernUsageDetailProperties() |
Creates an instance of Modern |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| 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 |
billingCurrencyCode()
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 |
| String |
costAllocationRuleName()
Get the cost |
| String |
costCenter()
Get the cost |
|
Big |
costInBillingCurrency()
Get the cost |
|
Big |
costInPricingCurrency()
Get the cost |
|
Big |
costInUsd()
Get the cost |
| String |
customerName()
Get the customer |
| String |
customerTenantId()
Get the customer |
|
Offset |
date()
Get the date property: Date for the usage record. |
|
Big |
effectivePrice()
Get the effective |
| String |
exchangeRate()
Get the exchange |
|
Offset |
exchangeRateDate()
Get the exchange |
|
Big |
exchangeRatePricingToBilling()
Get the exchange |
| String |
frequency()
Get the frequency property: Indicates how frequently this charge will occur. |
|
static
Modern |
fromJson(JsonReader jsonReader)
Reads an instance of Modern |
| String |
instanceName()
Get the instance |
| String |
invoiceId()
Get the invoice |
| String |
invoiceSectionId()
Get the invoice |
| String |
invoiceSectionName()
Get the invoice |
| Boolean |
isAzureCreditEligible()
Get the is |
|
Big |
marketPrice()
Get the market |
| String |
meterCategory()
Get the meter |
| UUID |
meterId()
Get the meter |
| String |
meterName()
Get the meter |
| String |
meterRegion()
Get the meter |
| String |
meterSubCategory()
Get the meter |
| String |
partnerEarnedCreditApplied()
Get the partner |
|
Big |
partnerEarnedCreditRate()
Get the partner |
| String |
partnerName()
Get the partner |
| String |
partnerTenantId()
Get the partner |
|
Big |
paygCostInBillingCurrency()
Get the payg |
|
Big |
paygCostInUsd()
Get the payg |
|
Big |
payGPrice()
Get the pay |
| String |
previousInvoiceId()
Get the previous |
| String |
pricingCurrencyCode()
Get the pricing |
|
Pricing |
pricingModel()
Get the pricing |
| String |
product()
Get the product property: Name of the product that has accrued charges by consumption or purchase as listed in the invoice. |
| String |
productIdentifier()
Get the product |
| String |
productOrderId()
Get the product |
| String |
productOrderName()
Get the product |
| String |
provider()
Get the provider property: Identifier for Product Category or Line Of Business, Ex - Azure, Microsoft 365, AWS e. |
| String |
publisherId()
Get the publisher |
| String |
publisherName()
Get the publisher |
| String |
publisherType()
Get the publisher |
|
Big |
quantity()
Get the quantity property: Measure the quantity purchased or consumed. |
| String |
resellerMpnId()
Get the reseller |
| String |
resellerName()
Get the reseller |
| String |
reservationId()
Get the reservation |
| String |
reservationName()
Get the reservation |
| String |
resourceGroup()
Get the resource |
| String |
resourceLocation()
Get the resource |
| String |
resourceLocationNormalized()
Get the resource |
| String |
serviceFamily()
Get the service |
| String |
serviceInfo1()
Get the service |
| String |
serviceInfo2()
Get the service |
|
Offset |
servicePeriodEndDate()
Get the service |
|
Offset |
servicePeriodStartDate()
Get the service |
| String |
subscriptionGuid()
Get the subscription |
| String |
subscriptionName()
Get the subscription |
| String |
term()
Get the term property: Term (in months). |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
unitOfMeasure()
Get the unit |
|
Big |
unitPrice()
Get the unit |
| void |
validate()
Validates the instance. |
Methods inherited from java.lang.Object
Constructor Details
ModernUsageDetailProperties
public ModernUsageDetailProperties()
Creates an instance of ModernUsageDetailProperties class.
Method Details
additionalInfo
public String additionalInfo()
Get the additionalInfo property: Additional details of this usage item. 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: Name of the Billing Account.
Returns:
billingCurrencyCode
public String billingCurrencyCode()
Get the billingCurrencyCode property: The currency defining the billed cost.
Returns:
billingPeriodEndDate
public OffsetDateTime billingPeriodEndDate()
Get the billingPeriodEndDate property: Billing Period End Date as in the invoice.
Returns:
billingPeriodStartDate
public OffsetDateTime billingPeriodStartDate()
Get the billingPeriodStartDate property: Billing Period Start Date as in the invoice.
Returns:
billingProfileId
public String billingProfileId()
Get the billingProfileId property: Identifier for the billing profile that groups costs across invoices in the a singular billing currency across across the customers who have onboarded the Microsoft customer agreement and the customers in CSP who have made entitlement purchases like SaaS, Marketplace, RI, etc.
Returns:
billingProfileName
public String billingProfileName()
Get the billingProfileName property: Name of the billing profile that groups costs across invoices in the a singular billing currency across across the customers who have onboarded the Microsoft customer agreement and the customers in CSP who have made entitlement purchases like SaaS, Marketplace, RI, etc.
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:
costAllocationRuleName
public String costAllocationRuleName()
Get the costAllocationRuleName property: Name for Cost Allocation Rule.
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:
costInBillingCurrency
public BigDecimal costInBillingCurrency()
Get the costInBillingCurrency property: ExtendedCost or blended cost before tax in billed currency.
Returns:
costInPricingCurrency
public BigDecimal costInPricingCurrency()
Get the costInPricingCurrency property: ExtendedCost or blended cost before tax in pricing currency to correlate with prices.
Returns:
costInUsd
public BigDecimal costInUsd()
Get the costInUsd property: Estimated extendedCost or blended cost before tax in USD.
Returns:
customerName
public String customerName()
Get the customerName property: Name of the customer's AAD tenant.
Returns:
customerTenantId
public String customerTenantId()
Get the customerTenantId property: Identifier of the customer's AAD tenant.
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:
exchangeRate
public String exchangeRate()
Get the exchangeRate property: Exchange rate used in conversion from pricing currency to billing currency.
Returns:
exchangeRateDate
public OffsetDateTime exchangeRateDate()
Get the exchangeRateDate property: Date on which exchange rate used in conversion from pricing currency to billing currency.
Returns:
exchangeRatePricingToBilling
public BigDecimal exchangeRatePricingToBilling()
Get the exchangeRatePricingToBilling property: Exchange Rate from pricing currency to billing currency.
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 ModernUsageDetailProperties fromJson(JsonReader jsonReader)
Reads an instance of ModernUsageDetailProperties from the JsonReader.
Parameters:
Returns:
Throws:
instanceName
public String instanceName()
Get the instanceName property: Instance Name.
Returns:
invoiceId
public String invoiceId()
Get the invoiceId property: Invoice ID as on the invoice where the specific transaction appears.
Returns:
invoiceSectionId
public String invoiceSectionId()
Get the invoiceSectionId property: Identifier of the project that is being charged in the invoice. Not applicable for Microsoft Customer Agreements onboarded by partners.
Returns:
invoiceSectionName
public String invoiceSectionName()
Get the invoiceSectionName property: Name of the project that is being charged in the invoice. Not applicable for Microsoft Customer Agreements onboarded by partners.
Returns:
isAzureCreditEligible
public Boolean isAzureCreditEligible()
Get the isAzureCreditEligible property: Determines if the cost is eligible to be paid for using Azure credits.
Returns:
marketPrice
public BigDecimal marketPrice()
Get the marketPrice property: Market Price that's charged for the usage.
Returns:
meterCategory
public String meterCategory()
Get the meterCategory property: Identifies the top-level service for the usage.
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:
meterName
public String meterName()
Get the meterName property: Identifies the name of the meter against which consumption is measured.
Returns:
meterRegion
public String meterRegion()
Get the meterRegion property: Identifies the location of the datacenter for certain services that are priced based on datacenter location.
Returns:
meterSubCategory
public String meterSubCategory()
Get the meterSubCategory property: Defines the type or sub-category of Azure service that can affect the rate.
Returns:
partnerEarnedCreditApplied
public String partnerEarnedCreditApplied()
Get the partnerEarnedCreditApplied property: Flag to indicate if partner earned credit has been applied or not.
Returns:
partnerEarnedCreditRate
public BigDecimal partnerEarnedCreditRate()
Get the partnerEarnedCreditRate property: Rate of discount applied if there is a partner earned credit (PEC) based on partner admin link access.
Returns:
partnerName
public String partnerName()
Get the partnerName property: Name of the partner' AAD tenant.
Returns:
partnerTenantId
public String partnerTenantId()
Get the partnerTenantId property: Identifier for the partner's AAD tenant.
Returns:
paygCostInBillingCurrency
public BigDecimal paygCostInBillingCurrency()
Get the paygCostInBillingCurrency property: The amount of PayG cost before tax in billing currency.
Returns:
paygCostInUsd
public BigDecimal paygCostInUsd()
Get the paygCostInUsd property: The amount of PayG cost before tax in US Dollar currency.
Returns:
payGPrice
public BigDecimal payGPrice()
Get the payGPrice property: Retail price for the resource.
Returns:
previousInvoiceId
public String previousInvoiceId()
Get the previousInvoiceId property: Reference to an original invoice there is a refund (negative cost). This is populated only when there is a refund.
Returns:
pricingCurrencyCode
public String pricingCurrencyCode()
Get the pricingCurrencyCode property: Pricing Billing Currency.
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: Name of the product that has accrued charges by consumption or purchase as listed in the invoice. Not available for Marketplace.
Returns:
productIdentifier
public String productIdentifier()
Get the productIdentifier property: Identifier for the product that has accrued charges by consumption or purchase . This is the concatenated key of productId and SkuId in partner center.
Returns:
productOrderId
public String productOrderId()
Get the productOrderId property: The identifier for the asset or Azure plan name that the subscription belongs to. For example: Azure Plan. 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:
provider
public String provider()
Get the provider property: Identifier for Product Category or Line Of Business, Ex - Azure, Microsoft 365, AWS e.t.c.
Returns:
publisherId
public String publisherId()
Get the publisherId property: Publisher Id.
Returns:
publisherName
public String publisherName()
Get the publisherName property: Name of the publisher of the service including Microsoft or Third Party publishers.
Returns:
publisherType
public String publisherType()
Get the publisherType property: Type of publisher that identifies if the publisher is first party, third party reseller or third party agency.
Returns:
quantity
public BigDecimal quantity()
Get the quantity property: Measure the quantity purchased or consumed.The amount of the meter used during the billing period.
Returns:
resellerMpnId
public String resellerMpnId()
Get the resellerMpnId property: MPNId for the reseller associated with the subscription.
Returns:
resellerName
public String resellerName()
Get the resellerName property: Reseller Name.
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: Name of the Azure resource group used for cohesive lifecycle management of resources.
Returns:
resourceLocation
public String resourceLocation()
Get the resourceLocation property: Name of the resource location.
Returns:
resourceLocationNormalized
public String resourceLocationNormalized()
Get the resourceLocationNormalized property: Resource Location Normalized.
Returns:
serviceFamily
public String serviceFamily()
Get the serviceFamily property: List the service family for the product purchased or charged (Example: Storage ; Compute).
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:
servicePeriodEndDate
public OffsetDateTime servicePeriodEndDate()
Get the servicePeriodEndDate property: End date for the period when the service usage was rated for charges. The prices for Azure services are determined based on the rating period.
Returns:
servicePeriodStartDate
public OffsetDateTime servicePeriodStartDate()
Get the servicePeriodStartDate property: Start date for the rating period when the service usage was rated for charges. The prices for Azure services are determined for the rating period.
Returns:
subscriptionGuid
public String subscriptionGuid()
Get the subscriptionGuid property: Unique Microsoft generated identifier for the Azure Subscription.
Returns:
subscriptionName
public String subscriptionName()
Get the subscriptionName property: Name of the Azure Subscription.
Returns:
term
public String term()
Get the term property: Term (in months). Displays the term for the validity of the offer. For example. In case of reserved instances it displays 12 months for yearly term of reserved instance. For one time purchases or recurring purchases, the terms displays 1 month; This is not applicable for Azure consumption.
Returns:
toJson
unitOfMeasure
public String unitOfMeasure()
Get the unitOfMeasure property: Identifies the Unit that the service is charged in. For example, GB, hours, 10,000 s.
Returns:
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.