Class ValidateAddress
java.lang.Object
com.azure.resourcemanager.databox.models.ValidationInputRequest
com.azure.resourcemanager.databox.models.ValidateAddress
The requirements to validate customer address where the device needs to be shipped.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the deviceType property: Device type to be used for the job.Get the shippingAddress property: Shipping address of the customer.Get the transportPreferences property: Preferences related to the shipment logistics of the sku.void
validate()
Validates the instance.withDeviceType
(SkuName deviceType) Set the deviceType property: Device type to be used for the job.withShippingAddress
(ShippingAddress shippingAddress) Set the shippingAddress property: Shipping address of the customer.withTransportPreferences
(TransportPreferences transportPreferences) Set the transportPreferences property: Preferences related to the shipment logistics of the sku.
-
Constructor Details
-
ValidateAddress
public ValidateAddress()Creates an instance of ValidateAddress class.
-
-
Method Details
-
shippingAddress
Get the shippingAddress property: Shipping address of the customer.- Returns:
- the shippingAddress value.
-
withShippingAddress
Set the shippingAddress property: Shipping address of the customer.- Parameters:
shippingAddress
- the shippingAddress value to set.- Returns:
- the ValidateAddress object itself.
-
deviceType
Get the deviceType property: Device type to be used for the job.- Returns:
- the deviceType value.
-
withDeviceType
Set the deviceType property: Device type to be used for the job.- Parameters:
deviceType
- the deviceType value to set.- Returns:
- the ValidateAddress object itself.
-
transportPreferences
Get the transportPreferences property: Preferences related to the shipment logistics of the sku.- Returns:
- the transportPreferences value.
-
withTransportPreferences
Set the transportPreferences property: Preferences related to the shipment logistics of the sku.- Parameters:
transportPreferences
- the transportPreferences value to set.- Returns:
- the ValidateAddress object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classValidationInputRequest
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-