Class Parameters.Builder
- java.lang.Object
-
- org.linuxforhealth.fhir.model.builder.AbstractBuilder<Resource>
-
- org.linuxforhealth.fhir.model.resource.Resource.Builder
-
- org.linuxforhealth.fhir.model.resource.Parameters.Builder
-
- Enclosing class:
- Parameters
public static class Parameters.Builder extends Resource.Builder
-
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.model.resource.Resource.Builder
id, implicitRules, language, meta
-
Fields inherited from class org.linuxforhealth.fhir.model.builder.AbstractBuilder
validating
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Parameters
build()
Build theParameters
protected Parameters.Builder
from(Parameters parameters)
Parameters.Builder
id(java.lang.String id)
The logical id of the resource, as used in the URL for the resource.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.Parameters.Builder
language(Code language)
The base language in which the resource is written.Parameters.Builder
meta(Meta meta)
The metadata about the resource.Parameters.Builder
parameter(java.util.Collection<Parameters.Parameter> parameter)
A parameter passed to or received from the operation.Parameters.Builder
parameter(Parameters.Parameter... parameter)
A parameter passed to or received from the operation.protected void
validate(Parameters parameters)
-
Methods inherited from class org.linuxforhealth.fhir.model.resource.Resource.Builder
from, validate
-
Methods inherited from class org.linuxforhealth.fhir.model.builder.AbstractBuilder
isValidating, setValidating
-
-
-
-
Method Detail
-
id
public Parameters.Builder id(java.lang.String id)
The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.- Overrides:
id
in 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:
meta
in 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:
implicitRules
in 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:
language
in 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. If any of the elements are null, calling
build()
will fail.- Parameters:
parameter
- Operation Parameter- Returns:
- A reference to this Builder instance
-
parameter
public Parameters.Builder parameter(java.util.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. If any of the elements are null, calling
build()
will fail.- Parameters:
parameter
- Operation Parameter- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
build
public Parameters build()
Build theParameters
- Specified by:
build
in interfaceBuilder<Resource>
- Specified by:
build
in classResource.Builder
- Returns:
- An immutable object of type
Parameters
- Throws:
java.lang.IllegalStateException
- if the current state cannot be built into a valid Parameters per the base specification
-
validate
protected void validate(Parameters parameters)
-
from
protected Parameters.Builder from(Parameters parameters)
-
-