AddressValidationProperties Class

public final class AddressValidationProperties
extends ValidationInputResponse

The address validation output.

Constructor Summary

Constructor Description
AddressValidationProperties()

Creates an instance of AddressValidationProperties class.

Method Summary

Modifier and Type Method and Description
List<ShippingAddress> alternateAddresses()

Get the alternateAddresses property: List of alternate addresses.

CloudError error()

Get the error property: Error code and message of validation response.

static AddressValidationProperties fromJson(JsonReader jsonReader)

Reads an instance of AddressValidationProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AddressValidationStatus validationStatus()

Get the validationStatus property: The address validation status.

ValidationInputDiscriminator validationType()

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

Methods inherited from ValidationInputResponse

Methods inherited from java.lang.Object

Constructor Details

AddressValidationProperties

public AddressValidationProperties()

Creates an instance of AddressValidationProperties class.

Method Details

alternateAddresses

public List<ShippingAddress> alternateAddresses()

Get the alternateAddresses property: List of alternate addresses.

Returns:

the alternateAddresses value.

error

public CloudError error()

Get the error property: Error code and message of validation response.

Overrides:

AddressValidationProperties.error()

Returns:

the error value.

fromJson

public static AddressValidationProperties fromJson(JsonReader jsonReader)

Reads an instance of AddressValidationProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the AddressValidationProperties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AddressValidationProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

AddressValidationProperties.validate()

validationStatus

public AddressValidationStatus validationStatus()

Get the validationStatus property: The address validation status.

Returns:

the validationStatus value.

validationType

public ValidationInputDiscriminator validationType()

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

Overrides:

AddressValidationProperties.validationType()

Returns:

the validationType value.

Applies to