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 instancecopyDeep()
static 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. If the referenced Type does not exist, the
state
of the ImportOperation will be set tounresolved
until the referenced Type is created.- Returns:
- type
-
getFields
The Custom Fields of this object.
- Returns:
- fields
-
setType
The Type that provides the field definitions for this object. If the referenced Type does not exist, the
state
of the ImportOperation will be set tounresolved
until the referenced Type is created.- 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
-
copyDeep
Custom copyDeep() -
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
-