Class ShippingAddress.ShippingAddressBuilder

java.lang.Object
com.broadleafcommerce.shipping.domain.ShippingAddress.ShippingAddressBuilder
Enclosing class:
ShippingAddress

public static class ShippingAddress.ShippingAddressBuilder extends Object
  • Method Details

    • addressLine1

      public ShippingAddress.ShippingAddressBuilder addressLine1(String addressLine1)
      Primary address information, typically street name and building number.
      Parameters:
      addressLine1 - Primary address information, typically street name and building number.
      Returns:
      this.
    • addressLine2

      public ShippingAddress.ShippingAddressBuilder addressLine2(String addressLine2)
      Secondary address information, like apartment, suite, or unit number.
      Parameters:
      addressLine2 - Secondary address information, like apartment number or suite number.
      Returns:
      this.
    • addressLine3

      public ShippingAddress.ShippingAddressBuilder addressLine3(String addressLine3)
      Tertiary address information, typically for international addresses.
      Parameters:
      addressLine3 - Tertiary address information, typically for international addresses.
      Returns:
      this.
    • city

      The city, town or village of this address.
      Parameters:
      city - The city, town or village of this address.
      Returns:
      this.
    • county

      The county of this address.
      Parameters:
      county - The county of this address.
      Returns:
      this.
    • stateProvinceRegion

      public ShippingAddress.ShippingAddressBuilder stateProvinceRegion(String stateProvinceRegion)
      The state, province or region of this address.
      Parameters:
      stateProvinceRegion - The state, province or region of this address.
      Returns:
      this.
    • country

      The country for this address.
      Parameters:
      country - The country for this address.
      Returns:
      this.
    • postalCode

      public ShippingAddress.ShippingAddressBuilder postalCode(String postalCode)
      Postal code or ZIP code for this address.
      Parameters:
      postalCode - Postal code or ZIP code for this address.
      Returns:
      this.
    • build

      public ShippingAddress build()
    • toString

      public String toString()
      Overrides:
      toString in class Object