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 CustomBuilderbuilder()builder factory method for Customstatic CustomBuildercreate builder for Custom instancecopyDeep()static Customfactory method to create a deep copy of Custom@Valid FieldContainerThe Custom Fields of this object.@NotNull @Valid TypeKeyReferencegetType()The Type that provides the field definitions for this object.static Customof()factory methodstatic Customfactory method to create a shallow copy CustomvoidsetFields(FieldContainer fields) The Custom Fields of this object.voidsetType(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> TwithCustom(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
stateof the ImportOperation will be set tounresolveduntil 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
stateof the ImportOperation will be set tounresolveduntil 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
-