Class SubscriptionTopic.ResourceTrigger.QueryCriteria.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.SubscriptionTopic.ResourceTrigger.QueryCriteria.Builder
 
 
 
 
 
- 
- Enclosing class:
 - SubscriptionTopic.ResourceTrigger.QueryCriteria
 
public static class SubscriptionTopic.ResourceTrigger.QueryCriteria.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 SubscriptionTopic.ResourceTrigger.QueryCriteriabuild()SubscriptionTopic.ResourceTrigger.QueryCriteria.Buildercurrent(java.lang.String current)Convenience method for settingcurrent.SubscriptionTopic.ResourceTrigger.QueryCriteria.Buildercurrent(String current)The FHIR query based rules are applied to the current resource state (e.g., state after an update).SubscriptionTopic.ResourceTrigger.QueryCriteria.Builderextension(java.util.Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the element.SubscriptionTopic.ResourceTrigger.QueryCriteria.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the element.protected SubscriptionTopic.ResourceTrigger.QueryCriteria.Builderfrom(SubscriptionTopic.ResourceTrigger.QueryCriteria queryCriteria)SubscriptionTopic.ResourceTrigger.QueryCriteria.Builderid(java.lang.String id)Unique id for the element within a resource (for internal references).SubscriptionTopic.ResourceTrigger.QueryCriteria.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.SubscriptionTopic.ResourceTrigger.QueryCriteria.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.SubscriptionTopic.ResourceTrigger.QueryCriteria.Builderprevious(java.lang.String previous)Convenience method for settingprevious.SubscriptionTopic.ResourceTrigger.QueryCriteria.Builderprevious(String previous)The FHIR query based rules are applied to the previous resource state (e.g., state before an update).SubscriptionTopic.ResourceTrigger.QueryCriteria.BuilderrequireBoth(java.lang.Boolean requireBoth)Convenience method for settingrequireBoth.SubscriptionTopic.ResourceTrigger.QueryCriteria.BuilderrequireBoth(Boolean requireBoth)If set to true, both current and previous criteria must evaluate true to trigger a notification for this topic.SubscriptionTopic.ResourceTrigger.QueryCriteria.BuilderresultForCreate(CriteriaNotExistsBehavior resultForCreate)For "create" interactions, should the "previous" criteria count as an automatic pass or an automatic fail.SubscriptionTopic.ResourceTrigger.QueryCriteria.BuilderresultForDelete(CriteriaNotExistsBehavior resultForDelete)For "delete" interactions, should the "current" criteria count as an automatic pass or an automatic fail.protected voidvalidate(SubscriptionTopic.ResourceTrigger.QueryCriteria queryCriteria)- 
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 SubscriptionTopic.ResourceTrigger.QueryCriteria.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 SubscriptionTopic.ResourceTrigger.QueryCriteria.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 SubscriptionTopic.ResourceTrigger.QueryCriteria.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 SubscriptionTopic.ResourceTrigger.QueryCriteria.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 SubscriptionTopic.ResourceTrigger.QueryCriteria.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
 
- 
previous
public SubscriptionTopic.ResourceTrigger.QueryCriteria.Builder previous(java.lang.String previous)
Convenience method for settingprevious.- Parameters:
 previous- Rule applied to previous resource state- Returns:
 - A reference to this Builder instance
 - See Also:
 previous(org.linuxforhealth.fhir.model.type.String)
 
- 
previous
public SubscriptionTopic.ResourceTrigger.QueryCriteria.Builder previous(String previous)
The FHIR query based rules are applied to the previous resource state (e.g., state before an update).- Parameters:
 previous- Rule applied to previous resource state- Returns:
 - A reference to this Builder instance
 
 
- 
resultForCreate
public SubscriptionTopic.ResourceTrigger.QueryCriteria.Builder resultForCreate(CriteriaNotExistsBehavior resultForCreate)
For "create" interactions, should the "previous" criteria count as an automatic pass or an automatic fail.- Parameters:
 resultForCreate- test-passes | test-fails- Returns:
 - A reference to this Builder instance
 
 
- 
current
public SubscriptionTopic.ResourceTrigger.QueryCriteria.Builder current(java.lang.String current)
Convenience method for settingcurrent.- Parameters:
 current- Rule applied to current resource state- Returns:
 - A reference to this Builder instance
 - See Also:
 current(org.linuxforhealth.fhir.model.type.String)
 
- 
current
public SubscriptionTopic.ResourceTrigger.QueryCriteria.Builder current(String current)
The FHIR query based rules are applied to the current resource state (e.g., state after an update).- Parameters:
 current- Rule applied to current resource state- Returns:
 - A reference to this Builder instance
 
 
- 
resultForDelete
public SubscriptionTopic.ResourceTrigger.QueryCriteria.Builder resultForDelete(CriteriaNotExistsBehavior resultForDelete)
For "delete" interactions, should the "current" criteria count as an automatic pass or an automatic fail.- Parameters:
 resultForDelete- test-passes | test-fails- Returns:
 - A reference to this Builder instance
 
 
- 
requireBoth
public SubscriptionTopic.ResourceTrigger.QueryCriteria.Builder requireBoth(java.lang.Boolean requireBoth)
Convenience method for settingrequireBoth.- Parameters:
 requireBoth- Both must be true flag- Returns:
 - A reference to this Builder instance
 - See Also:
 requireBoth(org.linuxforhealth.fhir.model.type.Boolean)
 
- 
requireBoth
public SubscriptionTopic.ResourceTrigger.QueryCriteria.Builder requireBoth(Boolean requireBoth)
If set to true, both current and previous criteria must evaluate true to trigger a notification for this topic. Otherwise a notification for this topic will be triggered if either one evaluates to true.- Parameters:
 requireBoth- Both must be true flag- Returns:
 - A reference to this Builder instance
 
 
- 
build
public SubscriptionTopic.ResourceTrigger.QueryCriteria build()
- Specified by:
 buildin interfaceBuilder<Element>- Specified by:
 buildin classBackboneElement.Builder- Returns:
 - An immutable object of type 
SubscriptionTopic.ResourceTrigger.QueryCriteria - Throws:
 java.lang.IllegalStateException- if the current state cannot be built into a valid QueryCriteria per the base specification
 
- 
validate
protected void validate(SubscriptionTopic.ResourceTrigger.QueryCriteria queryCriteria)
 
- 
from
protected SubscriptionTopic.ResourceTrigger.QueryCriteria.Builder from(SubscriptionTopic.ResourceTrigger.QueryCriteria queryCriteria)
 
 - 
 
 -