Class AddressBuilder.Impl
- java.lang.Object
-
- com.babylonhealth.lit.core_java.builders.AddressBuilder.Impl
-
- All Implemented Interfaces:
AddressBuilder,ElementBuilder
- Enclosing interface:
- AddressBuilder
public static class AddressBuilder.Impl extends java.lang.Object implements AddressBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.babylonhealth.lit.core_java.builders.AddressBuilder
AddressBuilder.Impl
-
-
Constructor Summary
Constructors Constructor Description Impl()Required fields forAddress
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.babylonhealth.lit.core.model.Addressbuild()AddressBuilder.ImplwithCity(@NonNull java.lang.String city)AddressBuilder.ImplwithCountry(@NonNull java.lang.String country)AddressBuilder.ImplwithDistrict(@NonNull java.lang.String district)AddressBuilder.ImplwithExtension(@NonNull ExtensionBuilder... extension)AddressBuilder.ImplwithExtension(@NonNull com.babylonhealth.lit.core.model.Extension... extension)AddressBuilder.ImplwithExtension(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)AddressBuilder.ImplwithId(@NonNull java.lang.String id)AddressBuilder.ImplwithLine(@NonNull java.lang.String... line)AddressBuilder.ImplwithLine(@NonNull java.util.Collection<java.lang.String> line)AddressBuilder.ImplwithPeriod(@NonNull PeriodBuilder period)AddressBuilder.ImplwithPeriod(@NonNull com.babylonhealth.lit.core.model.Period period)AddressBuilder.ImplwithPostalCode(@NonNull java.lang.String postalCode)AddressBuilder.ImplwithState(@NonNull java.lang.String state)AddressBuilder.ImplwithText(@NonNull java.lang.String text)AddressBuilder.ImplwithType(@NonNull com.babylonhealth.lit.core.ADDRESS_TYPE _type)AddressBuilder.ImplwithUse(@NonNull com.babylonhealth.lit.core.ADDRESS_USE use)
-
-
-
Method Detail
-
withId
public AddressBuilder.Impl withId(@NonNull @NonNull java.lang.String id)
- Parameters:
id- - Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
-
withUse
public AddressBuilder.Impl withUse(@NonNull @NonNull com.babylonhealth.lit.core.ADDRESS_USE use)
- Parameters:
use- - The purpose of this address.
-
withType
public AddressBuilder.Impl withType(@NonNull @NonNull com.babylonhealth.lit.core.ADDRESS_TYPE _type)
- Parameters:
_type- - Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.
-
withText
public AddressBuilder.Impl withText(@NonNull @NonNull java.lang.String text)
- Parameters:
text- - Specifies the entire address as it should be displayed e.g. on a postal label. This may be provided instead of or as well as the specific parts.
-
withLine
public AddressBuilder.Impl withLine(@NonNull @NonNull java.lang.String... line)
- Parameters:
line- - This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information.
-
withLine
public AddressBuilder.Impl withLine(@NonNull @NonNull java.util.Collection<java.lang.String> line)
- Parameters:
line- - This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information.
-
withCity
public AddressBuilder.Impl withCity(@NonNull @NonNull java.lang.String city)
- Parameters:
city- - The name of the city, town, suburb, village or other community or delivery center.
-
withState
public AddressBuilder.Impl withState(@NonNull @NonNull java.lang.String state)
- Parameters:
state- - Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (e.g. US 2 letter state codes).
-
withPeriod
public AddressBuilder.Impl withPeriod(@NonNull @NonNull com.babylonhealth.lit.core.model.Period period)
- Parameters:
period- - Time period when address was/is in use.
-
withPeriod
public AddressBuilder.Impl withPeriod(@NonNull @NonNull PeriodBuilder period)
-
withCountry
public AddressBuilder.Impl withCountry(@NonNull @NonNull java.lang.String country)
- Parameters:
country- - Country - a nation as commonly understood or generally accepted.
-
withDistrict
public AddressBuilder.Impl withDistrict(@NonNull @NonNull java.lang.String district)
- Parameters:
district- - The name of the administrative area (county).
-
withExtension
public AddressBuilder.Impl withExtension(@NonNull @NonNull com.babylonhealth.lit.core.model.Extension... extension)
- Parameters:
extension- - May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
-
withExtension
public AddressBuilder.Impl withExtension(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)
- Parameters:
extension- - May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
-
withExtension
public AddressBuilder.Impl withExtension(@NonNull @NonNull ExtensionBuilder... extension)
-
withPostalCode
public AddressBuilder.Impl withPostalCode(@NonNull @NonNull java.lang.String postalCode)
- Parameters:
postalCode- - A postal code designating a region defined by the postal service.
-
build
public com.babylonhealth.lit.core.model.Address build()
- Specified by:
buildin interfaceAddressBuilder- Specified by:
buildin interfaceElementBuilder
-
-