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 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.
    • RetentionPeriod

      protected RetentionPeriod()
  • Method Details

    • number

      public Integer number()
      The number of units for the retention period.
    • units

      public String units()
      The unit of time that the retention period is measured in.
    • number

      public RetentionPeriod number(Integer number)
      The number of units for the retention period.
      Returns:
      this.
    • units

      public RetentionPeriod units(String units)
      The unit of time that the retention period is measured in.
      Returns:
      this.
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object