Package com.ibm.fhir.model.type
Class ContactDetail.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- com.ibm.fhir.model.type.ContactDetail.Builder
-
- Enclosing class:
- ContactDetail
public static class ContactDetail.Builder extends Element.Builder
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.Element.Builder
extension, id
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContactDetailbuild()Build theContactDetailContactDetail.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the element.ContactDetail.Builderextension(Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the element.protected ContactDetail.Builderfrom(ContactDetail contactDetail)ContactDetail.Builderid(String id)Unique id for the element within a resource (for internal references).ContactDetail.Buildername(String name)The name of an individual to contact.ContactDetail.Buildertelecom(ContactPoint... telecom)The contact details for the individual (if a name was provided) or the organization.ContactDetail.Buildertelecom(Collection<ContactPoint> telecom)The contact details for the individual (if a name was provided) or the organization.-
Methods inherited from class com.ibm.fhir.model.type.Element.Builder
from
-
-
-
-
Method Detail
-
id
public ContactDetail.Builder id(String id)
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.- Overrides:
idin classElement.Builder- Parameters:
id- Unique id for inter-element referencing- Returns:
- A reference to this Builder instance
-
extension
public ContactDetail.Builder extension(Extension... 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.Adds new element(s) to the existing list
- Overrides:
extensionin classElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public ContactDetail.Builder extension(Collection<Extension> 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.Replaces the existing list with a new one containing elements from the Collection
- Overrides:
extensionin classElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
name
public ContactDetail.Builder name(String name)
The name of an individual to contact.- Parameters:
name- Name of an individual to contact- Returns:
- A reference to this Builder instance
-
telecom
public ContactDetail.Builder telecom(ContactPoint... telecom)
The contact details for the individual (if a name was provided) or the organization.Adds new element(s) to the existing list
- Parameters:
telecom- Contact details for individual or organization- Returns:
- A reference to this Builder instance
-
telecom
public ContactDetail.Builder telecom(Collection<ContactPoint> telecom)
The contact details for the individual (if a name was provided) or the organization.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
telecom- Contact details for individual or organization- Returns:
- A reference to this Builder instance
-
build
public ContactDetail build()
Build theContactDetail- Specified by:
buildin interfaceBuilder<Element>- Specified by:
buildin classElement.Builder- Returns:
- An immutable object of type
ContactDetail - Throws:
IllegalStateException- if the current state cannot be built into a valid ContactDetail per the base specification
-
from
protected ContactDetail.Builder from(ContactDetail contactDetail)
-
-