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

com.pulumi.azurenative.hdinsight.inputs.AutoscaleArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
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.azurenative.hdinsight.inputs;

import com.pulumi.azurenative.hdinsight.inputs.AutoscaleCapacityArgs;
import com.pulumi.azurenative.hdinsight.inputs.AutoscaleRecurrenceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The autoscale request parameters
 * 
 */
public final class AutoscaleArgs extends com.pulumi.resources.ResourceArgs {

    public static final AutoscaleArgs Empty = new AutoscaleArgs();

    /**
     * Parameters for load-based autoscale
     * 
     */
    @Import(name="capacity")
    private @Nullable Output capacity;

    /**
     * @return Parameters for load-based autoscale
     * 
     */
    public Optional> capacity() {
        return Optional.ofNullable(this.capacity);
    }

    /**
     * Parameters for schedule-based autoscale
     * 
     */
    @Import(name="recurrence")
    private @Nullable Output recurrence;

    /**
     * @return Parameters for schedule-based autoscale
     * 
     */
    public Optional> recurrence() {
        return Optional.ofNullable(this.recurrence);
    }

    private AutoscaleArgs() {}

    private AutoscaleArgs(AutoscaleArgs $) {
        this.capacity = $.capacity;
        this.recurrence = $.recurrence;
    }

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

    public static final class Builder {
        private AutoscaleArgs $;

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

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

        /**
         * @param capacity Parameters for load-based autoscale
         * 
         * @return builder
         * 
         */
        public Builder capacity(@Nullable Output capacity) {
            $.capacity = capacity;
            return this;
        }

        /**
         * @param capacity Parameters for load-based autoscale
         * 
         * @return builder
         * 
         */
        public Builder capacity(AutoscaleCapacityArgs capacity) {
            return capacity(Output.of(capacity));
        }

        /**
         * @param recurrence Parameters for schedule-based autoscale
         * 
         * @return builder
         * 
         */
        public Builder recurrence(@Nullable Output recurrence) {
            $.recurrence = recurrence;
            return this;
        }

        /**
         * @param recurrence Parameters for schedule-based autoscale
         * 
         * @return builder
         * 
         */
        public Builder recurrence(AutoscaleRecurrenceArgs recurrence) {
            return recurrence(Output.of(recurrence));
        }

        public AutoscaleArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy