Class QuotaProperties


  • public final class QuotaProperties
    extends Object
    Quota properties for the specified resource.
    • Constructor Detail

      • QuotaProperties

        public QuotaProperties()
    • Method Detail

      • limit

        public LimitJsonObject limit()
        Get the limit property: Resource quota limit properties.
        Returns:
        the limit value.
      • withLimit

        public QuotaProperties withLimit​(LimitJsonObject limit)
        Set the limit property: Resource quota limit properties.
        Parameters:
        limit - the limit value to set.
        Returns:
        the QuotaProperties object itself.
      • unit

        public String unit()
        Get the unit property: The quota units, such as Count and Bytes. When requesting quota, use the **unit** value returned in the GET response in the request body of your PUT operation.
        Returns:
        the unit value.
      • name

        public ResourceName name()
        Get the name property: Resource name provided by the resource provider. Use this property name when requesting quota.
        Returns:
        the name value.
      • withName

        public QuotaProperties withName​(ResourceName name)
        Set the name property: Resource name provided by the resource provider. Use this property name when requesting quota.
        Parameters:
        name - the name value to set.
        Returns:
        the QuotaProperties object itself.
      • resourceType

        public String resourceType()
        Get the resourceType property: Resource type name.
        Returns:
        the resourceType value.
      • withResourceType

        public QuotaProperties withResourceType​(String resourceType)
        Set the resourceType property: Resource type name.
        Parameters:
        resourceType - the resourceType value to set.
        Returns:
        the QuotaProperties object itself.
      • quotaPeriod

        public String quotaPeriod()
        Get the quotaPeriod property: The time period over which the quota usage values are summarized. For example: *P1D (per one day) *PT1M (per one minute) *PT1S (per one second). This parameter is optional because, for some resources like compute, the period is irrelevant.
        Returns:
        the quotaPeriod value.
      • isQuotaApplicable

        public Boolean isQuotaApplicable()
        Get the isQuotaApplicable property: States if quota can be requested for this resource.
        Returns:
        the isQuotaApplicable value.
      • properties

        public Object properties()
        Get the properties property: Additional properties for the specific resource provider.
        Returns:
        the properties value.
      • withProperties

        public QuotaProperties withProperties​(Object properties)
        Set the properties property: Additional properties for the specific resource provider.
        Parameters:
        properties - the properties value to set.
        Returns:
        the QuotaProperties object itself.
      • validate

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