Class RetentionPeriod
java.lang.Object
io.github.primelib.confluence4j.rest.v1.models.RetentionPeriod
RetentionPeriod
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected no-args constructor for use by serialization frameworks.RetentionPeriod(Integer number, String units) Constructs a validated instance ofRetentionPeriod.Constructs a validated instance ofRetentionPeriod. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the value of number.getUnits()Gets the value of units.inthashCode()number()Fluent getter for number.Fluent setter for number.voidSets the value of number.voidSets the value of units.toString()units()Fluent getter for units.Fluent setter for units.
-
Field Details
-
number
The number of units for the retention period. -
units
The unit of time that the retention period is measured in.
-
-
Constructor Details
-
RetentionPeriod
Constructs a validated instance ofRetentionPeriod.- Parameters:
spec- the specification to process
-
RetentionPeriod
@Internal protected RetentionPeriod()Protected no-args constructor for use by serialization frameworks. -
RetentionPeriod
Constructs a validated instance ofRetentionPeriod.NOTE: This constructor is not considered stable and may change if the model is updated. Consider using
RetentionPeriod(Consumer)instead.- Parameters:
number- The number of units for the retention period.units- The unit of time that the retention period is measured in.
-
-
Method Details
-
number
Fluent getter for number.The number of units for the retention period.
- Returns:
- number
-
number
Fluent setter for number.The number of units for the retention period.
- Parameters:
number- number- Returns:
- this
-
getNumber
Gets the value of number.The number of units for the retention period.
- Returns:
- number
-
setNumber
Sets the value of number.The number of units for the retention period.
- Parameters:
number- number
-
units
Fluent getter for units.The unit of time that the retention period is measured in.
- Returns:
- units
-
units
Fluent setter for units.The unit of time that the retention period is measured in.
- Parameters:
units- units- Returns:
- this
-
getUnits
Gets the value of units.The unit of time that the retention period is measured in.
- Returns:
- units
-
setUnits
Sets the value of units.The unit of time that the retention period is measured in.
- Parameters:
units- units
-
equals
-
hashCode
-
toString
-