Interface CustomObjectDraft
- All Superinterfaces:
io.vrap.rmf.base.client.Draft<CustomObjectDraft>
- All Known Implementing Classes:
CustomObjectDraftImpl
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()
JSON standard types Number, String, Boolean, Array, Object, and common API data types.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
JSON standard types Number, String, Boolean, Array, Object, and common API data types.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
JSON standard types Number, String, Boolean, Array, Object, and common API data types. 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
-
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
JSON standard types Number, String, Boolean, Array, Object, and common API data types. 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
-
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
-