Class Address


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

      • Address

        public Address()
    • Method Detail

      • getFlatNumber

        @Nullable
        public String getFlatNumber()
        The flat number of this address
        Returns:
        flatNumber
      • setFlatNumber

        public void setFlatNumber​(String flatNumber)
      • buildingNumber

        public Address buildingNumber​(String buildingNumber)
      • getBuildingNumber

        @Nullable
        public String getBuildingNumber()
        The building number of this address
        Returns:
        buildingNumber
      • setBuildingNumber

        public void setBuildingNumber​(String buildingNumber)
      • buildingName

        public Address buildingName​(String buildingName)
      • getBuildingName

        @Nullable
        public String getBuildingName()
        The building name of this address
        Returns:
        buildingName
      • setBuildingName

        public void setBuildingName​(String buildingName)
      • getStreet

        @Nullable
        public String getStreet()
        The street of the applicant's address
        Returns:
        street
      • setStreet

        public void setStreet​(String street)
      • getSubStreet

        @Nullable
        public String getSubStreet()
        The sub-street of the applicant's address
        Returns:
        subStreet
      • setSubStreet

        public void setSubStreet​(String subStreet)
      • getTown

        @Nullable
        public String getTown()
        The town of the applicant's address
        Returns:
        town
      • setTown

        public void setTown​(String town)
      • getPostcode

        @Nonnull
        public String getPostcode()
        The postcode or ZIP of the applicant's address
        Returns:
        postcode
      • setPostcode

        public void setPostcode​(String postcode)
      • getCountry

        @Nonnull
        public CountryCodes getCountry()
        The 3 character ISO country code of this address. For example, GBR is the country code for the United Kingdom
        Returns:
        country
      • setCountry

        public void setCountry​(CountryCodes country)
      • getState

        @Nullable
        public String getState()
        The address state. US states must use the USPS abbreviation (see also ISO 3166-2:US), for example AK, CA, or TX.
        Returns:
        state
      • setState

        public void setState​(String state)
      • getLine1

        @Nullable
        public String getLine1()
        Line 1 of the applicant's address
        Returns:
        line1
      • setLine1

        public void setLine1​(String line1)
      • getLine2

        @Nullable
        public String getLine2()
        Line 2 of the applicant's address
        Returns:
        line2
      • setLine2

        public void setLine2​(String line2)
      • getLine3

        @Nullable
        public String getLine3()
        Line 3 of the applicant's address
        Returns:
        line3
      • setLine3

        public void setLine3​(String line3)
      • putAdditionalProperty

        public Address putAdditionalProperty​(String key,
                                             Object value)
        Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
        Parameters:
        key - name of the property
        value - value of the property
        Returns:
        the Address instance itself
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
        Return the additional (undeclared) property.
        Returns:
        a map of objects
      • getAdditionalProperty

        public Object getAdditionalProperty​(String key)
        Return the additional (undeclared) property with the specified name.
        Parameters:
        key - name of the property
        Returns:
        an object
      • 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