Class ScaleRule


  • public final class ScaleRule
    extends Object
    Container App container scaling rule.
    • Constructor Detail

      • ScaleRule

        public ScaleRule()
    • Method Detail

      • name

        public String name()
        Get the name property: Scale Rule Name.
        Returns:
        the name value.
      • withName

        public ScaleRule withName​(String name)
        Set the name property: Scale Rule Name.
        Parameters:
        name - the name value to set.
        Returns:
        the ScaleRule object itself.
      • azureQueue

        public QueueScaleRule azureQueue()
        Get the azureQueue property: Azure Queue based scaling.
        Returns:
        the azureQueue value.
      • withAzureQueue

        public ScaleRule withAzureQueue​(QueueScaleRule azureQueue)
        Set the azureQueue property: Azure Queue based scaling.
        Parameters:
        azureQueue - the azureQueue value to set.
        Returns:
        the ScaleRule object itself.
      • custom

        public CustomScaleRule custom()
        Get the custom property: Custom scale rule.
        Returns:
        the custom value.
      • withCustom

        public ScaleRule withCustom​(CustomScaleRule custom)
        Set the custom property: Custom scale rule.
        Parameters:
        custom - the custom value to set.
        Returns:
        the ScaleRule object itself.
      • http

        public HttpScaleRule http()
        Get the http property: HTTP requests based scaling.
        Returns:
        the http value.
      • withHttp

        public ScaleRule withHttp​(HttpScaleRule http)
        Set the http property: HTTP requests based scaling.
        Parameters:
        http - the http value to set.
        Returns:
        the ScaleRule object itself.
      • validate

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