Package com.ibm.fhir.model.type
Class Base64Binary.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- com.ibm.fhir.model.type.Base64Binary.Builder
-
- Enclosing class:
- Base64Binary
public static class Base64Binary.Builder extends Element.Builder
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.Element.Builder
extension, id
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Base64Binarybuild()Build theBase64BinaryBase64Binary.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the resource.Base64Binary.Builderextension(Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the resource.protected Base64Binary.Builderfrom(Base64Binary base64Binary)Base64Binary.Builderid(String id)unique id for the element within a resource (for internal references)Base64Binary.Buildervalue(byte[] value)The byte array of the actual valueBase64Binary.Buildervalue(String value)The base64 encoded value.-
Methods inherited from class com.ibm.fhir.model.type.Element.Builder
from
-
-
-
-
Method Detail
-
id
public Base64Binary.Builder id(String id)
unique id for the element within a resource (for internal references)- Overrides:
idin classElement.Builder- Parameters:
id- xml:id (or equivalent in JSON)- Returns:
- A reference to this Builder instance
-
extension
public Base64Binary.Builder extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the resource. 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
- Overrides:
extensionin classElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public Base64Binary.Builder extension(Collection<Extension> extension)
May be used to represent additional information that is not part of the basic definition of the resource. 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
- Overrides:
extensionin classElement.Builder- Parameters:
extension- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
value
public Base64Binary.Builder value(byte[] value)
The byte array of the actual value- Parameters:
value- The byte array of the actual value- Returns:
- A reference to this Builder instance
-
value
public Base64Binary.Builder value(String value)
The base64 encoded value.- Parameters:
value- The base64 encoded string- Returns:
- A reference to this Builder instance
-
build
public Base64Binary build()
Build theBase64Binary- Specified by:
buildin interfaceBuilder<Element>- Specified by:
buildin classElement.Builder- Returns:
- An immutable object of type
Base64Binary - Throws:
IllegalStateException- if the current state cannot be built into a valid Base64Binary per the base specification
-
from
protected Base64Binary.Builder from(Base64Binary base64Binary)
-
-