Class AutoscalerAutoscalingPolicyArgs.Builder

    • Method Detail

      • cooldownPeriod

        public AutoscalerAutoscalingPolicyArgs.Builder cooldownPeriod​(@Nullable
                                                                      com.pulumi.core.Output<java.lang.Integer> cooldownPeriod)
        Parameters:
        cooldownPeriod - The number of seconds that the autoscaler should wait before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. The default time autoscaler waits is 60 seconds. Virtual machine initialization times might vary because of numerous factors. We recommend that you test how long an instance may take to initialize. To do this, create an instance and time the startup process.
        Returns:
        builder
      • cooldownPeriod

        public AutoscalerAutoscalingPolicyArgs.Builder cooldownPeriod​(java.lang.Integer cooldownPeriod)
        Parameters:
        cooldownPeriod - The number of seconds that the autoscaler should wait before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. The default time autoscaler waits is 60 seconds. Virtual machine initialization times might vary because of numerous factors. We recommend that you test how long an instance may take to initialize. To do this, create an instance and time the startup process.
        Returns:
        builder
      • maxReplicas

        public AutoscalerAutoscalingPolicyArgs.Builder maxReplicas​(com.pulumi.core.Output<java.lang.Integer> maxReplicas)
        Parameters:
        maxReplicas - The maximum number of instances that the autoscaler can scale up to. This is required when creating or updating an autoscaler. The maximum number of replicas should not be lower than minimal number of replicas.
        Returns:
        builder
      • maxReplicas

        public AutoscalerAutoscalingPolicyArgs.Builder maxReplicas​(java.lang.Integer maxReplicas)
        Parameters:
        maxReplicas - The maximum number of instances that the autoscaler can scale up to. This is required when creating or updating an autoscaler. The maximum number of replicas should not be lower than minimal number of replicas.
        Returns:
        builder
      • minReplicas

        public AutoscalerAutoscalingPolicyArgs.Builder minReplicas​(com.pulumi.core.Output<java.lang.Integer> minReplicas)
        Parameters:
        minReplicas - The minimum number of replicas that the autoscaler can scale down to. This cannot be less than 0. If not provided, autoscaler will choose a default value depending on maximum number of instances allowed.
        Returns:
        builder
      • minReplicas

        public AutoscalerAutoscalingPolicyArgs.Builder minReplicas​(java.lang.Integer minReplicas)
        Parameters:
        minReplicas - The minimum number of replicas that the autoscaler can scale down to. This cannot be less than 0. If not provided, autoscaler will choose a default value depending on maximum number of instances allowed.
        Returns:
        builder
      • mode

        public AutoscalerAutoscalingPolicyArgs.Builder mode​(@Nullable
                                                            com.pulumi.core.Output<java.lang.String> mode)
        Parameters:
        mode - Defines operating mode for this policy. Default value is `ON`. Possible values are: `OFF`, `ONLY_UP`, `ON`.
        Returns:
        builder
      • mode

        public AutoscalerAutoscalingPolicyArgs.Builder mode​(java.lang.String mode)
        Parameters:
        mode - Defines operating mode for this policy. Default value is `ON`. Possible values are: `OFF`, `ONLY_UP`, `ON`.
        Returns:
        builder