Class ValidateAddress

java.lang.Object
com.azure.resourcemanager.databox.models.ValidationInputRequest
com.azure.resourcemanager.databox.models.ValidateAddress

public final class ValidateAddress extends ValidationInputRequest
The requirements to validate customer address where the device needs to be shipped.
  • Constructor Details

    • ValidateAddress

      public ValidateAddress()
      Creates an instance of ValidateAddress class.
  • Method Details

    • shippingAddress

      public ShippingAddress shippingAddress()
      Get the shippingAddress property: Shipping address of the customer.
      Returns:
      the shippingAddress value.
    • withShippingAddress

      public ValidateAddress withShippingAddress(ShippingAddress shippingAddress)
      Set the shippingAddress property: Shipping address of the customer.
      Parameters:
      shippingAddress - the shippingAddress value to set.
      Returns:
      the ValidateAddress object itself.
    • deviceType

      public SkuName deviceType()
      Get the deviceType property: Device type to be used for the job.
      Returns:
      the deviceType value.
    • withDeviceType

      public ValidateAddress withDeviceType(SkuName deviceType)
      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

      public TransportPreferences transportPreferences()
      Get the transportPreferences property: Preferences related to the shipment logistics of the sku.
      Returns:
      the transportPreferences value.
    • withTransportPreferences

      public ValidateAddress withTransportPreferences(TransportPreferences transportPreferences)
      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 class ValidationInputRequest
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.