Interface TextLineItem
public interface TextLineItem
TextLineItem
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TextLineItem textLineItem = TextLineItem.builder()
.addedAt("{addedAt}")
.custom(customBuilder -> customBuilder)
.description(descriptionBuilder -> descriptionBuilder)
.id("{id}")
.name(nameBuilder -> nameBuilder)
.quantity(1)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic TextLineItemBuilder
builder()
builder factory method for TextLineItemstatic TextLineItemBuilder
builder
(TextLineItem template) create builder for TextLineItem instancestatic TextLineItem
deepCopy
(TextLineItem template) factory method to create a deep copy of TextLineItem@NotNull String
@NotNull @Valid CustomFields
@NotNull @Valid LocalizedString
@NotNull String
getId()
@NotNull @Valid LocalizedString
getName()
@NotNull Integer
static TextLineItem
of()
factory methodstatic TextLineItem
of
(TextLineItem template) factory method to create a shallow copy TextLineItemvoid
setAddedAt
(String addedAt) set addedAtvoid
setCustom
(CustomFields custom) set customvoid
setDescription
(LocalizedString description) set descriptionvoid
set idvoid
setName
(LocalizedString name) set namevoid
setQuantity
(Integer quantity) set quantitystatic com.fasterxml.jackson.core.type.TypeReference<TextLineItem>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withTextLineItem
(Function<TextLineItem, T> helper) accessor map function
-
Method Details
-
getAddedAt
- Returns:
- addedAt
-
getCustom
- Returns:
- custom
-
getDescription
- Returns:
- description
-
getId
- Returns:
- id
-
getName
- Returns:
- name
-
getQuantity
- Returns:
- quantity
-
setAddedAt
set addedAt- Parameters:
addedAt
- value to be set
-
setCustom
set custom- Parameters:
custom
- value to be set
-
setDescription
set description- Parameters:
description
- value to be set
-
setId
set id- Parameters:
id
- value to be set
-
setName
set name- Parameters:
name
- value to be set
-
setQuantity
set quantity- Parameters:
quantity
- value to be set
-
of
factory method- Returns:
- instance of TextLineItem
-
of
factory method to create a shallow copy TextLineItem- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of TextLineItem- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TextLineItem- Returns:
- builder
-
builder
create builder for TextLineItem instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withTextLineItem
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
-