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 TimeToLiveConfigBuilder
builder()
builder factory method for TimeToLiveConfigstatic TimeToLiveConfigBuilder
builder
(TimeToLiveConfig template) create builder for TimeToLiveConfig instancecopyDeep()
static TimeToLiveConfig
deepCopy
(TimeToLiveConfig template) factory method to create a deep copy of TimeToLiveConfig@NotNull String
The time to live of the ImportContainer.static TimeToLiveConfig
of()
factory methodstatic TimeToLiveConfig
of
(TimeToLiveConfig template) factory method to create a shallow copy TimeToLiveConfigvoid
setTimeToLive
(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> T
withTimeToLiveConfig
(Function<TimeToLiveConfig, T> helper) accessor map function
-
Method Details
-
getTimeToLive
The time to live of the ImportContainer. Used to generate the
expiresAt
value of the ImportContainer. The lowest accepted value is1h
and the highest accepted value is30d
.- Returns:
- timeToLive
-
setTimeToLive
The time to live of the ImportContainer. Used to generate the
expiresAt
value of the ImportContainer. The lowest accepted value is1h
and 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
-