Class AddressDetails
- java.lang.Object
-
- com.azure.resourcemanager.edgeorder.models.AddressDetails
-
public final class AddressDetails extends Object
Address details for an order item.
-
-
Constructor Summary
Constructors Constructor Description AddressDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressProperties
forwardAddress()
Get the forwardAddress property: Customer address and contact details.AddressProperties
returnAddress()
Get the returnAddress property: Return shipping address.void
validate()
Validates the instance.AddressDetails
withForwardAddress(AddressProperties forwardAddress)
Set the forwardAddress property: Customer address and contact details.
-
-
-
Method Detail
-
forwardAddress
public AddressProperties forwardAddress()
Get the forwardAddress property: Customer address and contact details. It should be address resource.- Returns:
- the forwardAddress value.
-
withForwardAddress
public AddressDetails withForwardAddress(AddressProperties forwardAddress)
Set the forwardAddress property: Customer address and contact details. It should be address resource.- Parameters:
forwardAddress
- the forwardAddress value to set.- Returns:
- the AddressDetails object itself.
-
returnAddress
public AddressProperties returnAddress()
Get the returnAddress property: Return shipping address.- Returns:
- the returnAddress value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-