Interface Custom
public interface Custom
The representation to be sent to the server when creating a resource with Custom Fields.
Example to create an instance using the builder pattern
Custom custom = Custom.builder()
.type(typeBuilder -> typeBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomBuilder
builder()
builder factory method for Customstatic CustomBuilder
create builder for Custom instancestatic Custom
factory method to create a deep copy of Custom@Valid FieldContainer
The Custom Fields of this object.@NotNull @Valid TypeKeyReference
getType()
The type that provides the field definitions for this object.static Custom
of()
factory methodstatic Custom
factory method to create a shallow copy Customvoid
setFields
(FieldContainer fields) The Custom Fields of this object.void
setType
(TypeKeyReference type) The type that provides the field definitions for this object.static com.fasterxml.jackson.core.type.TypeReference<Custom>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCustom
(Function<Custom, T> helper) accessor map function
-
Method Details
-
getType
The type that provides the field definitions for this object.
- Returns:
- type
-
getFields
The Custom Fields of this object.
- Returns:
- fields
-
setType
The type that provides the field definitions for this object.
- Parameters:
type
- value to be set
-
setFields
The Custom Fields of this object.
- Parameters:
fields
- value to be set
-
of
factory method- Returns:
- instance of Custom
-
of
factory method to create a shallow copy Custom- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of Custom- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for Custom- Returns:
- builder
-
builder
create builder for Custom instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustom
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
-