Interface CustomObjectDraft
- All Superinterfaces:
Draft<CustomObjectDraft>
CustomObjectDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomObjectDraft customObjectDraft = CustomObjectDraft.builder()
.container("{container}")
.key("{key}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomObjectDraftBuilderbuilder()builder factory method for CustomObjectDraftstatic CustomObjectDraftBuilderbuilder(CustomObjectDraft template) create builder for CustomObjectDraft instancecopyDeep()static CustomObjectDraftdeepCopy(CustomObjectDraft template) factory method to create a deep copy of CustomObjectDraft@NotNull StringNamespace to group CustomObjects.@NotNull StringgetKey()User-defined unique identifier of the CustomObject within the definedcontainer.@NotNull ObjectgetValue()Can be any JSON standard type, such as number, string, boolean, array, object, or a common API data type.Current version of the CustomObject.static CustomObjectDraftof()factory methodstatic CustomObjectDraftof(CustomObjectDraft template) factory method to create a shallow copy CustomObjectDraftvoidsetContainer(String container) Namespace to group CustomObjects.voidUser-defined unique identifier of the CustomObject within the definedcontainer.voidCan be any JSON standard type, such as number, string, boolean, array, object, or a common API data type.voidsetVersion(Long version) Current version of the CustomObject.static com.fasterxml.jackson.core.type.TypeReference<CustomObjectDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCustomObjectDraft(Function<CustomObjectDraft, T> helper) accessor map function
-
Method Details
-
getContainer
Namespace to group CustomObjects.
- Returns:
- container
-
getKey
User-defined unique identifier of the CustomObject within the defined
container.- Returns:
- key
-
getValue
Can be any JSON standard type, such as number, string, boolean, array, object, or a common API data type.
- Fields within
valuethat havenullvalues are not saved. - For values of type Reference the integrity of the data is not guaranteed. If the referenced object is deleted, the API does not delete the corresponding reference to it and the
valuepoints to a non-existing object in such case.
- Returns:
- value
- Fields within
-
getVersion
Long getVersion()Current version of the CustomObject.
- Returns:
- version
-
setContainer
Namespace to group CustomObjects.
- Parameters:
container- value to be set
-
setKey
User-defined unique identifier of the CustomObject within the defined
container.- Parameters:
key- value to be set
-
setValue
Can be any JSON standard type, such as number, string, boolean, array, object, or a common API data type.
- Fields within
valuethat havenullvalues are not saved. - For values of type Reference the integrity of the data is not guaranteed. If the referenced object is deleted, the API does not delete the corresponding reference to it and the
valuepoints to a non-existing object in such case.
- Parameters:
value- value to be set
- Fields within
-
setVersion
Current version of the CustomObject.
- Parameters:
version- value to be set
-
of
factory method- Returns:
- instance of CustomObjectDraft
-
of
factory method to create a shallow copy CustomObjectDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomObjectDraft copyDeep() -
deepCopy
factory method to create a deep copy of CustomObjectDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomObjectDraft- Returns:
- builder
-
builder
create builder for CustomObjectDraft instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCustomObjectDraft
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-