Package com.ibm.fhir.model.resource
Class Parameters.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Resource>
-
- com.ibm.fhir.model.resource.Resource.Builder
-
- com.ibm.fhir.model.resource.Parameters.Builder
-
- Enclosing class:
- Parameters
public static class Parameters.Builder extends Resource.Builder
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.resource.Resource.Builder
id, implicitRules, language, meta
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Parametersbuild()Build theParametersprotected Parameters.Builderfrom(Parameters parameters)Parameters.Builderid(String id)The logical id of the resource, as used in the URL for the resource.Parameters.BuilderimplicitRules(Uri implicitRules)A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.Parameters.Builderlanguage(Code language)The base language in which the resource is written.Parameters.Buildermeta(Meta meta)The metadata about the resource.Parameters.Builderparameter(Parameters.Parameter... parameter)A parameter passed to or received from the operation.Parameters.Builderparameter(Collection<Parameters.Parameter> parameter)A parameter passed to or received from the operation.-
Methods inherited from class com.ibm.fhir.model.resource.Resource.Builder
from
-
-
-
-
Method Detail
-
id
public Parameters.Builder id(String id)
The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.- Overrides:
idin classResource.Builder- Parameters:
id- Logical id of this artifact- Returns:
- A reference to this Builder instance
-
meta
public Parameters.Builder meta(Meta meta)
The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.- Overrides:
metain classResource.Builder- Parameters:
meta- Metadata about the resource- Returns:
- A reference to this Builder instance
-
implicitRules
public Parameters.Builder implicitRules(Uri implicitRules)
A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.- Overrides:
implicitRulesin classResource.Builder- Parameters:
implicitRules- A set of rules under which this content was created- Returns:
- A reference to this Builder instance
-
language
public Parameters.Builder language(Code language)
The base language in which the resource is written.- Overrides:
languagein classResource.Builder- Parameters:
language- Language of the resource content- Returns:
- A reference to this Builder instance
-
parameter
public Parameters.Builder parameter(Parameters.Parameter... parameter)
A parameter passed to or received from the operation.Adds new element(s) to the existing list
- Parameters:
parameter- Operation Parameter- Returns:
- A reference to this Builder instance
-
parameter
public Parameters.Builder parameter(Collection<Parameters.Parameter> parameter)
A parameter passed to or received from the operation.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
parameter- Operation Parameter- Returns:
- A reference to this Builder instance
-
build
public Parameters build()
Build theParameters- Specified by:
buildin interfaceBuilder<Resource>- Specified by:
buildin classResource.Builder- Returns:
- An immutable object of type
Parameters - Throws:
IllegalStateException- if the current state cannot be built into a valid Parameters per the base specification
-
from
protected Parameters.Builder from(Parameters parameters)
-
-