Class RefundResponseProperties

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

public final class RefundResponseProperties extends Object implements com.azure.json.JsonSerializable<RefundResponseProperties>
The refund properties of reservation.
  • Constructor Details

    • RefundResponseProperties

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

    • sessionId

      public String sessionId()
      Get the sessionId property: Refund session identifier.
      Returns:
      the sessionId value.
    • withSessionId

      public RefundResponseProperties withSessionId(String sessionId)
      Set the sessionId property: Refund session identifier.
      Parameters:
      sessionId - the sessionId value to set.
      Returns:
      the RefundResponseProperties object itself.
    • quantity

      public Integer quantity()
      Get the quantity property: Quantity to be returned.
      Returns:
      the quantity value.
    • withQuantity

      public RefundResponseProperties withQuantity(Integer quantity)
      Set the quantity property: Quantity to be returned.
      Parameters:
      quantity - the quantity value to set.
      Returns:
      the RefundResponseProperties object itself.
    • billingRefundAmount

      public Price billingRefundAmount()
      Get the billingRefundAmount property: Pricing information containing the amount and the currency code.
      Returns:
      the billingRefundAmount value.
    • withBillingRefundAmount

      public RefundResponseProperties withBillingRefundAmount(Price billingRefundAmount)
      Set the billingRefundAmount property: Pricing information containing the amount and the currency code.
      Parameters:
      billingRefundAmount - the billingRefundAmount value to set.
      Returns:
      the RefundResponseProperties object itself.
    • pricingRefundAmount

      public Price pricingRefundAmount()
      Get the pricingRefundAmount property: Pricing information containing the amount and the currency code.
      Returns:
      the pricingRefundAmount value.
    • withPricingRefundAmount

      public RefundResponseProperties withPricingRefundAmount(Price pricingRefundAmount)
      Set the pricingRefundAmount property: Pricing information containing the amount and the currency code.
      Parameters:
      pricingRefundAmount - the pricingRefundAmount value to set.
      Returns:
      the RefundResponseProperties object itself.
    • policyResult

      public RefundPolicyResult policyResult()
      Get the policyResult property: Refund policy result.
      Returns:
      the policyResult value.
    • withPolicyResult

      public RefundResponseProperties withPolicyResult(RefundPolicyResult policyResult)
      Set the policyResult property: Refund policy result.
      Parameters:
      policyResult - the policyResult value to set.
      Returns:
      the RefundResponseProperties object itself.
    • billingInformation

      public RefundBillingInformation billingInformation()
      Get the billingInformation property: billing information.
      Returns:
      the billingInformation value.
    • withBillingInformation

      public RefundResponseProperties withBillingInformation(RefundBillingInformation billingInformation)
      Set the billingInformation property: billing information.
      Parameters:
      billingInformation - the billingInformation value to set.
      Returns:
      the RefundResponseProperties 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<RefundResponseProperties>
      Throws:
      IOException
    • fromJson

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