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 Summary
ConstructorsConstructorDescriptionCreates an instance of RefundPolicyResultProperty class. -
Method Summary
Modifier and TypeMethodDescriptionGet the consumedRefundsTotal property: Pricing information containing the amount and the currency code.static RefundPolicyResultProperty
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of RefundPolicyResultProperty from the JsonReader.Get the maxRefundLimit property: Pricing information containing the amount and the currency code.Get the policyErrors property: Refund Policy errors.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withConsumedRefundsTotal
(Price consumedRefundsTotal) Set the consumedRefundsTotal property: Pricing information containing the amount and the currency code.withMaxRefundLimit
(Price maxRefundLimit) Set the maxRefundLimit property: Pricing information containing the amount and the currency code.withPolicyErrors
(List<RefundPolicyError> policyErrors) Set the policyErrors property: Refund Policy errors.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RefundPolicyResultProperty
public RefundPolicyResultProperty()Creates an instance of RefundPolicyResultProperty class.
-
-
Method Details
-
consumedRefundsTotal
Get the consumedRefundsTotal property: Pricing information containing the amount and the currency code.- Returns:
- the consumedRefundsTotal value.
-
withConsumedRefundsTotal
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
Get the maxRefundLimit property: Pricing information containing the amount and the currency code.- Returns:
- the maxRefundLimit value.
-
withMaxRefundLimit
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
Get the policyErrors property: Refund Policy errors.- Returns:
- the policyErrors value.
-
withPolicyErrors
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
- Specified by:
toJson
in interfacecom.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.
-