Class SubscriptionStatus.NotificationEvent.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.SubscriptionStatus.NotificationEvent.Builder
-
- Enclosing class:
- SubscriptionStatus.NotificationEvent
public static class SubscriptionStatus.NotificationEvent.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 SubscriptionStatus.NotificationEvent.BuilderadditionalContext(java.util.Collection<Reference> additionalContext)Additional context information for this event.SubscriptionStatus.NotificationEvent.BuilderadditionalContext(Reference... additionalContext)Additional context information for this event.SubscriptionStatus.NotificationEventbuild()Build theSubscriptionStatus.NotificationEventSubscriptionStatus.NotificationEvent.BuildereventNumber(java.lang.String eventNumber)Convenience method for settingeventNumber.SubscriptionStatus.NotificationEvent.BuildereventNumber(String eventNumber)The sequential number of this event in this subscription context.SubscriptionStatus.NotificationEvent.Builderextension(java.util.Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the element.SubscriptionStatus.NotificationEvent.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the element.SubscriptionStatus.NotificationEvent.Builderfocus(Reference focus)The focus of this event.protected SubscriptionStatus.NotificationEvent.Builderfrom(SubscriptionStatus.NotificationEvent notificationEvent)SubscriptionStatus.NotificationEvent.Builderid(java.lang.String id)Unique id for the element within a resource (for internal references).SubscriptionStatus.NotificationEvent.BuildermodifierExtension(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.SubscriptionStatus.NotificationEvent.BuildermodifierExtension(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.SubscriptionStatus.NotificationEvent.Buildertimestamp(java.time.ZonedDateTime timestamp)Convenience method for settingtimestamp.SubscriptionStatus.NotificationEvent.Buildertimestamp(Instant timestamp)The actual time this event occured on the server.protected voidvalidate(SubscriptionStatus.NotificationEvent notificationEvent)-
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 SubscriptionStatus.NotificationEvent.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:
idin classBackboneElement.Builder- Parameters:
id- Unique id for inter-element referencing- Returns:
- A reference to this Builder instance
-
extension
public SubscriptionStatus.NotificationEvent.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:
extensionin classBackboneElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public SubscriptionStatus.NotificationEvent.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:
extensionin 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 SubscriptionStatus.NotificationEvent.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:
modifierExtensionin classBackboneElement.Builder- Parameters:
modifierExtension- Extensions that cannot be ignored even if unrecognized- Returns:
- A reference to this Builder instance
-
modifierExtension
public SubscriptionStatus.NotificationEvent.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:
modifierExtensionin 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
-
eventNumber
public SubscriptionStatus.NotificationEvent.Builder eventNumber(java.lang.String eventNumber)
Convenience method for settingeventNumber.This element is required.
- Parameters:
eventNumber- Event number- Returns:
- A reference to this Builder instance
- See Also:
eventNumber(org.linuxforhealth.fhir.model.type.String)
-
eventNumber
public SubscriptionStatus.NotificationEvent.Builder eventNumber(String eventNumber)
The sequential number of this event in this subscription context. Note that this value is a 64-bit integer value, encoded as a string.This element is required.
- Parameters:
eventNumber- Event number- Returns:
- A reference to this Builder instance
-
timestamp
public SubscriptionStatus.NotificationEvent.Builder timestamp(java.time.ZonedDateTime timestamp)
Convenience method for settingtimestamp.- Parameters:
timestamp- The instant this event occurred- Returns:
- A reference to this Builder instance
- See Also:
timestamp(org.linuxforhealth.fhir.model.type.Instant)
-
timestamp
public SubscriptionStatus.NotificationEvent.Builder timestamp(Instant timestamp)
The actual time this event occured on the server.- Parameters:
timestamp- The instant this event occurred- Returns:
- A reference to this Builder instance
-
focus
public SubscriptionStatus.NotificationEvent.Builder focus(Reference focus)
The focus of this event. While this will usually be a reference to the focus resource of the event, it MAY contain a reference to a non-FHIR object.- Parameters:
focus- The focus of this event- Returns:
- A reference to this Builder instance
-
additionalContext
public SubscriptionStatus.NotificationEvent.Builder additionalContext(Reference... additionalContext)
Additional context information for this event. Generally, this will contain references to additional resources included with the event (e.g., the Patient relevant to an Encounter), however it MAY refer to non-FHIR objects.Adds new element(s) to the existing list. If any of the elements are null, calling
build()will fail.- Parameters:
additionalContext- Additional context for this event- Returns:
- A reference to this Builder instance
-
additionalContext
public SubscriptionStatus.NotificationEvent.Builder additionalContext(java.util.Collection<Reference> additionalContext)
Additional context information for this event. Generally, this will contain references to additional resources included with the event (e.g., the Patient relevant to an Encounter), however it MAY refer to non-FHIR objects.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:
additionalContext- Additional context for this event- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException- If the passed collection is null
-
build
public SubscriptionStatus.NotificationEvent build()
- Specified by:
buildin interfaceBuilder<Element>- Specified by:
buildin classBackboneElement.Builder- Returns:
- An immutable object of type
SubscriptionStatus.NotificationEvent - Throws:
java.lang.IllegalStateException- if the current state cannot be built into a valid NotificationEvent per the base specification
-
validate
protected void validate(SubscriptionStatus.NotificationEvent notificationEvent)
-
from
protected SubscriptionStatus.NotificationEvent.Builder from(SubscriptionStatus.NotificationEvent notificationEvent)
-
-