Class UpdatableAddress


  • public class UpdatableAddress
    extends Object
    UpdatableAddress
    • Constructor Detail

      • UpdatableAddress

        public UpdatableAddress()
    • Method Detail

      • city

        public UpdatableAddress city​(String city)
        The name of the city.
        Parameters:
        city -
        Returns:
        the current UpdatableAddress instance, allowing for method chaining
      • getCity

        public String getCity()
        The name of the city.
        Returns:
        city
      • setCity

        public void setCity​(String city)
        The name of the city.
        Parameters:
        city -
      • line1

        public UpdatableAddress line1​(String line1)
        The street address.
        Parameters:
        line1 -
        Returns:
        the current UpdatableAddress instance, allowing for method chaining
      • getLine1

        public String getLine1()
        The street address.
        Returns:
        line1
      • setLine1

        public void setLine1​(String line1)
        The street address.
        Parameters:
        line1 -
      • line2

        public UpdatableAddress line2​(String line2)
        Second address line.
        Parameters:
        line2 -
        Returns:
        the current UpdatableAddress instance, allowing for method chaining
      • getLine2

        public String getLine2()
        Second address line.
        Returns:
        line2
      • setLine2

        public void setLine2​(String line2)
        Second address line.
        Parameters:
        line2 -
      • line3

        public UpdatableAddress line3​(String line3)
        Third address line.
        Parameters:
        line3 -
        Returns:
        the current UpdatableAddress instance, allowing for method chaining
      • getLine3

        public String getLine3()
        Third address line.
        Returns:
        line3
      • setLine3

        public void setLine3​(String line3)
        Third address line.
        Parameters:
        line3 -
      • postalCode

        public UpdatableAddress postalCode​(String postalCode)
        The postal code.
        Parameters:
        postalCode -
        Returns:
        the current UpdatableAddress instance, allowing for method chaining
      • getPostalCode

        public String getPostalCode()
        The postal code.
        Returns:
        postalCode
      • setPostalCode

        public void setPostalCode​(String postalCode)
        The postal code.
        Parameters:
        postalCode -
      • stateOrProvince

        public UpdatableAddress stateOrProvince​(String stateOrProvince)
        The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States
        Parameters:
        stateOrProvince -
        Returns:
        the current UpdatableAddress instance, allowing for method chaining
      • getStateOrProvince

        public String getStateOrProvince()
        The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States
        Returns:
        stateOrProvince
      • setStateOrProvince

        public void setStateOrProvince​(String stateOrProvince)
        The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States
        Parameters:
        stateOrProvince -
      • equals

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

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

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

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