Class Address


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.7.0")
    public class Address
    extends Object
    Address
    • Constructor Detail

      • Address

        public Address()
    • Method Detail

      • getLine1

        @Nullable
        public String getLine1()
        Address line 1
        Returns:
        line1
      • setLine1

        public void setLine1​(String line1)
      • getLine2

        @Nullable
        public String getLine2()
        Address line 2
        Returns:
        line2
      • setLine2

        public void setLine2​(String line2)
      • setCity

        public void setCity​(String city)
      • setState

        public void setState​(String state)
      • getCountry

        @Nonnull
        public String getCountry()
        Country (ISO 3166)
        Returns:
        country
      • setCountry

        public void setCountry​(String country)
      • getPostalCode

        @Nullable
        public String getPostalCode()
        Postal code
        Returns:
        postalCode
      • setPostalCode

        public void setPostalCode​(String postalCode)
      • hashCode

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

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element is invalid with respect to Address
      • fromJson

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

        public String toJson()
        Convert an instance of Address to an JSON string
        Returns:
        JSON string