All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.opsworks.inputs.StaticWebLayerLoadBasedAutoScalingDownscalingArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.opsworks.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class StaticWebLayerLoadBasedAutoScalingDownscalingArgs extends com.pulumi.resources.ResourceArgs {

    public static final StaticWebLayerLoadBasedAutoScalingDownscalingArgs Empty = new StaticWebLayerLoadBasedAutoScalingDownscalingArgs();

    @Import(name="alarms")
    private @Nullable Output> alarms;

    public Optional>> alarms() {
        return Optional.ofNullable(this.alarms);
    }

    @Import(name="cpuThreshold")
    private @Nullable Output cpuThreshold;

    public Optional> cpuThreshold() {
        return Optional.ofNullable(this.cpuThreshold);
    }

    @Import(name="ignoreMetricsTime")
    private @Nullable Output ignoreMetricsTime;

    public Optional> ignoreMetricsTime() {
        return Optional.ofNullable(this.ignoreMetricsTime);
    }

    @Import(name="instanceCount")
    private @Nullable Output instanceCount;

    public Optional> instanceCount() {
        return Optional.ofNullable(this.instanceCount);
    }

    @Import(name="loadThreshold")
    private @Nullable Output loadThreshold;

    public Optional> loadThreshold() {
        return Optional.ofNullable(this.loadThreshold);
    }

    @Import(name="memoryThreshold")
    private @Nullable Output memoryThreshold;

    public Optional> memoryThreshold() {
        return Optional.ofNullable(this.memoryThreshold);
    }

    @Import(name="thresholdsWaitTime")
    private @Nullable Output thresholdsWaitTime;

    public Optional> thresholdsWaitTime() {
        return Optional.ofNullable(this.thresholdsWaitTime);
    }

    private StaticWebLayerLoadBasedAutoScalingDownscalingArgs() {}

    private StaticWebLayerLoadBasedAutoScalingDownscalingArgs(StaticWebLayerLoadBasedAutoScalingDownscalingArgs $) {
        this.alarms = $.alarms;
        this.cpuThreshold = $.cpuThreshold;
        this.ignoreMetricsTime = $.ignoreMetricsTime;
        this.instanceCount = $.instanceCount;
        this.loadThreshold = $.loadThreshold;
        this.memoryThreshold = $.memoryThreshold;
        this.thresholdsWaitTime = $.thresholdsWaitTime;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(StaticWebLayerLoadBasedAutoScalingDownscalingArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private StaticWebLayerLoadBasedAutoScalingDownscalingArgs $;

        public Builder() {
            $ = new StaticWebLayerLoadBasedAutoScalingDownscalingArgs();
        }

        public Builder(StaticWebLayerLoadBasedAutoScalingDownscalingArgs defaults) {
            $ = new StaticWebLayerLoadBasedAutoScalingDownscalingArgs(Objects.requireNonNull(defaults));
        }

        public Builder alarms(@Nullable Output> alarms) {
            $.alarms = alarms;
            return this;
        }

        public Builder alarms(List alarms) {
            return alarms(Output.of(alarms));
        }

        public Builder alarms(String... alarms) {
            return alarms(List.of(alarms));
        }

        public Builder cpuThreshold(@Nullable Output cpuThreshold) {
            $.cpuThreshold = cpuThreshold;
            return this;
        }

        public Builder cpuThreshold(Double cpuThreshold) {
            return cpuThreshold(Output.of(cpuThreshold));
        }

        public Builder ignoreMetricsTime(@Nullable Output ignoreMetricsTime) {
            $.ignoreMetricsTime = ignoreMetricsTime;
            return this;
        }

        public Builder ignoreMetricsTime(Integer ignoreMetricsTime) {
            return ignoreMetricsTime(Output.of(ignoreMetricsTime));
        }

        public Builder instanceCount(@Nullable Output instanceCount) {
            $.instanceCount = instanceCount;
            return this;
        }

        public Builder instanceCount(Integer instanceCount) {
            return instanceCount(Output.of(instanceCount));
        }

        public Builder loadThreshold(@Nullable Output loadThreshold) {
            $.loadThreshold = loadThreshold;
            return this;
        }

        public Builder loadThreshold(Double loadThreshold) {
            return loadThreshold(Output.of(loadThreshold));
        }

        public Builder memoryThreshold(@Nullable Output memoryThreshold) {
            $.memoryThreshold = memoryThreshold;
            return this;
        }

        public Builder memoryThreshold(Double memoryThreshold) {
            return memoryThreshold(Output.of(memoryThreshold));
        }

        public Builder thresholdsWaitTime(@Nullable Output thresholdsWaitTime) {
            $.thresholdsWaitTime = thresholdsWaitTime;
            return this;
        }

        public Builder thresholdsWaitTime(Integer thresholdsWaitTime) {
            return thresholdsWaitTime(Output.of(thresholdsWaitTime));
        }

        public StaticWebLayerLoadBasedAutoScalingDownscalingArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy