Class ShippingAddress


  • public final class ShippingAddress
    extends Object
    Shipping address where customer wishes to receive the device.
    • Constructor Detail

      • ShippingAddress

        public ShippingAddress()
    • Method Detail

      • streetAddress1

        public String streetAddress1()
        Get the streetAddress1 property: Street Address line 1.
        Returns:
        the streetAddress1 value.
      • withStreetAddress1

        public ShippingAddress withStreetAddress1​(String streetAddress1)
        Set the streetAddress1 property: Street Address line 1.
        Parameters:
        streetAddress1 - the streetAddress1 value to set.
        Returns:
        the ShippingAddress object itself.
      • streetAddress2

        public String streetAddress2()
        Get the streetAddress2 property: Street Address line 2.
        Returns:
        the streetAddress2 value.
      • withStreetAddress2

        public ShippingAddress withStreetAddress2​(String streetAddress2)
        Set the streetAddress2 property: Street Address line 2.
        Parameters:
        streetAddress2 - the streetAddress2 value to set.
        Returns:
        the ShippingAddress object itself.
      • streetAddress3

        public String streetAddress3()
        Get the streetAddress3 property: Street Address line 3.
        Returns:
        the streetAddress3 value.
      • withStreetAddress3

        public ShippingAddress withStreetAddress3​(String streetAddress3)
        Set the streetAddress3 property: Street Address line 3.
        Parameters:
        streetAddress3 - the streetAddress3 value to set.
        Returns:
        the ShippingAddress object itself.
      • city

        public String city()
        Get the city property: Name of the City.
        Returns:
        the city value.
      • withCity

        public ShippingAddress withCity​(String city)
        Set the city property: Name of the City.
        Parameters:
        city - the city value to set.
        Returns:
        the ShippingAddress object itself.
      • stateOrProvince

        public String stateOrProvince()
        Get the stateOrProvince property: Name of the State or Province.
        Returns:
        the stateOrProvince value.
      • withStateOrProvince

        public ShippingAddress withStateOrProvince​(String stateOrProvince)
        Set the stateOrProvince property: Name of the State or Province.
        Parameters:
        stateOrProvince - the stateOrProvince value to set.
        Returns:
        the ShippingAddress object itself.
      • country

        public String country()
        Get the country property: Name of the Country.
        Returns:
        the country value.
      • withCountry

        public ShippingAddress withCountry​(String country)
        Set the country property: Name of the Country.
        Parameters:
        country - the country value to set.
        Returns:
        the ShippingAddress object itself.
      • postalCode

        public String postalCode()
        Get the postalCode property: Postal code.
        Returns:
        the postalCode value.
      • withPostalCode

        public ShippingAddress withPostalCode​(String postalCode)
        Set the postalCode property: Postal code.
        Parameters:
        postalCode - the postalCode value to set.
        Returns:
        the ShippingAddress object itself.
      • zipExtendedCode

        public String zipExtendedCode()
        Get the zipExtendedCode property: Extended Zip Code.
        Returns:
        the zipExtendedCode value.
      • withZipExtendedCode

        public ShippingAddress withZipExtendedCode​(String zipExtendedCode)
        Set the zipExtendedCode property: Extended Zip Code.
        Parameters:
        zipExtendedCode - the zipExtendedCode value to set.
        Returns:
        the ShippingAddress object itself.
      • companyName

        public String companyName()
        Get the companyName property: Name of the company.
        Returns:
        the companyName value.
      • withCompanyName

        public ShippingAddress withCompanyName​(String companyName)
        Set the companyName property: Name of the company.
        Parameters:
        companyName - the companyName value to set.
        Returns:
        the ShippingAddress object itself.
      • addressType

        public AddressType addressType()
        Get the addressType property: Type of address.
        Returns:
        the addressType value.
      • withAddressType

        public ShippingAddress withAddressType​(AddressType addressType)
        Set the addressType property: Type of address.
        Parameters:
        addressType - the addressType value to set.
        Returns:
        the ShippingAddress object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.