Class AutoscalarArgs.Builder

  • Enclosing class:
    AutoscalarArgs

    public static final class AutoscalarArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • autoscalingPolicy

        public AutoscalarArgs.Builder autoscalingPolicy​(com.pulumi.core.Output<AutoscalarAutoscalingPolicyArgs> autoscalingPolicy)
        Parameters:
        autoscalingPolicy - The configuration parameters for the autoscaling algorithm. You can define one or more of the policies for an autoscaler: cpuUtilization, customMetricUtilizations, and loadBalancingUtilization. If none of these are specified, the default will be to autoscale based on cpuUtilization to 0.6 or 60%. Structure is documented below.
        Returns:
        builder
      • autoscalingPolicy

        public AutoscalarArgs.Builder autoscalingPolicy​(AutoscalarAutoscalingPolicyArgs autoscalingPolicy)
        Parameters:
        autoscalingPolicy - The configuration parameters for the autoscaling algorithm. You can define one or more of the policies for an autoscaler: cpuUtilization, customMetricUtilizations, and loadBalancingUtilization. If none of these are specified, the default will be to autoscale based on cpuUtilization to 0.6 or 60%. Structure is documented below.
        Returns:
        builder
      • description

        public AutoscalarArgs.Builder description​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - A description of a scaling schedule. *** (Optional) An optional description of this resource.
        Returns:
        builder
      • description

        public AutoscalarArgs.Builder description​(java.lang.String description)
        Parameters:
        description - A description of a scaling schedule. *** (Optional) An optional description of this resource.
        Returns:
        builder
      • name

        public AutoscalarArgs.Builder name​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - Name of the resource. The name must be 1-63 characters long and match the regular expression `a-z?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
        Returns:
        builder
      • name

        public AutoscalarArgs.Builder name​(java.lang.String name)
        Parameters:
        name - Name of the resource. The name must be 1-63 characters long and match the regular expression `a-z?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
        Returns:
        builder
      • project

        public AutoscalarArgs.Builder project​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> project)
        Parameters:
        project - The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
        Returns:
        builder
      • project

        public AutoscalarArgs.Builder project​(java.lang.String project)
        Parameters:
        project - The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
        Returns:
        builder
      • target

        public AutoscalarArgs.Builder target​(com.pulumi.core.Output<java.lang.String> target)
        Parameters:
        target - URL of the managed instance group that this autoscaler will scale.
        Returns:
        builder
      • target

        public AutoscalarArgs.Builder target​(java.lang.String target)
        Parameters:
        target - URL of the managed instance group that this autoscaler will scale.
        Returns:
        builder
      • zone

        public AutoscalarArgs.Builder zone​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> zone)
        Parameters:
        zone - URL of the zone where the instance group resides.
        Returns:
        builder
      • zone

        public AutoscalarArgs.Builder zone​(java.lang.String zone)
        Parameters:
        zone - URL of the zone where the instance group resides.
        Returns:
        builder