Class RetentionPeriod
java.lang.Object
io.github.primelib.confluence4j.rest.v1.models.RetentionPeriod
RetentionPeriod
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRetentionPeriod(Integer number, String units) Constructs a validated instance ofRetentionPeriod.Constructs a validated instance ofRetentionPeriod. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()number()The number of units for the retention period.The number of units for the retention period.toString()units()The unit of time that the retention period is measured in.The unit of time that the retention period is measured in.
-
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
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.
-
RetentionPeriod
protected RetentionPeriod()
-
-
Method Details
-
number
The number of units for the retention period. -
units
The unit of time that the retention period is measured in. -
number
The number of units for the retention period.- Returns:
this.
-
units
The unit of time that the retention period is measured in.- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-