Package com.ibm.fhir.model.resource
Class GraphDefinition.Link.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- com.ibm.fhir.model.type.BackboneElement.Builder
-
- com.ibm.fhir.model.resource.GraphDefinition.Link.Builder
-
- Enclosing class:
- GraphDefinition.Link
public static class GraphDefinition.Link.Builder extends BackboneElement.Builder
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.BackboneElement.Builder
modifierExtension
-
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 GraphDefinition.Link
build()
Build theGraphDefinition.Link
GraphDefinition.Link.Builder
description(String description)
Information about why this link is of interest in this graph definition.GraphDefinition.Link.Builder
extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the element.GraphDefinition.Link.Builder
extension(Collection<Extension> extension)
May be used to represent additional information that is not part of the basic definition of the element.protected GraphDefinition.Link.Builder
from(GraphDefinition.Link link)
GraphDefinition.Link.Builder
id(String id)
Unique id for the element within a resource (for internal references).GraphDefinition.Link.Builder
max(String max)
Maximum occurrences for this link.GraphDefinition.Link.Builder
min(Integer min)
Minimum occurrences for this link.GraphDefinition.Link.Builder
modifierExtension(Extension... modifierExtension)
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants.GraphDefinition.Link.Builder
modifierExtension(Collection<Extension> modifierExtension)
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants.GraphDefinition.Link.Builder
path(String path)
A FHIR expression that identifies one of FHIR References to other resources.GraphDefinition.Link.Builder
sliceName(String sliceName)
Which slice (if profiled).GraphDefinition.Link.Builder
target(GraphDefinition.Link.Target... target)
Potential target for the link.GraphDefinition.Link.Builder
target(Collection<GraphDefinition.Link.Target> target)
Potential target for the link.-
Methods inherited from class com.ibm.fhir.model.type.BackboneElement.Builder
from
-
Methods inherited from class com.ibm.fhir.model.type.Element.Builder
from
-
-
-
-
Method Detail
-
id
public GraphDefinition.Link.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:
id
in classBackboneElement.Builder
- Parameters:
id
- Unique id for inter-element referencing- Returns:
- A reference to this Builder instance
-
extension
public GraphDefinition.Link.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:
extension
in classBackboneElement.Builder
- Parameters:
extension
- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public GraphDefinition.Link.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:
extension
in classBackboneElement.Builder
- Parameters:
extension
- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
modifierExtension
public GraphDefinition.Link.Builder modifierExtension(Extension... modifierExtension)
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
Adds new element(s) to the existing list
- Overrides:
modifierExtension
in classBackboneElement.Builder
- Parameters:
modifierExtension
- Extensions that cannot be ignored even if unrecognized- Returns:
- A reference to this Builder instance
-
modifierExtension
public GraphDefinition.Link.Builder modifierExtension(Collection<Extension> modifierExtension)
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
Replaces the existing list with a new one containing elements from the Collection
- Overrides:
modifierExtension
in classBackboneElement.Builder
- Parameters:
modifierExtension
- Extensions that cannot be ignored even if unrecognized- Returns:
- A reference to this Builder instance
-
path
public GraphDefinition.Link.Builder path(String path)
A FHIR expression that identifies one of FHIR References to other resources.- Parameters:
path
- Path in the resource that contains the link- Returns:
- A reference to this Builder instance
-
sliceName
public GraphDefinition.Link.Builder sliceName(String sliceName)
Which slice (if profiled).- Parameters:
sliceName
- Which slice (if profiled)- Returns:
- A reference to this Builder instance
-
min
public GraphDefinition.Link.Builder min(Integer min)
Minimum occurrences for this link.- Parameters:
min
- Minimum occurrences for this link- Returns:
- A reference to this Builder instance
-
max
public GraphDefinition.Link.Builder max(String max)
Maximum occurrences for this link.- Parameters:
max
- Maximum occurrences for this link- Returns:
- A reference to this Builder instance
-
description
public GraphDefinition.Link.Builder description(String description)
Information about why this link is of interest in this graph definition.- Parameters:
description
- Why this link is specified- Returns:
- A reference to this Builder instance
-
target
public GraphDefinition.Link.Builder target(GraphDefinition.Link.Target... target)
Potential target for the link.Adds new element(s) to the existing list
- Parameters:
target
- Potential target for the link- Returns:
- A reference to this Builder instance
-
target
public GraphDefinition.Link.Builder target(Collection<GraphDefinition.Link.Target> target)
Potential target for the link.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
target
- Potential target for the link- Returns:
- A reference to this Builder instance
-
build
public GraphDefinition.Link build()
Build theGraphDefinition.Link
- Specified by:
build
in interfaceBuilder<Element>
- Specified by:
build
in classBackboneElement.Builder
- Returns:
- An immutable object of type
GraphDefinition.Link
- Throws:
IllegalStateException
- if the current state cannot be built into a valid Link per the base specification
-
from
protected GraphDefinition.Link.Builder from(GraphDefinition.Link link)
-
-