Class ResourceLimitsPeriod


  • public class ResourceLimitsPeriod
    extends Object
    The period definition corresponding to a resource limit for a tenant.
    • Constructor Detail

      • ResourceLimitsPeriod

        public ResourceLimitsPeriod()
    • Method Detail

      • getMode

        public final String getMode()
        Gets the mode of period for resource limit calculation.
        Returns:
        The mode of period for resource limit calculation.
      • setMode

        public final ResourceLimitsPeriod setMode​(String mode)
        Sets the mode of period for resource limit calculation.
        Parameters:
        mode - The mode of period for resource limit calculation.
        Returns:
        a reference to this for fluent use.
        Throws:
        NullPointerException - if mode is null.
      • getNoOfDays

        public final int getNoOfDays()
        Gets the number of days for which resource usage is calculated.
        Returns:
        The number of days for a resource limit calculation.
      • setNoOfDays

        public final ResourceLimitsPeriod setNoOfDays​(int noOfDays)
        Sets the number of days for which resource usage is calculated.
        Parameters:
        noOfDays - The number of days for which resource usage is calculated.
        Returns:
        a reference to this for fluent use.
        Throws:
        IllegalArgumentException - if the number of days is negative.