Interface ContainerAndKey
public interface ContainerAndKey
ContainerAndKey
is specific to Custom Objects. Custom Objects are grouped into containers, which can be used like namespaces. Within a given container, a user-defined key can be used to uniquely identify resources.
Example to create an instance using the builder pattern
ContainerAndKey containerAndKey = ContainerAndKey.builder()
.key("{key}")
.container("{container}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerAndKeyBuilder
builder()
builder factory method for ContainerAndKeystatic ContainerAndKeyBuilder
builder
(ContainerAndKey template) create builder for ContainerAndKey instancestatic ContainerAndKey
deepCopy
(ContainerAndKey template) factory method to create a deep copy of ContainerAndKey@NotNull String
Namespace to group Custom Objects.@NotNull String
getKey()
User-defined identifier that is unique within the given container.static ContainerAndKey
of()
factory methodstatic ContainerAndKey
of
(ContainerAndKey template) factory method to create a shallow copy ContainerAndKeyvoid
setContainer
(String container) Namespace to group Custom Objects.void
User-defined identifier that is unique within the given container.static com.fasterxml.jackson.core.type.TypeReference<ContainerAndKey>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withContainerAndKey
(Function<ContainerAndKey, T> helper) accessor map function
-
Method Details
-
getKey
User-defined identifier that is unique within the given container.
- Returns:
- key
-
getContainer
Namespace to group Custom Objects.
- Returns:
- container
-
setKey
User-defined identifier that is unique within the given container.
- Parameters:
key
- value to be set
-
setContainer
Namespace to group Custom Objects.
- Parameters:
container
- value to be set
-
of
factory method- Returns:
- instance of ContainerAndKey
-
of
factory method to create a shallow copy ContainerAndKey- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ContainerAndKey- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ContainerAndKey- Returns:
- builder
-
builder
create builder for ContainerAndKey instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withContainerAndKey
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
-