Interface TimeToLiveConfig
public interface TimeToLiveConfig
TimeToLiveConfig
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TimeToLiveConfig timeToLiveConfig = TimeToLiveConfig.builder()
.timeToLive("{timeToLive}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic TimeToLiveConfigBuilderbuilder()builder factory method for TimeToLiveConfigstatic TimeToLiveConfigBuilderbuilder(TimeToLiveConfig template) create builder for TimeToLiveConfig instancecopyDeep()static TimeToLiveConfigdeepCopy(TimeToLiveConfig template) factory method to create a deep copy of TimeToLiveConfig@NotNull StringThe time to live of the ImportContainer.static TimeToLiveConfigof()factory methodstatic TimeToLiveConfigof(TimeToLiveConfig template) factory method to create a shallow copy TimeToLiveConfigvoidsetTimeToLive(String timeToLive) The time to live of the ImportContainer.static com.fasterxml.jackson.core.type.TypeReference<TimeToLiveConfig>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithTimeToLiveConfig(Function<TimeToLiveConfig, T> helper) accessor map function
-
Method Details
-
getTimeToLive
The time to live of the ImportContainer. Used to generate the
expiresAtvalue of the ImportContainer. The lowest accepted value is1hand the highest accepted value is30d.- Returns:
- timeToLive
-
setTimeToLive
The time to live of the ImportContainer. Used to generate the
expiresAtvalue of the ImportContainer. The lowest accepted value is1hand the highest accepted value is30d.- Parameters:
timeToLive- value to be set
-
of
factory method- Returns:
- instance of TimeToLiveConfig
-
of
factory method to create a shallow copy TimeToLiveConfig- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
TimeToLiveConfig copyDeep() -
deepCopy
factory method to create a deep copy of TimeToLiveConfig- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TimeToLiveConfig- Returns:
- builder
-
builder
create builder for TimeToLiveConfig instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withTimeToLiveConfig
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
-