Class Contract.Term.Offer.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.Offer.Builder
-
- Enclosing class:
- Contract.Term.Offer
public static class Contract.Term.Offer.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.Offer.Builder
answer(Contract.Term.Offer.Answer... answer)
Response to offer text.Contract.Term.Offer.Builder
answer(java.util.Collection<Contract.Term.Offer.Answer> answer)
Response to offer text.Contract.Term.Offer
build()
Build theContract.Term.Offer
Contract.Term.Offer.Builder
decision(CodeableConcept decision)
Type of choice made by accepting party with respect to an offer made by an offeror/ grantee.Contract.Term.Offer.Builder
decisionMode(CodeableConcept... decisionMode)
How the decision about a Contract was conveyed.Contract.Term.Offer.Builder
decisionMode(java.util.Collection<CodeableConcept> decisionMode)
How the decision about a Contract was conveyed.Contract.Term.Offer.Builder
extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the element.Contract.Term.Offer.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.protected Contract.Term.Offer.Builder
from(Contract.Term.Offer offer)
Contract.Term.Offer.Builder
id(java.lang.String id)
Unique id for the element within a resource (for internal references).Contract.Term.Offer.Builder
identifier(Identifier... identifier)
Unique identifier for this particular Contract Provision.Contract.Term.Offer.Builder
identifier(java.util.Collection<Identifier> identifier)
Unique identifier for this particular Contract Provision.Contract.Term.Offer.Builder
linkId(String... linkId)
The id of the clause or question text of the offer in the referenced questionnaire/response.Contract.Term.Offer.Builder
linkId(java.lang.String... linkId)
Convenience method for settinglinkId
.Contract.Term.Offer.Builder
linkId(java.util.Collection<String> linkId)
The id of the clause or question text of the offer in the referenced questionnaire/response.Contract.Term.Offer.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.Offer.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.Offer.Builder
party(Contract.Term.Offer.Party... party)
Offer Recipient.Contract.Term.Offer.Builder
party(java.util.Collection<Contract.Term.Offer.Party> party)
Offer Recipient.Contract.Term.Offer.Builder
securityLabelNumber(UnsignedInt... securityLabelNumber)
Security labels that protects the offer.Contract.Term.Offer.Builder
securityLabelNumber(java.util.Collection<UnsignedInt> securityLabelNumber)
Security labels that protects the offer.Contract.Term.Offer.Builder
text(String text)
Human readable form of this Contract Offer.Contract.Term.Offer.Builder
text(java.lang.String text)
Convenience method for settingtext
.Contract.Term.Offer.Builder
topic(Reference topic)
The owner of an asset has the residual control rights over the asset: the right to decide all usages of the asset in any way not inconsistent with a prior contract, custom, or law (Hart, 1995, p.Contract.Term.Offer.Builder
type(CodeableConcept type)
Type of Contract Provision such as specific requirements, purposes for actions, obligations, prohibitions, e.g.protected void
validate(Contract.Term.Offer offer)
-
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.Offer.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.Offer.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.Offer.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.Offer.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.Offer.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
-
identifier
public Contract.Term.Offer.Builder identifier(Identifier... identifier)
Unique identifier for this particular Contract Provision.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
identifier
- Offer business ID- Returns:
- A reference to this Builder instance
-
identifier
public Contract.Term.Offer.Builder identifier(java.util.Collection<Identifier> identifier)
Unique identifier for this particular Contract Provision.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:
identifier
- Offer business ID- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
party
public Contract.Term.Offer.Builder party(Contract.Term.Offer.Party... party)
Offer Recipient.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
party
- Offer Recipient- Returns:
- A reference to this Builder instance
-
party
public Contract.Term.Offer.Builder party(java.util.Collection<Contract.Term.Offer.Party> party)
Offer Recipient.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:
party
- Offer Recipient- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
topic
public Contract.Term.Offer.Builder topic(Reference topic)
The owner of an asset has the residual control rights over the asset: the right to decide all usages of the asset in any way not inconsistent with a prior contract, custom, or law (Hart, 1995, p. 30).- Parameters:
topic
- Negotiable offer asset- Returns:
- A reference to this Builder instance
-
type
public Contract.Term.Offer.Builder type(CodeableConcept type)
Type of Contract Provision such as specific requirements, purposes for actions, obligations, prohibitions, e.g. life time maximum benefit.- Parameters:
type
- Contract Offer Type or Form- Returns:
- A reference to this Builder instance
-
decision
public Contract.Term.Offer.Builder decision(CodeableConcept decision)
Type of choice made by accepting party with respect to an offer made by an offeror/ grantee.- Parameters:
decision
- Accepting party choice- Returns:
- A reference to this Builder instance
-
decisionMode
public Contract.Term.Offer.Builder decisionMode(CodeableConcept... decisionMode)
How the decision about a Contract was conveyed.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
decisionMode
- How decision is conveyed- Returns:
- A reference to this Builder instance
-
decisionMode
public Contract.Term.Offer.Builder decisionMode(java.util.Collection<CodeableConcept> decisionMode)
How the decision about a Contract was conveyed.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:
decisionMode
- How decision is conveyed- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
answer
public Contract.Term.Offer.Builder answer(Contract.Term.Offer.Answer... answer)
Response to offer text.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
answer
- Response to offer text- Returns:
- A reference to this Builder instance
-
answer
public Contract.Term.Offer.Builder answer(java.util.Collection<Contract.Term.Offer.Answer> answer)
Response to offer text.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 offer text- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
text
public Contract.Term.Offer.Builder text(java.lang.String text)
Convenience method for settingtext
.- Parameters:
text
- Human readable offer text- Returns:
- A reference to this Builder instance
- See Also:
text(com.ibm.fhir.model.type.String)
-
text
public Contract.Term.Offer.Builder text(String text)
Human readable form of this Contract Offer.- Parameters:
text
- Human readable offer text- Returns:
- A reference to this Builder instance
-
linkId
public Contract.Term.Offer.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 text- Returns:
- A reference to this Builder instance
- See Also:
#linkId(com.ibm.fhir.model.type.String)
-
linkId
public Contract.Term.Offer.Builder linkId(String... linkId)
The id of the clause or question text of the offer in the referenced questionnaire/response.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
linkId
- Pointer to text- Returns:
- A reference to this Builder instance
-
linkId
public Contract.Term.Offer.Builder linkId(java.util.Collection<String> linkId)
The id of the clause or question text of the offer in the referenced questionnaire/response.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 text- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
securityLabelNumber
public Contract.Term.Offer.Builder securityLabelNumber(UnsignedInt... securityLabelNumber)
Security labels that protects the offer.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
securityLabelNumber
- Offer restriction numbers- Returns:
- A reference to this Builder instance
-
securityLabelNumber
public Contract.Term.Offer.Builder securityLabelNumber(java.util.Collection<UnsignedInt> securityLabelNumber)
Security labels that protects the offer.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
- Offer restriction numbers- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
build
public Contract.Term.Offer build()
Build theContract.Term.Offer
- Specified by:
build
in interfaceBuilder<Element>
- Specified by:
build
in classBackboneElement.Builder
- Returns:
- An immutable object of type
Contract.Term.Offer
- Throws:
java.lang.IllegalStateException
- if the current state cannot be built into a valid Offer per the base specification
-
validate
protected void validate(Contract.Term.Offer offer)
-
from
protected Contract.Term.Offer.Builder from(Contract.Term.Offer offer)
-
-