ValidateAddress Class
- java.
lang. Object - com.
azure. resourcemanager. databox. models. ValidationInputRequest - com.
azure. resourcemanager. databox. models. ValidateAddress
- com.
- com.
public final class ValidateAddress
extends ValidationInputRequest
The requirements to validate customer address where the device needs to be shipped.
Constructor Summary
| Constructor | Description |
|---|---|
| ValidateAddress() |
Creates an instance of Validate |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Sku |
deviceType()
Get the device |
|
static
Validate |
fromJson(JsonReader jsonReader)
Reads an instance of Validate |
|
Shipping |
shippingAddress()
Get the shipping |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Transport |
transportPreferences()
Get the transport |
| void |
validate()
Validates the instance. |
|
Validation |
validationType()
Get the validation |
|
Validate |
withDeviceType(SkuName deviceType)
Set the device |
|
Validate |
withShippingAddress(ShippingAddress shippingAddress)
Set the shipping |
|
Validate |
withTransportPreferences(TransportPreferences transportPreferences)
Set the transport |
Methods inherited from ValidationInputRequest
Methods inherited from java.lang.Object
Constructor Details
ValidateAddress
public ValidateAddress()
Creates an instance of ValidateAddress class.
Method Details
deviceType
public SkuName deviceType()
Get the deviceType property: Device type to be used for the job.
Returns:
fromJson
public static ValidateAddress fromJson(JsonReader jsonReader)
Reads an instance of ValidateAddress from the JsonReader.
Parameters:
Returns:
Throws:
shippingAddress
public ShippingAddress shippingAddress()
Get the shippingAddress property: Shipping address of the customer.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ValidateAddress.toJson(JsonWriter jsonWriter)Parameters:
Throws:
transportPreferences
public TransportPreferences transportPreferences()
Get the transportPreferences property: Preferences related to the shipment logistics of the sku.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
ValidateAddress.validate()validationType
public ValidationInputDiscriminator validationType()
Get the validationType property: Identifies the type of validation request.
Overrides:
ValidateAddress.validationType()Returns:
withDeviceType
public ValidateAddress withDeviceType(SkuName deviceType)
Set the deviceType property: Device type to be used for the job.
Parameters:
Returns:
withShippingAddress
public ValidateAddress withShippingAddress(ShippingAddress shippingAddress)
Set the shippingAddress property: Shipping address of the customer.
Parameters:
Returns:
withTransportPreferences
public ValidateAddress withTransportPreferences(TransportPreferences transportPreferences)
Set the transportPreferences property: Preferences related to the shipment logistics of the sku.
Parameters:
Returns: