Share via


ValidateAddress Class

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 ValidateAddress class.

Method Summary

Modifier and Type Method and Description
SkuName deviceType()

Get the deviceType property: Device type to be used for the job.

static ValidateAddress fromJson(JsonReader jsonReader)

Reads an instance of ValidateAddress from the JsonReader.

ShippingAddress shippingAddress()

Get the shippingAddress property: Shipping address of the customer.

JsonWriter toJson(JsonWriter jsonWriter)
TransportPreferences transportPreferences()

Get the transportPreferences property: Preferences related to the shipment logistics of the sku.

void validate()

Validates the instance.

ValidationInputDiscriminator validationType()

Get the validationType property: Identifies the type of validation request.

ValidateAddress withDeviceType(SkuName deviceType)

Set the deviceType property: Device type to be used for the job.

ValidateAddress withShippingAddress(ShippingAddress shippingAddress)

Set the shippingAddress property: Shipping address of the customer.

ValidateAddress withTransportPreferences(TransportPreferences transportPreferences)

Set the transportPreferences property: Preferences related to the shipment logistics of the sku.

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:

the deviceType value.

fromJson

public static ValidateAddress fromJson(JsonReader jsonReader)

Reads an instance of ValidateAddress from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ValidateAddress if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

shippingAddress

public ShippingAddress shippingAddress()

Get the shippingAddress property: Shipping address of the customer.

Returns:

the shippingAddress value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ValidateAddress.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

transportPreferences

public TransportPreferences transportPreferences()

Get the transportPreferences property: Preferences related to the shipment logistics of the sku.

Returns:

the transportPreferences value.

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:

the validationType 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.

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.

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.

Applies to