Interface PostalCodeDetails.Builder

  • Method Details

    • postalCode

      PostalCodeDetails.Builder postalCode(String postalCode)

      An alphanumeric string included in a postal address to facilitate mail sorting, such as post code, postcode, or ZIP code for which the result should possess.

      Parameters:
      postalCode - An alphanumeric string included in a postal address to facilitate mail sorting, such as post code, postcode, or ZIP code for which the result should possess.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • postalAuthority

      PostalCodeDetails.Builder postalAuthority(String postalAuthority)

      The postal authority or entity. This could be a governmental authority, a regulatory authority, or a designated postal operator.

      Parameters:
      postalAuthority - The postal authority or entity. This could be a governmental authority, a regulatory authority, or a designated postal operator.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • postalAuthority

      PostalCodeDetails.Builder postalAuthority(PostalAuthority postalAuthority)

      The postal authority or entity. This could be a governmental authority, a regulatory authority, or a designated postal operator.

      Parameters:
      postalAuthority - The postal authority or entity. This could be a governmental authority, a regulatory authority, or a designated postal operator.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • postalCodeType

      PostalCodeDetails.Builder postalCodeType(String postalCodeType)

      The postal code type.

      Parameters:
      postalCodeType - The postal code type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • postalCodeType

      PostalCodeDetails.Builder postalCodeType(PostalCodeType postalCodeType)

      The postal code type.

      Parameters:
      postalCodeType - The postal code type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • uspsZip

      The ZIP Classification Code, or in other words what type of postal code is it.

      Parameters:
      uspsZip - The ZIP Classification Code, or in other words what type of postal code is it.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • uspsZip

      The ZIP Classification Code, or in other words what type of postal code is it.

      This is a convenience method that creates an instance of the UspsZip.Builder avoiding the need to create one manually via UspsZip.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to uspsZip(UspsZip).

      Parameters:
      uspsZip - a consumer that will call methods on UspsZip.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • uspsZipPlus4

      PostalCodeDetails.Builder uspsZipPlus4(UspsZipPlus4 uspsZipPlus4)

      The USPS ZIP+4 Record Type Code.

      Parameters:
      uspsZipPlus4 - The USPS ZIP+4 Record Type Code.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • uspsZipPlus4

      default PostalCodeDetails.Builder uspsZipPlus4(Consumer<UspsZipPlus4.Builder> uspsZipPlus4)

      The USPS ZIP+4 Record Type Code.

      This is a convenience method that creates an instance of the UspsZipPlus4.Builder avoiding the need to create one manually via UspsZipPlus4.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to uspsZipPlus4(UspsZipPlus4).

      Parameters:
      uspsZipPlus4 - a consumer that will call methods on UspsZipPlus4.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: