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 CustomObjectDraftBuilder
builder()
builder factory method for CustomObjectDraftstatic CustomObjectDraftBuilder
builder
(CustomObjectDraft template) create builder for CustomObjectDraft instancestatic CustomObjectDraft
deepCopy
(CustomObjectDraft template) factory method to create a deep copy of CustomObjectDraft@NotNull String
Namespace to group CustomObjects.@NotNull String
getKey()
User-defined unique identifier of the CustomObject within the definedcontainer
.@NotNull Object
getValue()
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 CustomObjectDraft
of()
factory methodstatic CustomObjectDraft
of
(CustomObjectDraft template) factory method to create a shallow copy CustomObjectDraftvoid
setContainer
(String container) Namespace to group CustomObjects.void
User-defined unique identifier of the CustomObject within the definedcontainer
.void
Can be any JSON standard type, such as number, string, boolean, array, object, or a common API data type.void
setVersion
(Long version) Current version of the CustomObject.static com.fasterxml.jackson.core.type.TypeReference<CustomObjectDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCustomObjectDraft
(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
value
that havenull
values 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
value
points 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
value
that havenull
values 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
value
points 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
-
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
-