Class RetentionPeriod

java.lang.Object
io.github.primelib.confluence4j.rest.v1.models.RetentionPeriod

@Generated("io.github.primelib.primecodegen") public class RetentionPeriod extends Object
RetentionPeriod
  • Field Details

    • number

      protected Integer number
      The number of units for the retention period.
    • units

      protected String units
      The unit of time that the retention period is measured in.
  • Constructor Details

    • RetentionPeriod

      public RetentionPeriod(Consumer<RetentionPeriod> spec)
      Constructs a validated instance of RetentionPeriod.
      Parameters:
      spec - the specification to process
    • RetentionPeriod

      @Internal protected RetentionPeriod()
      Protected no-args constructor for use by serialization frameworks.
    • RetentionPeriod

      @Internal public RetentionPeriod(Integer number, String units)
      Constructs a validated instance of RetentionPeriod.

      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

      public Integer number()
      Fluent getter for number.

      The number of units for the retention period.

      Returns:
      number
    • number

      public RetentionPeriod number(Integer number)
      Fluent setter for number.

      The number of units for the retention period.

      Parameters:
      number - number
      Returns:
      this
    • getNumber

      public Integer getNumber()
      Gets the value of number.

      The number of units for the retention period.

      Returns:
      number
    • setNumber

      public void setNumber(Integer number)
      Sets the value of number.

      The number of units for the retention period.

      Parameters:
      number - number
    • units

      public String units()
      Fluent getter for units.

      The unit of time that the retention period is measured in.

      Returns:
      units
    • units

      public RetentionPeriod units(String units)
      Fluent setter for units.

      The unit of time that the retention period is measured in.

      Parameters:
      units - units
      Returns:
      this
    • getUnits

      public String getUnits()
      Gets the value of units.

      The unit of time that the retention period is measured in.

      Returns:
      units
    • setUnits

      public void setUnits(String units)
      Sets the value of units.

      The unit of time that the retention period is measured in.

      Parameters:
      units - units
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object