Class ExampleScenario.Process.Step.Operation.Builder
- java.lang.Object
-
- org.linuxforhealth.fhir.model.builder.AbstractBuilder<Element>
-
- org.linuxforhealth.fhir.model.type.Element.Builder
-
- org.linuxforhealth.fhir.model.type.BackboneElement.Builder
-
- org.linuxforhealth.fhir.model.resource.ExampleScenario.Process.Step.Operation.Builder
-
- Enclosing class:
- ExampleScenario.Process.Step.Operation
public static class ExampleScenario.Process.Step.Operation.Builder extends BackboneElement.Builder
-
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.model.type.BackboneElement.Builder
modifierExtension
-
Fields inherited from class org.linuxforhealth.fhir.model.type.Element.Builder
extension, id
-
Fields inherited from class org.linuxforhealth.fhir.model.builder.AbstractBuilder
validating
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExampleScenario.Process.Step.Operation
build()
Build theExampleScenario.Process.Step.Operation
ExampleScenario.Process.Step.Operation.Builder
description(Markdown description)
A comment to be inserted in the diagram.ExampleScenario.Process.Step.Operation.Builder
extension(java.util.Collection<Extension> extension)
May be used to represent additional information that is not part of the basic definition of the element.ExampleScenario.Process.Step.Operation.Builder
extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the element.protected ExampleScenario.Process.Step.Operation.Builder
from(ExampleScenario.Process.Step.Operation operation)
ExampleScenario.Process.Step.Operation.Builder
id(java.lang.String id)
Unique id for the element within a resource (for internal references).ExampleScenario.Process.Step.Operation.Builder
initiator(java.lang.String initiator)
Convenience method for settinginitiator
.ExampleScenario.Process.Step.Operation.Builder
initiator(String initiator)
Who starts the transaction.ExampleScenario.Process.Step.Operation.Builder
initiatorActive(java.lang.Boolean initiatorActive)
Convenience method for settinginitiatorActive
.ExampleScenario.Process.Step.Operation.Builder
initiatorActive(Boolean initiatorActive)
Whether the initiator is deactivated right after the transaction.ExampleScenario.Process.Step.Operation.Builder
modifierExtension(java.util.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.ExampleScenario.Process.Step.Operation.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.ExampleScenario.Process.Step.Operation.Builder
name(java.lang.String name)
Convenience method for settingname
.ExampleScenario.Process.Step.Operation.Builder
name(String name)
The human-friendly name of the interaction.ExampleScenario.Process.Step.Operation.Builder
number(java.lang.String number)
Convenience method for settingnumber
.ExampleScenario.Process.Step.Operation.Builder
number(String number)
The sequential number of the interaction, e.g.ExampleScenario.Process.Step.Operation.Builder
receiver(java.lang.String receiver)
Convenience method for settingreceiver
.ExampleScenario.Process.Step.Operation.Builder
receiver(String receiver)
Who receives the transaction.ExampleScenario.Process.Step.Operation.Builder
receiverActive(java.lang.Boolean receiverActive)
Convenience method for settingreceiverActive
.ExampleScenario.Process.Step.Operation.Builder
receiverActive(Boolean receiverActive)
Whether the receiver is deactivated right after the transaction.ExampleScenario.Process.Step.Operation.Builder
request(ExampleScenario.Instance.ContainedInstance request)
Each resource instance used by the initiator.ExampleScenario.Process.Step.Operation.Builder
response(ExampleScenario.Instance.ContainedInstance response)
Each resource instance used by the responder.ExampleScenario.Process.Step.Operation.Builder
type(java.lang.String type)
Convenience method for settingtype
.ExampleScenario.Process.Step.Operation.Builder
type(String type)
The type of operation - CRUD.protected void
validate(ExampleScenario.Process.Step.Operation operation)
-
Methods inherited from class org.linuxforhealth.fhir.model.type.BackboneElement.Builder
from, validate
-
Methods inherited from class org.linuxforhealth.fhir.model.type.Element.Builder
from, validate
-
Methods inherited from class org.linuxforhealth.fhir.model.builder.AbstractBuilder
isValidating, setValidating
-
-
-
-
Method Detail
-
id
public ExampleScenario.Process.Step.Operation.Builder id(java.lang.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 ExampleScenario.Process.Step.Operation.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. If any of the elements are null, calling
build()
will fail.- Overrides:
extension
in classBackboneElement.Builder
- Parameters:
extension
- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public ExampleScenario.Process.Step.Operation.Builder extension(java.util.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. If any of the elements are null, calling
build()
will fail.- Overrides:
extension
in classBackboneElement.Builder
- Parameters:
extension
- Additional content defined by implementations- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
modifierExtension
public ExampleScenario.Process.Step.Operation.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. If any of the elements are null, calling
build()
will fail.- Overrides:
modifierExtension
in classBackboneElement.Builder
- Parameters:
modifierExtension
- Extensions that cannot be ignored even if unrecognized- Returns:
- A reference to this Builder instance
-
modifierExtension
public ExampleScenario.Process.Step.Operation.Builder modifierExtension(java.util.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. If any of the elements are null, calling
build()
will fail.- Overrides:
modifierExtension
in classBackboneElement.Builder
- Parameters:
modifierExtension
- Extensions that cannot be ignored even if unrecognized- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
number
public ExampleScenario.Process.Step.Operation.Builder number(java.lang.String number)
Convenience method for settingnumber
.This element is required.
- Parameters:
number
- The sequential number of the interaction- Returns:
- A reference to this Builder instance
- See Also:
number(org.linuxforhealth.fhir.model.type.String)
-
number
public ExampleScenario.Process.Step.Operation.Builder number(String number)
The sequential number of the interaction, e.g. 1.2.5.This element is required.
- Parameters:
number
- The sequential number of the interaction- Returns:
- A reference to this Builder instance
-
type
public ExampleScenario.Process.Step.Operation.Builder type(java.lang.String type)
Convenience method for settingtype
.- Parameters:
type
- The type of operation - CRUD- Returns:
- A reference to this Builder instance
- See Also:
type(org.linuxforhealth.fhir.model.type.String)
-
type
public ExampleScenario.Process.Step.Operation.Builder type(String type)
The type of operation - CRUD.- Parameters:
type
- The type of operation - CRUD- Returns:
- A reference to this Builder instance
-
name
public ExampleScenario.Process.Step.Operation.Builder name(java.lang.String name)
Convenience method for settingname
.- Parameters:
name
- The human-friendly name of the interaction- Returns:
- A reference to this Builder instance
- See Also:
name(org.linuxforhealth.fhir.model.type.String)
-
name
public ExampleScenario.Process.Step.Operation.Builder name(String name)
The human-friendly name of the interaction.- Parameters:
name
- The human-friendly name of the interaction- Returns:
- A reference to this Builder instance
-
initiator
public ExampleScenario.Process.Step.Operation.Builder initiator(java.lang.String initiator)
Convenience method for settinginitiator
.- Parameters:
initiator
- Who starts the transaction- Returns:
- A reference to this Builder instance
- See Also:
initiator(org.linuxforhealth.fhir.model.type.String)
-
initiator
public ExampleScenario.Process.Step.Operation.Builder initiator(String initiator)
Who starts the transaction.- Parameters:
initiator
- Who starts the transaction- Returns:
- A reference to this Builder instance
-
receiver
public ExampleScenario.Process.Step.Operation.Builder receiver(java.lang.String receiver)
Convenience method for settingreceiver
.- Parameters:
receiver
- Who receives the transaction- Returns:
- A reference to this Builder instance
- See Also:
receiver(org.linuxforhealth.fhir.model.type.String)
-
receiver
public ExampleScenario.Process.Step.Operation.Builder receiver(String receiver)
Who receives the transaction.- Parameters:
receiver
- Who receives the transaction- Returns:
- A reference to this Builder instance
-
description
public ExampleScenario.Process.Step.Operation.Builder description(Markdown description)
A comment to be inserted in the diagram.- Parameters:
description
- A comment to be inserted in the diagram- Returns:
- A reference to this Builder instance
-
initiatorActive
public ExampleScenario.Process.Step.Operation.Builder initiatorActive(java.lang.Boolean initiatorActive)
Convenience method for settinginitiatorActive
.- Parameters:
initiatorActive
- Whether the initiator is deactivated right after the transaction- Returns:
- A reference to this Builder instance
- See Also:
initiatorActive(org.linuxforhealth.fhir.model.type.Boolean)
-
initiatorActive
public ExampleScenario.Process.Step.Operation.Builder initiatorActive(Boolean initiatorActive)
Whether the initiator is deactivated right after the transaction.- Parameters:
initiatorActive
- Whether the initiator is deactivated right after the transaction- Returns:
- A reference to this Builder instance
-
receiverActive
public ExampleScenario.Process.Step.Operation.Builder receiverActive(java.lang.Boolean receiverActive)
Convenience method for settingreceiverActive
.- Parameters:
receiverActive
- Whether the receiver is deactivated right after the transaction- Returns:
- A reference to this Builder instance
- See Also:
receiverActive(org.linuxforhealth.fhir.model.type.Boolean)
-
receiverActive
public ExampleScenario.Process.Step.Operation.Builder receiverActive(Boolean receiverActive)
Whether the receiver is deactivated right after the transaction.- Parameters:
receiverActive
- Whether the receiver is deactivated right after the transaction- Returns:
- A reference to this Builder instance
-
request
public ExampleScenario.Process.Step.Operation.Builder request(ExampleScenario.Instance.ContainedInstance request)
Each resource instance used by the initiator.- Parameters:
request
- Each resource instance used by the initiator- Returns:
- A reference to this Builder instance
-
response
public ExampleScenario.Process.Step.Operation.Builder response(ExampleScenario.Instance.ContainedInstance response)
Each resource instance used by the responder.- Parameters:
response
- Each resource instance used by the responder- Returns:
- A reference to this Builder instance
-
build
public ExampleScenario.Process.Step.Operation build()
- Specified by:
build
in interfaceBuilder<Element>
- Specified by:
build
in classBackboneElement.Builder
- Returns:
- An immutable object of type
ExampleScenario.Process.Step.Operation
- Throws:
java.lang.IllegalStateException
- if the current state cannot be built into a valid Operation per the base specification
-
validate
protected void validate(ExampleScenario.Process.Step.Operation operation)
-
from
protected ExampleScenario.Process.Step.Operation.Builder from(ExampleScenario.Process.Step.Operation operation)
-
-