Interface CustomFieldsDraft
- All Superinterfaces:
Draft<CustomFieldsDraft>
The representation used when creating or updating a customizable data type with Custom Fields.
Example to create an instance using the builder pattern
CustomFieldsDraft customFieldsDraft = CustomFieldsDraft.builder()
.type(typeBuilder -> typeBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomFieldsDraftBuilder
builder()
builder factory method for CustomFieldsDraftstatic CustomFieldsDraftBuilder
builder
(CustomFields template) static CustomFieldsDraftBuilder
builder
(CustomFieldsDraft template) create builder for CustomFieldsDraft instancestatic CustomFieldsDraft
deepCopy
(CustomFieldsDraft template) factory method to create a deep copy of CustomFieldsDraft@Valid FieldContainer
Object containing the Custom Fields for the customized resource or data type.@NotNull @Valid TypeResourceIdentifier
getType()
id
orkey
of the Type.static CustomFieldsDraft
of()
factory methodstatic CustomFieldsDraft
of
(CustomFields template) static CustomFieldsDraft
of
(CustomFieldsDraft template) factory method to create a shallow copy CustomFieldsDraftvoid
setFields
(FieldContainer fields) Object containing the Custom Fields for the customized resource or data type.void
id
orkey
of the Type.static com.fasterxml.jackson.core.type.TypeReference<CustomFieldsDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCustomFieldsDraft
(Function<CustomFieldsDraft, T> helper) accessor map function
-
Method Details
-
getType
id
orkey
of the Type.- Returns:
- type
-
getFields
Object containing the Custom Fields for the customized resource or data type.
- Returns:
- fields
-
setType
id
orkey
of the Type.- Parameters:
type
- value to be set
-
setFields
Object containing the Custom Fields for the customized resource or data type.
- Parameters:
fields
- value to be set
-
of
factory method- Returns:
- instance of CustomFieldsDraft
-
of
factory method to create a shallow copy CustomFieldsDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CustomFieldsDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomFieldsDraft- Returns:
- builder
-
builder
create builder for CustomFieldsDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomFieldsDraft
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
of
-
builder
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-