Class BinaryBuilder.Impl
- java.lang.Object
-
- com.babylonhealth.lit.hl7_java.builders.BinaryBuilder.Impl
-
- All Implemented Interfaces:
com.babylonhealth.lit.core_java.builders.ResourceBuilder,BinaryBuilder
- Enclosing interface:
- BinaryBuilder
public static class BinaryBuilder.Impl extends java.lang.Object implements BinaryBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.babylonhealth.lit.hl7_java.builders.BinaryBuilder
BinaryBuilder.Impl
-
-
Constructor Summary
Constructors Constructor Description Impl(java.lang.String contentType)Required fields forBinary
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.babylonhealth.lit.hl7.model.Binarybuild()BinaryBuilder.ImplwithData(@lombok.NonNull byte[] data)BinaryBuilder.ImplwithId(@NonNull java.lang.String id)BinaryBuilder.ImplwithImplicitRules(@NonNull java.lang.String implicitRules)BinaryBuilder.ImplwithLanguage(@NonNull com.babylonhealth.lit.core.LANGUAGES language)BinaryBuilder.ImplwithMeta(@NonNull com.babylonhealth.lit.core_java.builders.MetaBuilder meta)BinaryBuilder.ImplwithMeta(@NonNull com.babylonhealth.lit.core.model.Meta meta)BinaryBuilder.ImplwithoutMeta()BinaryBuilder.ImplwithSecurityContext(@NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder securityContext)BinaryBuilder.ImplwithSecurityContext(@NonNull com.babylonhealth.lit.core.model.Reference securityContext)
-
-
-
Method Detail
-
withId
public BinaryBuilder.Impl withId(@NonNull @NonNull java.lang.String id)
- Parameters:
id- - The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
-
withMeta
public BinaryBuilder.Impl withMeta(@NonNull @NonNull com.babylonhealth.lit.core.model.Meta meta)
- Parameters:
meta- - The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
-
withMeta
public BinaryBuilder.Impl withMeta(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.MetaBuilder meta)
-
withData
public BinaryBuilder.Impl withData(@NonNull @lombok.NonNull byte[] data)
- Parameters:
data- - The actual content, base64 encoded.
-
withLanguage
public BinaryBuilder.Impl withLanguage(@NonNull @NonNull com.babylonhealth.lit.core.LANGUAGES language)
- Parameters:
language- - The base language in which the resource is written.
-
withImplicitRules
public BinaryBuilder.Impl withImplicitRules(@NonNull @NonNull java.lang.String implicitRules)
- Parameters:
implicitRules- - A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
-
withSecurityContext
public BinaryBuilder.Impl withSecurityContext(@NonNull @NonNull com.babylonhealth.lit.core.model.Reference securityContext)
- Parameters:
securityContext- - This element identifies another resource that can be used as a proxy of the security sensitivity to use when deciding and enforcing access control rules for the Binary resource. Given that the Binary resource contains very few elements that can be used to determine the sensitivity of the data and relationships to individuals, the referenced resource stands in as a proxy equivalent for this purpose. This referenced resource may be related to the Binary (e.g. Media, DocumentReference), or may be some non-related Resource purely as a security proxy. E.g. to identify that the binary resource relates to a patient, and access should only be granted to applications that have access to the patient.
-
withSecurityContext
public BinaryBuilder.Impl withSecurityContext(@NonNull @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder securityContext)
-
withoutMeta
public BinaryBuilder.Impl withoutMeta()
-
build
public com.babylonhealth.lit.hl7.model.Binary build()
- Specified by:
buildin interfaceBinaryBuilder- Specified by:
buildin interfacecom.babylonhealth.lit.core_java.builders.ResourceBuilder
-
-