Class IfLastModified.Builder
- java.lang.Object
-
- org.apache.logging.log4j.core.appender.rolling.action.IfLastModified.Builder
-
- All Implemented Interfaces:
Builder<IfLastModified>
- Enclosing class:
- IfLastModified
public static final class IfLastModified.Builder extends java.lang.Object implements Builder<IfLastModified>
- Since:
- 2.24.0
-
-
Field Summary
Fields Modifier and Type Field Description private Durationageprivate PathCondition[]nestedConditions
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IfLastModifiedbuild()Builds the object after all configuration has been set.IfLastModified.BuildersetAge(java.time.Duration age)IfLastModified.BuildersetNestedConditions(PathCondition... nestedConditions)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.logging.log4j.core.util.Builder
getErrorPrefix, isValid
-
-
-
-
Field Detail
-
age
@PluginBuilderAttribute @Required(message="No age provided for IfLastModified") private Duration age
-
nestedConditions
@PluginElement("nestedConditions") private PathCondition[] nestedConditions
-
-
Method Detail
-
setAge
public IfLastModified.Builder setAge(java.time.Duration age)
-
setNestedConditions
public IfLastModified.Builder setNestedConditions(PathCondition... nestedConditions)
-
build
public IfLastModified build()
Description copied from interface:BuilderBuilds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.- Specified by:
buildin interfaceBuilder<IfLastModified>- Returns:
- the configured instance.
-
-