Class AttachmentBuilder.Impl
- java.lang.Object
-
- com.babylonhealth.lit.core_java.builders.AttachmentBuilder.Impl
-
- All Implemented Interfaces:
AttachmentBuilder,ElementBuilder
- Enclosing interface:
- AttachmentBuilder
public static class AttachmentBuilder.Impl extends java.lang.Object implements AttachmentBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.babylonhealth.lit.core_java.builders.AttachmentBuilder
AttachmentBuilder.Impl
-
-
Constructor Summary
Constructors Constructor Description Impl()Required fields forAttachment
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.babylonhealth.lit.core.model.Attachmentbuild()AttachmentBuilder.ImplwithContentType(@NonNull java.lang.String contentType)AttachmentBuilder.ImplwithCreation(@NonNull com.babylonhealth.lit.core.FHIRDateTime creation)AttachmentBuilder.ImplwithData(@lombok.NonNull byte[] data)AttachmentBuilder.ImplwithExtension(@NonNull ExtensionBuilder... extension)AttachmentBuilder.ImplwithExtension(@NonNull com.babylonhealth.lit.core.model.Extension... extension)AttachmentBuilder.ImplwithExtension(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)AttachmentBuilder.ImplwithHash(@lombok.NonNull byte[] hash)AttachmentBuilder.ImplwithId(@NonNull java.lang.String id)AttachmentBuilder.ImplwithLanguage(@NonNull com.babylonhealth.lit.core.LANGUAGES language)AttachmentBuilder.ImplwithSize(@NonNull java.lang.Integer size)AttachmentBuilder.ImplwithTitle(@NonNull java.lang.String title)AttachmentBuilder.ImplwithUrl(@NonNull java.lang.String url)
-
-
-
Method Detail
-
withId
public AttachmentBuilder.Impl withId(@NonNull @NonNull java.lang.String id)
- Parameters:
id- - Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
-
withUrl
public AttachmentBuilder.Impl withUrl(@NonNull @NonNull java.lang.String url)
- Parameters:
url- - A location where the data can be accessed.
-
withData
public AttachmentBuilder.Impl withData(@NonNull @lombok.NonNull byte[] data)
- Parameters:
data- - The actual data of the attachment - a sequence of bytes, base64 encoded.
-
withSize
public AttachmentBuilder.Impl withSize(@NonNull @NonNull java.lang.Integer size)
- Parameters:
size- - The number of bytes of data that make up this attachment (before base64 encoding, if that is done).
-
withHash
public AttachmentBuilder.Impl withHash(@NonNull @lombok.NonNull byte[] hash)
- Parameters:
hash- - The calculated hash of the data using SHA-1. Represented using base64.
-
withTitle
public AttachmentBuilder.Impl withTitle(@NonNull @NonNull java.lang.String title)
- Parameters:
title- - A label or set of text to display in place of the data.
-
withLanguage
public AttachmentBuilder.Impl withLanguage(@NonNull @NonNull com.babylonhealth.lit.core.LANGUAGES language)
- Parameters:
language- - The human language of the content. The value can be any valid value according to BCP 47.
-
withCreation
public AttachmentBuilder.Impl withCreation(@NonNull @NonNull com.babylonhealth.lit.core.FHIRDateTime creation)
- Parameters:
creation- - The date that the attachment was first created.
-
withExtension
public AttachmentBuilder.Impl withExtension(@NonNull @NonNull com.babylonhealth.lit.core.model.Extension... extension)
- Parameters:
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.
-
withExtension
public AttachmentBuilder.Impl withExtension(@NonNull @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)
- Parameters:
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.
-
withExtension
public AttachmentBuilder.Impl withExtension(@NonNull @NonNull ExtensionBuilder... extension)
-
withContentType
public AttachmentBuilder.Impl withContentType(@NonNull @NonNull java.lang.String contentType)
- Parameters:
contentType- - Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.
-
build
public com.babylonhealth.lit.core.model.Attachment build()
- Specified by:
buildin interfaceAttachmentBuilder- Specified by:
buildin interfaceElementBuilder
-
-