Class CalculatePriceResponseProperties

java.lang.Object
com.azure.resourcemanager.reservations.models.CalculatePriceResponseProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<CalculatePriceResponseProperties>

public final class CalculatePriceResponseProperties extends Object implements com.azure.json.JsonSerializable<CalculatePriceResponseProperties>
Properties for calculate price response.
  • Constructor Details

    • CalculatePriceResponseProperties

      public CalculatePriceResponseProperties()
      Creates an instance of CalculatePriceResponseProperties class.
  • Method Details

    • billingCurrencyTotal

      Get the billingCurrencyTotal property: Currency and amount that customer will be charged in customer's local currency. Tax is not included.
      Returns:
      the billingCurrencyTotal value.
    • withBillingCurrencyTotal

      public CalculatePriceResponseProperties withBillingCurrencyTotal(CalculatePriceResponsePropertiesBillingCurrencyTotal billingCurrencyTotal)
      Set the billingCurrencyTotal property: Currency and amount that customer will be charged in customer's local currency. Tax is not included.
      Parameters:
      billingCurrencyTotal - the billingCurrencyTotal value to set.
      Returns:
      the CalculatePriceResponseProperties object itself.
    • netTotal

      public Double netTotal()
      Get the netTotal property: Net total amount in pricing currency.
      Returns:
      the netTotal value.
    • withNetTotal

      public CalculatePriceResponseProperties withNetTotal(Double netTotal)
      Set the netTotal property: Net total amount in pricing currency.
      Parameters:
      netTotal - the netTotal value to set.
      Returns:
      the CalculatePriceResponseProperties object itself.
    • taxTotal

      public Double taxTotal()
      Get the taxTotal property: Tax amount in pricing currency.
      Returns:
      the taxTotal value.
    • withTaxTotal

      public CalculatePriceResponseProperties withTaxTotal(Double taxTotal)
      Set the taxTotal property: Tax amount in pricing currency.
      Parameters:
      taxTotal - the taxTotal value to set.
      Returns:
      the CalculatePriceResponseProperties object itself.
    • grandTotal

      public Double grandTotal()
      Get the grandTotal property: Total amount in pricing currency.
      Returns:
      the grandTotal value.
    • withGrandTotal

      public CalculatePriceResponseProperties withGrandTotal(Double grandTotal)
      Set the grandTotal property: Total amount in pricing currency.
      Parameters:
      grandTotal - the grandTotal value to set.
      Returns:
      the CalculatePriceResponseProperties object itself.
    • isTaxIncluded

      public Boolean isTaxIncluded()
      Get the isTaxIncluded property: Whether or not tax is included in grand total.
      Returns:
      the isTaxIncluded value.
    • withIsTaxIncluded

      public CalculatePriceResponseProperties withIsTaxIncluded(Boolean isTaxIncluded)
      Set the isTaxIncluded property: Whether or not tax is included in grand total.
      Parameters:
      isTaxIncluded - the isTaxIncluded value to set.
      Returns:
      the CalculatePriceResponseProperties object itself.
    • isBillingPartnerManaged

      public Boolean isBillingPartnerManaged()
      Get the isBillingPartnerManaged property: True if billing is managed by Microsoft Partner. Used only for CSP accounts.
      Returns:
      the isBillingPartnerManaged value.
    • withIsBillingPartnerManaged

      public CalculatePriceResponseProperties withIsBillingPartnerManaged(Boolean isBillingPartnerManaged)
      Set the isBillingPartnerManaged property: True if billing is managed by Microsoft Partner. Used only for CSP accounts.
      Parameters:
      isBillingPartnerManaged - the isBillingPartnerManaged value to set.
      Returns:
      the CalculatePriceResponseProperties object itself.
    • reservationOrderId

      public String reservationOrderId()
      Get the reservationOrderId property: GUID that represents reservation order that can be placed after calculating price.
      Returns:
      the reservationOrderId value.
    • withReservationOrderId

      public CalculatePriceResponseProperties withReservationOrderId(String reservationOrderId)
      Set the reservationOrderId property: GUID that represents reservation order that can be placed after calculating price.
      Parameters:
      reservationOrderId - the reservationOrderId value to set.
      Returns:
      the CalculatePriceResponseProperties object itself.
    • skuTitle

      public String skuTitle()
      Get the skuTitle property: Title of sku that is being purchased.
      Returns:
      the skuTitle value.
    • withSkuTitle

      public CalculatePriceResponseProperties withSkuTitle(String skuTitle)
      Set the skuTitle property: Title of sku that is being purchased.
      Parameters:
      skuTitle - the skuTitle value to set.
      Returns:
      the CalculatePriceResponseProperties object itself.
    • skuDescription

      public String skuDescription()
      Get the skuDescription property: Description of sku that is being purchased.
      Returns:
      the skuDescription value.
    • withSkuDescription

      public CalculatePriceResponseProperties withSkuDescription(String skuDescription)
      Set the skuDescription property: Description of sku that is being purchased.
      Parameters:
      skuDescription - the skuDescription value to set.
      Returns:
      the CalculatePriceResponseProperties object itself.
    • pricingCurrencyTotal

      Get the pricingCurrencyTotal property: Amount that Microsoft uses for record. Used during refund for calculating refund limit. Tax is not included.
      Returns:
      the pricingCurrencyTotal value.
    • withPricingCurrencyTotal

      public CalculatePriceResponseProperties withPricingCurrencyTotal(CalculatePriceResponsePropertiesPricingCurrencyTotal pricingCurrencyTotal)
      Set the pricingCurrencyTotal property: Amount that Microsoft uses for record. Used during refund for calculating refund limit. Tax is not included.
      Parameters:
      pricingCurrencyTotal - the pricingCurrencyTotal value to set.
      Returns:
      the CalculatePriceResponseProperties object itself.
    • paymentSchedule

      public List<PaymentDetail> paymentSchedule()
      Get the paymentSchedule property: The paymentSchedule property.
      Returns:
      the paymentSchedule value.
    • withPaymentSchedule

      public CalculatePriceResponseProperties withPaymentSchedule(List<PaymentDetail> paymentSchedule)
      Set the paymentSchedule property: The paymentSchedule property.
      Parameters:
      paymentSchedule - the paymentSchedule value to set.
      Returns:
      the CalculatePriceResponseProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<CalculatePriceResponseProperties>
      Throws:
      IOException
    • fromJson

      public static CalculatePriceResponseProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CalculatePriceResponseProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CalculatePriceResponseProperties 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 CalculatePriceResponseProperties.