Class QuotaBaseProperties


  • public final class QuotaBaseProperties
    extends Object
    The properties for Quota update or retrieval.
    • Constructor Detail

      • QuotaBaseProperties

        public QuotaBaseProperties()
    • Method Detail

      • id

        public String id()
        Get the id property: Specifies the resource ID.
        Returns:
        the id value.
      • withId

        public QuotaBaseProperties withId​(String id)
        Set the id property: Specifies the resource ID.
        Parameters:
        id - the id value to set.
        Returns:
        the QuotaBaseProperties object itself.
      • type

        public String type()
        Get the type property: Specifies the resource type.
        Returns:
        the type value.
      • withType

        public QuotaBaseProperties withType​(String type)
        Set the type property: Specifies the resource type.
        Parameters:
        type - the type value to set.
        Returns:
        the QuotaBaseProperties object itself.
      • limit

        public Long limit()
        Get the limit property: Limit. The maximum permitted quota of the resource.
        Returns:
        the limit value.
      • withLimit

        public QuotaBaseProperties withLimit​(Long limit)
        Set the limit property: Limit. The maximum permitted quota of the resource.
        Parameters:
        limit - the limit value to set.
        Returns:
        the QuotaBaseProperties object itself.
      • unit

        public QuotaUnit unit()
        Get the unit property: An enum describing the unit of quota measurement.
        Returns:
        the unit value.
      • withUnit

        public QuotaBaseProperties withUnit​(QuotaUnit unit)
        Set the unit property: An enum describing the unit of quota measurement.
        Parameters:
        unit - the unit value to set.
        Returns:
        the QuotaBaseProperties object itself.
      • validate

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