Package com.ibm.fhir.model.type
Class ParameterDefinition.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- com.ibm.fhir.model.type.ParameterDefinition.Builder
-
- Enclosing class:
- ParameterDefinition
public static class ParameterDefinition.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 ParameterDefinitionbuild()Build theParameterDefinitionParameterDefinition.Builderdocumentation(String documentation)A brief discussion of what the parameter is for and how it is used by the module.ParameterDefinition.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the element.ParameterDefinition.Builderextension(Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the element.protected ParameterDefinition.Builderfrom(ParameterDefinition parameterDefinition)ParameterDefinition.Builderid(String id)Unique id for the element within a resource (for internal references).ParameterDefinition.Buildermax(String max)The maximum number of times this element is permitted to appear in the request or response.ParameterDefinition.Buildermin(Integer min)The minimum number of times this parameter SHALL appear in the request or response.ParameterDefinition.Buildername(Code name)The name of the parameter used to allow access to the value of the parameter in evaluation contexts.ParameterDefinition.Builderprofile(Canonical profile)If specified, this indicates a profile that the input data must conform to, or that the output data will conform to.ParameterDefinition.Buildertype(FHIRAllTypes type)The type of the parameter.ParameterDefinition.Builderuse(ParameterUse use)Whether the parameter is input or output for the module.-
Methods inherited from class com.ibm.fhir.model.type.Element.Builder
from
-
-
-
-
Method Detail
-
id
public ParameterDefinition.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 ParameterDefinition.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 ParameterDefinition.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 ParameterDefinition.Builder name(Code name)
The name of the parameter used to allow access to the value of the parameter in evaluation contexts.- Parameters:
name- Name used to access the parameter value- Returns:
- A reference to this Builder instance
-
use
public ParameterDefinition.Builder use(ParameterUse use)
Whether the parameter is input or output for the module.This element is required.
- Parameters:
use- in | out- Returns:
- A reference to this Builder instance
-
min
public ParameterDefinition.Builder min(Integer min)
The minimum number of times this parameter SHALL appear in the request or response.- Parameters:
min- Minimum cardinality- Returns:
- A reference to this Builder instance
-
max
public ParameterDefinition.Builder max(String max)
The maximum number of times this element is permitted to appear in the request or response.- Parameters:
max- Maximum cardinality (a number of *)- Returns:
- A reference to this Builder instance
-
documentation
public ParameterDefinition.Builder documentation(String documentation)
A brief discussion of what the parameter is for and how it is used by the module.- Parameters:
documentation- A brief description of the parameter- Returns:
- A reference to this Builder instance
-
type
public ParameterDefinition.Builder type(FHIRAllTypes type)
The type of the parameter.This element is required.
- Parameters:
type- What type of value- Returns:
- A reference to this Builder instance
-
profile
public ParameterDefinition.Builder profile(Canonical profile)
If specified, this indicates a profile that the input data must conform to, or that the output data will conform to.- Parameters:
profile- What profile the value is expected to be- Returns:
- A reference to this Builder instance
-
build
public ParameterDefinition build()
- Specified by:
buildin interfaceBuilder<Element>- Specified by:
buildin classElement.Builder- Returns:
- An immutable object of type
ParameterDefinition - Throws:
IllegalStateException- if the current state cannot be built into a valid ParameterDefinition per the base specification
-
from
protected ParameterDefinition.Builder from(ParameterDefinition parameterDefinition)
-
-