# ShippingAddressRequirements.Builder

public final class **ShippingAddressRequirements.Builder** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
Builder to create a `https://developers.google.com/android/reference/com/google/android/gms/wallet/ShippingAddressRequirements`.

### Public Method Summary

|---|---|
| [ShippingAddressRequirements.Builder](https://developers.google.com/android/reference/com/google/android/gms/wallet/ShippingAddressRequirements.Builder) | [addAllowedCountryCode](https://developers.google.com/android/reference/com/google/android/gms/wallet/ShippingAddressRequirements.Builder#addAllowedCountryCode(java.lang.String))([String](https://developer.android.com/reference/java/lang/String.html) allowedCountryCode) Adds a country code of the country to which shipping is allowed in this transaction. |
| [ShippingAddressRequirements.Builder](https://developers.google.com/android/reference/com/google/android/gms/wallet/ShippingAddressRequirements.Builder) | [addAllowedCountryCodes](https://developers.google.com/android/reference/com/google/android/gms/wallet/ShippingAddressRequirements.Builder#addAllowedCountryCodes(java.util.Collection<java.lang.String>))([Collection](https://developer.android.com/reference/java/util/Collection.html)\<[String](https://developer.android.com/reference/java/lang/String.html)\> allowedCountryCodes) Adds a collection of country codes of the countries to which shipping is allowed in this transaction. |
| [ShippingAddressRequirements](https://developers.google.com/android/reference/com/google/android/gms/wallet/ShippingAddressRequirements) | [build](https://developers.google.com/android/reference/com/google/android/gms/wallet/ShippingAddressRequirements.Builder#build())() Returns the actual `https://developers.google.com/android/reference/com/google/android/gms/wallet/ShippingAddressRequirements` created using the data passed to the Builder object. |

### Inherited Method Summary

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

## Public Methods

#### public [ShippingAddressRequirements.Builder](https://developers.google.com/android/reference/com/google/android/gms/wallet/ShippingAddressRequirements.Builder) **addAllowedCountryCode** ([String](https://developer.android.com/reference/java/lang/String.html) allowedCountryCode)

Adds a country code of the country to which shipping is allowed in this transaction.
If not specified here nor via `https://developers.google.com/android/reference/com/google/android/gms/wallet/ShippingAddressRequirements.Builder#addAllowedCountryCodes(java.util.Collection<java.lang.String>)`, all countries are considered to be
allowed.

##### Parameters

| allowedCountryCode | an ISO 3166-1 alpha-2 formatted country code (e.g., "US", "CA", "JP"). |
|---|---|

#### public [ShippingAddressRequirements.Builder](https://developers.google.com/android/reference/com/google/android/gms/wallet/ShippingAddressRequirements.Builder) **addAllowedCountryCodes** ([Collection](https://developer.android.com/reference/java/util/Collection.html)\<[String](https://developer.android.com/reference/java/lang/String.html)\> allowedCountryCodes)

Adds a collection of country codes of the countries to which shipping is allowed in
this transaction. If not specified here nor via `https://developers.google.com/android/reference/com/google/android/gms/wallet/ShippingAddressRequirements.Builder#addAllowedCountryCode(java.lang.String)`, all countries are considered to be
allowed.

##### Parameters

| allowedCountryCodes | a collection of ISO 3166-1 alpha-2 formatted country code (e.g., "US", "CA", "JP"). |
|---|---|

#### public [ShippingAddressRequirements](https://developers.google.com/android/reference/com/google/android/gms/wallet/ShippingAddressRequirements)
**build** ()

Returns the actual `https://developers.google.com/android/reference/com/google/android/gms/wallet/ShippingAddressRequirements`
created using the data passed to the Builder object.