Class ReturnOrderItemDetails
- java.lang.Object
-
- com.azure.resourcemanager.edgeorder.models.ReturnOrderItemDetails
-
public final class ReturnOrderItemDetails extends Object
Return order item request body.
-
-
Constructor Summary
Constructors Constructor Description ReturnOrderItemDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressProperties
returnAddress()
Get the returnAddress property: customer return address.String
returnReason()
Get the returnReason property: Return Reason.String
serviceTag()
Get the serviceTag property: Service tag (located on the bottom-right corner of the device).Boolean
shippingBoxRequired()
Get the shippingBoxRequired property: Shipping Box required.void
validate()
Validates the instance.ReturnOrderItemDetails
withReturnAddress(AddressProperties returnAddress)
Set the returnAddress property: customer return address.ReturnOrderItemDetails
withReturnReason(String returnReason)
Set the returnReason property: Return Reason.ReturnOrderItemDetails
withServiceTag(String serviceTag)
Set the serviceTag property: Service tag (located on the bottom-right corner of the device).ReturnOrderItemDetails
withShippingBoxRequired(Boolean shippingBoxRequired)
Set the shippingBoxRequired property: Shipping Box required.
-
-
-
Method Detail
-
returnAddress
public AddressProperties returnAddress()
Get the returnAddress property: customer return address.- Returns:
- the returnAddress value.
-
withReturnAddress
public ReturnOrderItemDetails withReturnAddress(AddressProperties returnAddress)
Set the returnAddress property: customer return address.- Parameters:
returnAddress
- the returnAddress value to set.- Returns:
- the ReturnOrderItemDetails object itself.
-
returnReason
public String returnReason()
Get the returnReason property: Return Reason.- Returns:
- the returnReason value.
-
withReturnReason
public ReturnOrderItemDetails withReturnReason(String returnReason)
Set the returnReason property: Return Reason.- Parameters:
returnReason
- the returnReason value to set.- Returns:
- the ReturnOrderItemDetails object itself.
-
serviceTag
public String serviceTag()
Get the serviceTag property: Service tag (located on the bottom-right corner of the device).- Returns:
- the serviceTag value.
-
withServiceTag
public ReturnOrderItemDetails withServiceTag(String serviceTag)
Set the serviceTag property: Service tag (located on the bottom-right corner of the device).- Parameters:
serviceTag
- the serviceTag value to set.- Returns:
- the ReturnOrderItemDetails object itself.
-
shippingBoxRequired
public Boolean shippingBoxRequired()
Get the shippingBoxRequired property: Shipping Box required.- Returns:
- the shippingBoxRequired value.
-
withShippingBoxRequired
public ReturnOrderItemDetails withShippingBoxRequired(Boolean shippingBoxRequired)
Set the shippingBoxRequired property: Shipping Box required.- Parameters:
shippingBoxRequired
- the shippingBoxRequired value to set.- Returns:
- the ReturnOrderItemDetails object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-