Interface Asset
public interface Asset
Asset
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
Asset asset = Asset.builder()
.id("{id}")
.name(nameBuilder -> nameBuilder)
.description(descriptionBuilder -> descriptionBuilder)
.custom(customBuilder -> customBuilder)
.key("{key}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic AssetBuilder
builder()
builder factory method for Assetstatic AssetBuilder
create builder for Asset instancestatic Asset
factory method to create a deep copy of Asset@NotNull @Valid CustomFields
@NotNull @Valid LocalizedString
@NotNull String
getId()
@NotNull String
getKey()
@NotNull @Valid LocalizedString
getName()
static Asset
of()
factory methodstatic Asset
factory method to create a shallow copy Assetvoid
setCustom
(CustomFields custom) set customvoid
setDescription
(LocalizedString description) set descriptionvoid
set idvoid
set keyvoid
setName
(LocalizedString name) set namestatic com.fasterxml.jackson.core.type.TypeReference<Asset>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getId
- Returns:
- id
-
getName
- Returns:
- name
-
getDescription
- Returns:
- description
-
getCustom
- Returns:
- custom
-
getKey
- Returns:
- key
-
setId
set id- Parameters:
id
- value to be set
-
setName
set name- Parameters:
name
- value to be set
-
setDescription
set description- Parameters:
description
- value to be set
-
setCustom
set custom- Parameters:
custom
- value to be set
-
setKey
set key- Parameters:
key
- value to be set
-
of
factory method- Returns:
- instance of Asset
-
of
factory method to create a shallow copy Asset- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of Asset- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for Asset- Returns:
- builder
-
builder
create builder for Asset instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAsset
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
-