Interface ResourceIdentifier
public interface ResourceIdentifier
ResourceIdentifier
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ResourceIdentifier resourceIdentifier = ResourceIdentifier.builder()
.id("{id}")
.key("{key}")
.typeId(ReferenceTypeId.ASSOCIATE_ROLE)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceIdentifierBuilder
builder()
builder factory method for ResourceIdentifierstatic ResourceIdentifierBuilder
builder
(ResourceIdentifier template) create builder for ResourceIdentifier instancestatic ResourceIdentifier
deepCopy
(ResourceIdentifier template) factory method to create a deep copy of ResourceIdentifier@NotNull String
getId()
@NotNull String
getKey()
@NotNull ReferenceTypeId
static ResourceIdentifier
of()
factory methodstatic ResourceIdentifier
of
(ResourceIdentifier template) factory method to create a shallow copy ResourceIdentifiervoid
set idvoid
set keyvoid
setTypeId
(ReferenceTypeId typeId) set typeIdstatic com.fasterxml.jackson.core.type.TypeReference<ResourceIdentifier>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withResourceIdentifier
(Function<ResourceIdentifier, T> helper) accessor map function
-
Method Details
-
getId
- Returns:
- id
-
getKey
- Returns:
- key
-
getTypeId
- Returns:
- typeId
-
setId
set id- Parameters:
id
- value to be set
-
setKey
set key- Parameters:
key
- value to be set
-
setTypeId
set typeId- Parameters:
typeId
- value to be set
-
of
factory method- Returns:
- instance of ResourceIdentifier
-
of
factory method to create a shallow copy ResourceIdentifier- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ResourceIdentifier- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ResourceIdentifier- Returns:
- builder
-
builder
create builder for ResourceIdentifier instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withResourceIdentifier
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
-