Class RefundPolicyResultProperty

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

public final class RefundPolicyResultProperty extends Object implements com.azure.json.JsonSerializable<RefundPolicyResultProperty>
Refund policy result property.
  • Constructor Details

    • RefundPolicyResultProperty

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

    • consumedRefundsTotal

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

      public RefundPolicyResultProperty withConsumedRefundsTotal(Price consumedRefundsTotal)
      Set the consumedRefundsTotal property: Pricing information containing the amount and the currency code.
      Parameters:
      consumedRefundsTotal - the consumedRefundsTotal value to set.
      Returns:
      the RefundPolicyResultProperty object itself.
    • maxRefundLimit

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

      public RefundPolicyResultProperty withMaxRefundLimit(Price maxRefundLimit)
      Set the maxRefundLimit property: Pricing information containing the amount and the currency code.
      Parameters:
      maxRefundLimit - the maxRefundLimit value to set.
      Returns:
      the RefundPolicyResultProperty object itself.
    • policyErrors

      public List<RefundPolicyError> policyErrors()
      Get the policyErrors property: Refund Policy errors.
      Returns:
      the policyErrors value.
    • withPolicyErrors

      public RefundPolicyResultProperty withPolicyErrors(List<RefundPolicyError> policyErrors)
      Set the policyErrors property: Refund Policy errors.
      Parameters:
      policyErrors - the policyErrors value to set.
      Returns:
      the RefundPolicyResultProperty 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<RefundPolicyResultProperty>
      Throws:
      IOException
    • fromJson

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