Class TimeToLiveConfigBuilder
java.lang.Object
com.commercetools.importapi.models.importcontainers.TimeToLiveConfigBuilder
- All Implemented Interfaces:
Builder<TimeToLiveConfig>
TimeToLiveConfigBuilder
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()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds TimeToLiveConfig with checking for non-null required valuesbuilds TimeToLiveConfig without checking for non-null required valuesThe time to live of the ImportContainer.static TimeToLiveConfigBuilderof()factory method for an instance of TimeToLiveConfigBuilderstatic TimeToLiveConfigBuilderof(TimeToLiveConfig template) create builder for TimeToLiveConfig instancetimeToLive(String timeToLive) The time to live of the ImportContainer.
-
Constructor Details
-
TimeToLiveConfigBuilder
public TimeToLiveConfigBuilder()
-
-
Method Details
-
timeToLive
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- Returns:
- Builder
-
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
-
build
builds TimeToLiveConfig with checking for non-null required values- Specified by:
buildin interfaceBuilder<TimeToLiveConfig>- Returns:
- TimeToLiveConfig
-
buildUnchecked
builds TimeToLiveConfig without checking for non-null required values- Returns:
- TimeToLiveConfig
-
of
factory method for an instance of TimeToLiveConfigBuilder- Returns:
- builder
-
of
create builder for TimeToLiveConfig instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-