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 Summary
ConstructorsConstructorDescriptionCreates an instance of RefundResponseProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the billingInformation property: billing information.Get the billingRefundAmount property: Pricing information containing the amount and the currency code.static RefundResponseProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of RefundResponseProperties from the JsonReader.Get the policyResult property: Refund policy result.Get the pricingRefundAmount property: Pricing information containing the amount and the currency code.quantity()
Get the quantity property: Quantity to be returned.Get the sessionId property: Refund session identifier.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withBillingInformation
(RefundBillingInformation billingInformation) Set the billingInformation property: billing information.withBillingRefundAmount
(Price billingRefundAmount) Set the billingRefundAmount property: Pricing information containing the amount and the currency code.withPolicyResult
(RefundPolicyResult policyResult) Set the policyResult property: Refund policy result.withPricingRefundAmount
(Price pricingRefundAmount) Set the pricingRefundAmount property: Pricing information containing the amount and the currency code.withQuantity
(Integer quantity) Set the quantity property: Quantity to be returned.withSessionId
(String sessionId) Set the sessionId property: Refund session identifier.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
-
RefundResponseProperties
public RefundResponseProperties()Creates an instance of RefundResponseProperties class.
-
-
Method Details
-
sessionId
Get the sessionId property: Refund session identifier.- Returns:
- the sessionId value.
-
withSessionId
Set the sessionId property: Refund session identifier.- Parameters:
sessionId
- the sessionId value to set.- Returns:
- the RefundResponseProperties object itself.
-
quantity
Get the quantity property: Quantity to be returned.- Returns:
- the quantity value.
-
withQuantity
Set the quantity property: Quantity to be returned.- Parameters:
quantity
- the quantity value to set.- Returns:
- the RefundResponseProperties object itself.
-
billingRefundAmount
Get the billingRefundAmount property: Pricing information containing the amount and the currency code.- Returns:
- the billingRefundAmount value.
-
withBillingRefundAmount
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
Get the pricingRefundAmount property: Pricing information containing the amount and the currency code.- Returns:
- the pricingRefundAmount value.
-
withPricingRefundAmount
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
Get the policyResult property: Refund policy result.- Returns:
- the policyResult value.
-
withPolicyResult
Set the policyResult property: Refund policy result.- Parameters:
policyResult
- the policyResult value to set.- Returns:
- the RefundResponseProperties object itself.
-
billingInformation
Get the billingInformation property: billing information.- Returns:
- the billingInformation value.
-
withBillingInformation
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
- Specified by:
toJson
in interfacecom.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.
-