Class Address


  • public class Address
    extends Object
    Address
    • Constructor Detail

      • Address

        public Address()
    • Method Detail

      • city

        public Address city​(String city)
        city
        Parameters:
        city -
        Returns:
        the current Address instance, allowing for method chaining
      • getCity

        public String getCity()
        city
        Returns:
        city
      • setCity

        public void setCity​(String city)
        city
        Parameters:
        city -
      • countryCode

        public Address countryCode​(String countryCode)
        countryCode
        Parameters:
        countryCode -
        Returns:
        the current Address instance, allowing for method chaining
      • getCountryCode

        public String getCountryCode()
        countryCode
        Returns:
        countryCode
      • setCountryCode

        public void setCountryCode​(String countryCode)
        countryCode
        Parameters:
        countryCode -
      • postalCode

        public Address postalCode​(String postalCode)
        postalCode
        Parameters:
        postalCode -
        Returns:
        the current Address instance, allowing for method chaining
      • getPostalCode

        public String getPostalCode()
        postalCode
        Returns:
        postalCode
      • setPostalCode

        public void setPostalCode​(String postalCode)
        postalCode
        Parameters:
        postalCode -
      • stateOrProvince

        public Address stateOrProvince​(String stateOrProvince)
        stateOrProvince
        Parameters:
        stateOrProvince -
        Returns:
        the current Address instance, allowing for method chaining
      • getStateOrProvince

        public String getStateOrProvince()
        stateOrProvince
        Returns:
        stateOrProvince
      • setStateOrProvince

        public void setStateOrProvince​(String stateOrProvince)
        stateOrProvince
        Parameters:
        stateOrProvince -
      • streetAddress

        public Address streetAddress​(String streetAddress)
        streetAddress
        Parameters:
        streetAddress -
        Returns:
        the current Address instance, allowing for method chaining
      • getStreetAddress

        public String getStreetAddress()
        streetAddress
        Returns:
        streetAddress
      • setStreetAddress

        public void setStreetAddress​(String streetAddress)
        streetAddress
        Parameters:
        streetAddress -
      • streetAddress2

        public Address streetAddress2​(String streetAddress2)
        streetAddress2
        Parameters:
        streetAddress2 -
        Returns:
        the current Address instance, allowing for method chaining
      • getStreetAddress2

        public String getStreetAddress2()
        streetAddress2
        Returns:
        streetAddress2
      • setStreetAddress2

        public void setStreetAddress2​(String streetAddress2)
        streetAddress2
        Parameters:
        streetAddress2 -
      • equals

        public boolean equals​(Object o)
        Return true if this Address object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static Address fromJson​(String jsonString)
                                throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of Address given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of Address
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to Address
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of Address to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException