Class Binary.Builder
- java.lang.Object
-
- org.linuxforhealth.fhir.model.builder.AbstractBuilder<Resource>
-
- org.linuxforhealth.fhir.model.resource.Resource.Builder
-
- org.linuxforhealth.fhir.model.resource.Binary.Builder
-
- Enclosing class:
- Binary
public static class Binary.Builder extends Resource.Builder
-
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.model.resource.Resource.Builder
id, implicitRules, language, meta
-
Fields inherited from class org.linuxforhealth.fhir.model.builder.AbstractBuilder
validating
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Binary
build()
Build theBinary
Binary.Builder
contentType(Code contentType)
MimeType of the binary content represented as a standard MimeType (BCP 13).Binary.Builder
data(Base64Binary data)
The actual content, base64 encoded.protected Binary.Builder
from(Binary binary)
Binary.Builder
id(java.lang.String id)
The logical id of the resource, as used in the URL for the resource.Binary.Builder
implicitRules(Uri 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.Binary.Builder
language(Code language)
The base language in which the resource is written.Binary.Builder
meta(Meta meta)
The metadata about the resource.Binary.Builder
securityContext(Reference 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.protected void
validate(Binary binary)
-
Methods inherited from class org.linuxforhealth.fhir.model.resource.Resource.Builder
from, validate
-
Methods inherited from class org.linuxforhealth.fhir.model.builder.AbstractBuilder
isValidating, setValidating
-
-
-
-
Method Detail
-
id
public Binary.Builder id(java.lang.String id)
The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.- Overrides:
id
in classResource.Builder
- Parameters:
id
- Logical id of this artifact- Returns:
- A reference to this Builder instance
-
meta
public Binary.Builder meta(Meta 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.- Overrides:
meta
in classResource.Builder
- Parameters:
meta
- Metadata about the resource- Returns:
- A reference to this Builder instance
-
implicitRules
public Binary.Builder implicitRules(Uri 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.- Overrides:
implicitRules
in classResource.Builder
- Parameters:
implicitRules
- A set of rules under which this content was created- Returns:
- A reference to this Builder instance
-
language
public Binary.Builder language(Code language)
The base language in which the resource is written.- Overrides:
language
in classResource.Builder
- Parameters:
language
- Language of the resource content- Returns:
- A reference to this Builder instance
-
contentType
public Binary.Builder contentType(Code contentType)
MimeType of the binary content represented as a standard MimeType (BCP 13).This element is required.
- Parameters:
contentType
- MimeType of the binary content- Returns:
- A reference to this Builder instance
-
securityContext
public Binary.Builder securityContext(Reference 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.- Parameters:
securityContext
- Identifies another resource to use as proxy when enforcing access control- Returns:
- A reference to this Builder instance
-
data
public Binary.Builder data(Base64Binary data)
The actual content, base64 encoded.- Parameters:
data
- The actual content- Returns:
- A reference to this Builder instance
-
build
public Binary build()
-
validate
protected void validate(Binary binary)
-
from
protected Binary.Builder from(Binary binary)
-
-