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 ContainerAndKeyBuilderbuilder()builder factory method for ContainerAndKeystatic ContainerAndKeyBuilderbuilder(ContainerAndKey template) create builder for ContainerAndKey instancecopyDeep()static ContainerAndKeydeepCopy(ContainerAndKey template) factory method to create a deep copy of ContainerAndKey@NotNull StringNamespace to group Custom Objects.@NotNull StringgetKey()User-defined identifier that is unique within the given container.static ContainerAndKeyof()factory methodstatic ContainerAndKeyof(ContainerAndKey template) factory method to create a shallow copy ContainerAndKeyvoidsetContainer(String container) Namespace to group Custom Objects.voidUser-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> TwithContainerAndKey(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
-
copyDeep
ContainerAndKey copyDeep() -
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
-