Class UsageProperties


  • public final class UsageProperties
    extends Object
    Usage resource specific properties.
    • Constructor Detail

      • UsageProperties

        public UsageProperties()
    • Method Detail

      • displayName

        public String displayName()
        Get the displayName property: Friendly name shown in the UI.
        Returns:
        the displayName value.
      • resourceName

        public String resourceName()
        Get the resourceName property: Name of the quota resource.
        Returns:
        the resourceName value.
      • unit

        public String unit()
        Get the unit property: Units of measurement for the quota resource.
        Returns:
        the unit value.
      • currentValue

        public Long currentValue()
        Get the currentValue property: The current value of the resource counter.
        Returns:
        the currentValue value.
      • limit

        public Long limit()
        Get the limit property: The resource limit.
        Returns:
        the limit value.
      • nextResetTime

        public OffsetDateTime nextResetTime()
        Get the nextResetTime property: Next reset time for the resource counter.
        Returns:
        the nextResetTime value.
      • computeMode

        public ComputeModeOptions computeMode()
        Get the computeMode property: Compute mode used for this usage.
        Returns:
        the computeMode value.
      • siteMode

        public String siteMode()
        Get the siteMode property: Site mode used for this usage.
        Returns:
        the siteMode value.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.