Class Contract.Term.Asset.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.Contract.Term.Asset.Builder
-
- Enclosing class:
- Contract.Term.Asset
public static class Contract.Term.Asset.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 Contract.Term.Asset.Builder
answer(java.util.Collection<Contract.Term.Offer.Answer> answer)
Response to assets.Contract.Term.Asset.Builder
answer(Contract.Term.Offer.Answer... answer)
Response to assets.Contract.Term.Asset
build()
Build theContract.Term.Asset
Contract.Term.Asset.Builder
condition(java.lang.String condition)
Convenience method for settingcondition
.Contract.Term.Asset.Builder
condition(String condition)
Description of the quality and completeness of the asset that imay be a factor in its valuation.Contract.Term.Asset.Builder
context(java.util.Collection<Contract.Term.Asset.Context> context)
Circumstance of the asset.Contract.Term.Asset.Builder
context(Contract.Term.Asset.Context... context)
Circumstance of the asset.Contract.Term.Asset.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.Contract.Term.Asset.Builder
extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the element.protected Contract.Term.Asset.Builder
from(Contract.Term.Asset asset)
Contract.Term.Asset.Builder
id(java.lang.String id)
Unique id for the element within a resource (for internal references).Contract.Term.Asset.Builder
linkId(java.lang.String... linkId)
Convenience method for settinglinkId
.Contract.Term.Asset.Builder
linkId(java.util.Collection<String> linkId)
Id [identifier??] of the clause or question text about the asset in the referenced form or QuestionnaireResponse.Contract.Term.Asset.Builder
linkId(String... linkId)
Id [identifier??] of the clause or question text about the asset in the referenced form or QuestionnaireResponse.Contract.Term.Asset.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.Contract.Term.Asset.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.Contract.Term.Asset.Builder
period(java.util.Collection<Period> period)
Asset relevant contractual time period.Contract.Term.Asset.Builder
period(Period... period)
Asset relevant contractual time period.Contract.Term.Asset.Builder
periodType(java.util.Collection<CodeableConcept> periodType)
Type of Asset availability for use or ownership.Contract.Term.Asset.Builder
periodType(CodeableConcept... periodType)
Type of Asset availability for use or ownership.Contract.Term.Asset.Builder
relationship(Coding relationship)
Specifies the applicability of the term to an asset resource instance, and instances it refers to orinstances that refer to it, and/or are owned by the offeree.Contract.Term.Asset.Builder
scope(CodeableConcept scope)
Differentiates the kind of the asset .Contract.Term.Asset.Builder
securityLabelNumber(java.util.Collection<UnsignedInt> securityLabelNumber)
Security labels that protects the asset.Contract.Term.Asset.Builder
securityLabelNumber(UnsignedInt... securityLabelNumber)
Security labels that protects the asset.Contract.Term.Asset.Builder
subtype(java.util.Collection<CodeableConcept> subtype)
May be a subtype or part of an offered asset.Contract.Term.Asset.Builder
subtype(CodeableConcept... subtype)
May be a subtype or part of an offered asset.Contract.Term.Asset.Builder
text(java.lang.String text)
Convenience method for settingtext
.Contract.Term.Asset.Builder
text(String text)
Clause or question text (Prose Object) concerning the asset in a linked form, such as a QuestionnaireResponse used in the formation of the contract.Contract.Term.Asset.Builder
type(java.util.Collection<CodeableConcept> type)
Target entity type about which the term may be concerned.Contract.Term.Asset.Builder
type(CodeableConcept... type)
Target entity type about which the term may be concerned.Contract.Term.Asset.Builder
typeReference(java.util.Collection<Reference> typeReference)
Associated entities.Contract.Term.Asset.Builder
typeReference(Reference... typeReference)
Associated entities.Contract.Term.Asset.Builder
usePeriod(java.util.Collection<Period> usePeriod)
Time period of asset use.Contract.Term.Asset.Builder
usePeriod(Period... usePeriod)
Time period of asset use.protected void
validate(Contract.Term.Asset asset)
Contract.Term.Asset.Builder
valuedItem(java.util.Collection<Contract.Term.Asset.ValuedItem> valuedItem)
Contract Valued Item List.Contract.Term.Asset.Builder
valuedItem(Contract.Term.Asset.ValuedItem... valuedItem)
Contract Valued Item List.-
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 Contract.Term.Asset.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 Contract.Term.Asset.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 Contract.Term.Asset.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 Contract.Term.Asset.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 Contract.Term.Asset.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
-
scope
public Contract.Term.Asset.Builder scope(CodeableConcept scope)
Differentiates the kind of the asset .- Parameters:
scope
- Range of asset- Returns:
- A reference to this Builder instance
-
type
public Contract.Term.Asset.Builder type(CodeableConcept... type)
Target entity type about which the term may be concerned.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
type
- Asset category- Returns:
- A reference to this Builder instance
-
type
public Contract.Term.Asset.Builder type(java.util.Collection<CodeableConcept> type)
Target entity type about which the term may be concerned.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:
type
- Asset category- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
typeReference
public Contract.Term.Asset.Builder typeReference(Reference... typeReference)
Associated entities.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
typeReference
- Associated entities- Returns:
- A reference to this Builder instance
-
typeReference
public Contract.Term.Asset.Builder typeReference(java.util.Collection<Reference> typeReference)
Associated entities.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:
typeReference
- Associated entities- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
subtype
public Contract.Term.Asset.Builder subtype(CodeableConcept... subtype)
May be a subtype or part of an offered asset.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
subtype
- Asset sub-category- Returns:
- A reference to this Builder instance
-
subtype
public Contract.Term.Asset.Builder subtype(java.util.Collection<CodeableConcept> subtype)
May be a subtype or part of an offered asset.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:
subtype
- Asset sub-category- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
relationship
public Contract.Term.Asset.Builder relationship(Coding relationship)
Specifies the applicability of the term to an asset resource instance, and instances it refers to orinstances that refer to it, and/or are owned by the offeree.- Parameters:
relationship
- Kinship of the asset- Returns:
- A reference to this Builder instance
-
context
public Contract.Term.Asset.Builder context(Contract.Term.Asset.Context... context)
Circumstance of the asset.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
context
- Circumstance of the asset- Returns:
- A reference to this Builder instance
-
context
public Contract.Term.Asset.Builder context(java.util.Collection<Contract.Term.Asset.Context> context)
Circumstance of the asset.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:
context
- Circumstance of the asset- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
condition
public Contract.Term.Asset.Builder condition(java.lang.String condition)
Convenience method for settingcondition
.- Parameters:
condition
- Quality desctiption of asset- Returns:
- A reference to this Builder instance
- See Also:
condition(org.linuxforhealth.fhir.model.type.String)
-
condition
public Contract.Term.Asset.Builder condition(String condition)
Description of the quality and completeness of the asset that imay be a factor in its valuation.- Parameters:
condition
- Quality desctiption of asset- Returns:
- A reference to this Builder instance
-
periodType
public Contract.Term.Asset.Builder periodType(CodeableConcept... periodType)
Type of Asset availability for use or ownership.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
periodType
- Asset availability types- Returns:
- A reference to this Builder instance
-
periodType
public Contract.Term.Asset.Builder periodType(java.util.Collection<CodeableConcept> periodType)
Type of Asset availability for use or ownership.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:
periodType
- Asset availability types- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
period
public Contract.Term.Asset.Builder period(Period... period)
Asset relevant contractual time period.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
period
- Time period of the asset- Returns:
- A reference to this Builder instance
-
period
public Contract.Term.Asset.Builder period(java.util.Collection<Period> period)
Asset relevant contractual time period.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:
period
- Time period of the asset- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
usePeriod
public Contract.Term.Asset.Builder usePeriod(Period... usePeriod)
Time period of asset use.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
usePeriod
- Time period- Returns:
- A reference to this Builder instance
-
usePeriod
public Contract.Term.Asset.Builder usePeriod(java.util.Collection<Period> usePeriod)
Time period of asset use.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:
usePeriod
- Time period- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
text
public Contract.Term.Asset.Builder text(java.lang.String text)
Convenience method for settingtext
.- Parameters:
text
- Asset clause or question text- Returns:
- A reference to this Builder instance
- See Also:
text(org.linuxforhealth.fhir.model.type.String)
-
text
public Contract.Term.Asset.Builder text(String text)
Clause or question text (Prose Object) concerning the asset in a linked form, such as a QuestionnaireResponse used in the formation of the contract.- Parameters:
text
- Asset clause or question text- Returns:
- A reference to this Builder instance
-
linkId
public Contract.Term.Asset.Builder linkId(java.lang.String... linkId)
Convenience method for settinglinkId
.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
linkId
- Pointer to asset text- Returns:
- A reference to this Builder instance
- See Also:
#linkId(org.linuxforhealth.fhir.model.type.String)
-
linkId
public Contract.Term.Asset.Builder linkId(String... linkId)
Id [identifier??] of the clause or question text about the asset in the referenced form or QuestionnaireResponse.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
linkId
- Pointer to asset text- Returns:
- A reference to this Builder instance
-
linkId
public Contract.Term.Asset.Builder linkId(java.util.Collection<String> linkId)
Id [identifier??] of the clause or question text about the asset in the referenced form or QuestionnaireResponse.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:
linkId
- Pointer to asset text- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
answer
public Contract.Term.Asset.Builder answer(Contract.Term.Offer.Answer... answer)
Response to assets.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
answer
- Response to assets- Returns:
- A reference to this Builder instance
-
answer
public Contract.Term.Asset.Builder answer(java.util.Collection<Contract.Term.Offer.Answer> answer)
Response to assets.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:
answer
- Response to assets- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
securityLabelNumber
public Contract.Term.Asset.Builder securityLabelNumber(UnsignedInt... securityLabelNumber)
Security labels that protects the asset.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
securityLabelNumber
- Asset restriction numbers- Returns:
- A reference to this Builder instance
-
securityLabelNumber
public Contract.Term.Asset.Builder securityLabelNumber(java.util.Collection<UnsignedInt> securityLabelNumber)
Security labels that protects the asset.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:
securityLabelNumber
- Asset restriction numbers- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
valuedItem
public Contract.Term.Asset.Builder valuedItem(Contract.Term.Asset.ValuedItem... valuedItem)
Contract Valued Item List.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
valuedItem
- Contract Valued Item List- Returns:
- A reference to this Builder instance
-
valuedItem
public Contract.Term.Asset.Builder valuedItem(java.util.Collection<Contract.Term.Asset.ValuedItem> valuedItem)
Contract Valued Item List.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:
valuedItem
- Contract Valued Item List- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
build
public Contract.Term.Asset build()
Build theContract.Term.Asset
- Specified by:
build
in interfaceBuilder<Element>
- Specified by:
build
in classBackboneElement.Builder
- Returns:
- An immutable object of type
Contract.Term.Asset
- Throws:
java.lang.IllegalStateException
- if the current state cannot be built into a valid Asset per the base specification
-
validate
protected void validate(Contract.Term.Asset asset)
-
from
protected Contract.Term.Asset.Builder from(Contract.Term.Asset asset)
-
-