Class ResourceBuilder.Impl
- java.lang.Object
-
- com.babylonhealth.lit.core_java.builders.ResourceBuilder.Impl
-
- All Implemented Interfaces:
ResourceBuilder
- Enclosing interface:
- ResourceBuilder
public static class ResourceBuilder.Impl extends java.lang.Object implements ResourceBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.babylonhealth.lit.core_java.builders.ResourceBuilder
ResourceBuilder.Impl
-
-
Constructor Summary
Constructors Constructor Description Impl()Required fields forResource
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.babylonhealth.lit.core.model.Resourcebuild()ResourceBuilder.ImplwithId(@NonNull java.lang.String id)ResourceBuilder.ImplwithImplicitRules(@NonNull java.lang.String implicitRules)ResourceBuilder.ImplwithLanguage(@NonNull com.babylonhealth.lit.core.LANGUAGES language)ResourceBuilder.ImplwithMeta(@NonNull MetaBuilder meta)ResourceBuilder.ImplwithMeta(@NonNull com.babylonhealth.lit.core.model.Meta meta)ResourceBuilder.ImplwithoutMeta()
-
-
-
Method Detail
-
withId
public ResourceBuilder.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 ResourceBuilder.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 ResourceBuilder.Impl withMeta(@NonNull @NonNull MetaBuilder meta)
-
withLanguage
public ResourceBuilder.Impl withLanguage(@NonNull @NonNull com.babylonhealth.lit.core.LANGUAGES language)
- Parameters:
language- - The base language in which the resource is written.
-
withImplicitRules
public ResourceBuilder.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.
-
withoutMeta
public ResourceBuilder.Impl withoutMeta()
-
build
public com.babylonhealth.lit.core.model.Resource build()
- Specified by:
buildin interfaceResourceBuilder
-
-