Class AttachmentBuilder.Impl

    • Constructor Detail

      • Impl

        public Impl()
        Required fields for Attachment
    • 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.
      • 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.