Class Contract.Term.Asset.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- com.ibm.fhir.model.type.BackboneElement.Builder
-
- com.ibm.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 com.ibm.fhir.model.type.BackboneElement.Builder
modifierExtension
-
Fields inherited from class com.ibm.fhir.model.type.Element.Builder
extension, id
-
Fields inherited from class com.ibm.fhir.model.builder.AbstractBuilder
validating
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Contract.Term.Asset.Builderanswer(Contract.Term.Offer.Answer... answer)Response to assets.Contract.Term.Asset.Builderanswer(Collection<Contract.Term.Offer.Answer> answer)Response to assets.Contract.Term.Assetbuild()Build theContract.Term.AssetContract.Term.Asset.Buildercondition(String condition)Description of the quality and completeness of the asset that imay be a factor in its valuation.Contract.Term.Asset.Buildercondition(String condition)Convenience method for settingcondition.Contract.Term.Asset.Buildercontext(Contract.Term.Asset.Context... context)Circumstance of the asset.Contract.Term.Asset.Buildercontext(Collection<Contract.Term.Asset.Context> context)Circumstance of the asset.Contract.Term.Asset.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the element.Contract.Term.Asset.Builderextension(Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the element.protected Contract.Term.Asset.Builderfrom(Contract.Term.Asset asset)Contract.Term.Asset.Builderid(String id)Unique id for the element within a resource (for internal references).Contract.Term.Asset.BuilderlinkId(String... linkId)Id [identifier??] of the clause or question text about the asset in the referenced form or QuestionnaireResponse.Contract.Term.Asset.BuilderlinkId(String... linkId)Convenience method for settinglinkId.Contract.Term.Asset.BuilderlinkId(Collection<String> linkId)Id [identifier??] of the clause or question text about the asset in the referenced form or QuestionnaireResponse.Contract.Term.Asset.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.Contract.Term.Asset.BuildermodifierExtension(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.Builderperiod(Period... period)Asset relevant contractual time period.Contract.Term.Asset.Builderperiod(Collection<Period> period)Asset relevant contractual time period.Contract.Term.Asset.BuilderperiodType(CodeableConcept... periodType)Type of Asset availability for use or ownership.Contract.Term.Asset.BuilderperiodType(Collection<CodeableConcept> periodType)Type of Asset availability for use or ownership.Contract.Term.Asset.Builderrelationship(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.Builderscope(CodeableConcept scope)Differentiates the kind of the asset .Contract.Term.Asset.BuildersecurityLabelNumber(UnsignedInt... securityLabelNumber)Security labels that protects the asset.Contract.Term.Asset.BuildersecurityLabelNumber(Collection<UnsignedInt> securityLabelNumber)Security labels that protects the asset.Contract.Term.Asset.Buildersubtype(CodeableConcept... subtype)May be a subtype or part of an offered asset.Contract.Term.Asset.Buildersubtype(Collection<CodeableConcept> subtype)May be a subtype or part of an offered asset.Contract.Term.Asset.Buildertext(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.Buildertext(String text)Convenience method for settingtext.Contract.Term.Asset.Buildertype(CodeableConcept... type)Target entity type about which the term may be concerned.Contract.Term.Asset.Buildertype(Collection<CodeableConcept> type)Target entity type about which the term may be concerned.Contract.Term.Asset.BuildertypeReference(Reference... typeReference)Associated entities.Contract.Term.Asset.BuildertypeReference(Collection<Reference> typeReference)Associated entities.Contract.Term.Asset.BuilderusePeriod(Period... usePeriod)Time period of asset use.Contract.Term.Asset.BuilderusePeriod(Collection<Period> usePeriod)Time period of asset use.protected voidvalidate(Contract.Term.Asset asset)Contract.Term.Asset.BuildervaluedItem(Contract.Term.Asset.ValuedItem... valuedItem)Contract Valued Item List.Contract.Term.Asset.BuildervaluedItem(Collection<Contract.Term.Asset.ValuedItem> valuedItem)Contract Valued Item List.-
Methods inherited from class com.ibm.fhir.model.type.BackboneElement.Builder
from, validate
-
Methods inherited from class com.ibm.fhir.model.type.Element.Builder
from, validate
-
Methods inherited from class com.ibm.fhir.model.builder.AbstractBuilder
isValidating, setValidating
-
-
-
-
Method Detail
-
id
public Contract.Term.Asset.Builder id(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 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:
extensionin classBackboneElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public Contract.Term.Asset.Builder extension(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:
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:
modifierExtensionin 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(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:
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(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:
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(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:
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(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:
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(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:
NullPointerException- If the passed collection is null
-
condition
public Contract.Term.Asset.Builder condition(String condition)
Convenience method for settingcondition.- Parameters:
condition- Quality desctiption of asset- Returns:
- A reference to this Builder instance
- See Also:
condition(com.ibm.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(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:
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(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:
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(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:
NullPointerException- If the passed collection is null
-
text
public Contract.Term.Asset.Builder text(String text)
Convenience method for settingtext.- Parameters:
text- Asset clause or question text- Returns:
- A reference to this Builder instance
- See Also:
text(com.ibm.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(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(com.ibm.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(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:
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(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:
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(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:
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(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:
NullPointerException- If the passed collection is null
-
build
public Contract.Term.Asset build()
Build theContract.Term.Asset- Specified by:
buildin interfaceBuilder<Element>- Specified by:
buildin classBackboneElement.Builder- Returns:
- An immutable object of type
Contract.Term.Asset - Throws:
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)
-
-