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

com.pulumi.spotinst.aws.inputs.ElastigroupIntegrationEcsArgs Maven / Gradle / Ivy

The 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.spotinst.aws.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.spotinst.aws.inputs.ElastigroupIntegrationEcsAutoscaleAttributeArgs;
import com.pulumi.spotinst.aws.inputs.ElastigroupIntegrationEcsAutoscaleDownArgs;
import com.pulumi.spotinst.aws.inputs.ElastigroupIntegrationEcsAutoscaleHeadroomArgs;
import com.pulumi.spotinst.aws.inputs.ElastigroupIntegrationEcsBatchArgs;
import java.lang.Boolean;
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 ElastigroupIntegrationEcsArgs extends com.pulumi.resources.ResourceArgs {

    public static final ElastigroupIntegrationEcsArgs Empty = new ElastigroupIntegrationEcsArgs();

    /**
     * A key/value mapping of tags to assign to the resource.
     * 
     */
    @Import(name="autoscaleAttributes")
    private @Nullable Output> autoscaleAttributes;

    /**
     * @return A key/value mapping of tags to assign to the resource.
     * 
     */
    public Optional>> autoscaleAttributes() {
        return Optional.ofNullable(this.autoscaleAttributes);
    }

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

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

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

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

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

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

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

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

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

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

    /**
     * Determines whether to scale down non-service tasks.
     * 
     */
    @Import(name="autoscaleScaleDownNonServiceTasks")
    private @Nullable Output autoscaleScaleDownNonServiceTasks;

    /**
     * @return Determines whether to scale down non-service tasks.
     * 
     */
    public Optional> autoscaleScaleDownNonServiceTasks() {
        return Optional.ofNullable(this.autoscaleScaleDownNonServiceTasks);
    }

    /**
     * Batch configuration object:
     * 
     */
    @Import(name="batch")
    private @Nullable Output batch;

    /**
     * @return Batch configuration object:
     * 
     */
    public Optional> batch() {
        return Optional.ofNullable(this.batch);
    }

    /**
     * The name of the EC2 Container Service cluster.
     * 
     */
    @Import(name="clusterName", required=true)
    private Output clusterName;

    /**
     * @return The name of the EC2 Container Service cluster.
     * 
     */
    public Output clusterName() {
        return this.clusterName;
    }

    private ElastigroupIntegrationEcsArgs() {}

    private ElastigroupIntegrationEcsArgs(ElastigroupIntegrationEcsArgs $) {
        this.autoscaleAttributes = $.autoscaleAttributes;
        this.autoscaleCooldown = $.autoscaleCooldown;
        this.autoscaleDown = $.autoscaleDown;
        this.autoscaleHeadroom = $.autoscaleHeadroom;
        this.autoscaleIsAutoConfig = $.autoscaleIsAutoConfig;
        this.autoscaleIsEnabled = $.autoscaleIsEnabled;
        this.autoscaleScaleDownNonServiceTasks = $.autoscaleScaleDownNonServiceTasks;
        this.batch = $.batch;
        this.clusterName = $.clusterName;
    }

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

    public static final class Builder {
        private ElastigroupIntegrationEcsArgs $;

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

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

        /**
         * @param autoscaleAttributes A key/value mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder autoscaleAttributes(@Nullable Output> autoscaleAttributes) {
            $.autoscaleAttributes = autoscaleAttributes;
            return this;
        }

        /**
         * @param autoscaleAttributes A key/value mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder autoscaleAttributes(List autoscaleAttributes) {
            return autoscaleAttributes(Output.of(autoscaleAttributes));
        }

        /**
         * @param autoscaleAttributes A key/value mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder autoscaleAttributes(ElastigroupIntegrationEcsAutoscaleAttributeArgs... autoscaleAttributes) {
            return autoscaleAttributes(List.of(autoscaleAttributes));
        }

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

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

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

        public Builder autoscaleDown(ElastigroupIntegrationEcsAutoscaleDownArgs autoscaleDown) {
            return autoscaleDown(Output.of(autoscaleDown));
        }

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

        public Builder autoscaleHeadroom(ElastigroupIntegrationEcsAutoscaleHeadroomArgs autoscaleHeadroom) {
            return autoscaleHeadroom(Output.of(autoscaleHeadroom));
        }

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

        public Builder autoscaleIsAutoConfig(Boolean autoscaleIsAutoConfig) {
            return autoscaleIsAutoConfig(Output.of(autoscaleIsAutoConfig));
        }

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

        public Builder autoscaleIsEnabled(Boolean autoscaleIsEnabled) {
            return autoscaleIsEnabled(Output.of(autoscaleIsEnabled));
        }

        /**
         * @param autoscaleScaleDownNonServiceTasks Determines whether to scale down non-service tasks.
         * 
         * @return builder
         * 
         */
        public Builder autoscaleScaleDownNonServiceTasks(@Nullable Output autoscaleScaleDownNonServiceTasks) {
            $.autoscaleScaleDownNonServiceTasks = autoscaleScaleDownNonServiceTasks;
            return this;
        }

        /**
         * @param autoscaleScaleDownNonServiceTasks Determines whether to scale down non-service tasks.
         * 
         * @return builder
         * 
         */
        public Builder autoscaleScaleDownNonServiceTasks(Boolean autoscaleScaleDownNonServiceTasks) {
            return autoscaleScaleDownNonServiceTasks(Output.of(autoscaleScaleDownNonServiceTasks));
        }

        /**
         * @param batch Batch configuration object:
         * 
         * @return builder
         * 
         */
        public Builder batch(@Nullable Output batch) {
            $.batch = batch;
            return this;
        }

        /**
         * @param batch Batch configuration object:
         * 
         * @return builder
         * 
         */
        public Builder batch(ElastigroupIntegrationEcsBatchArgs batch) {
            return batch(Output.of(batch));
        }

        /**
         * @param clusterName The name of the EC2 Container Service cluster.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(Output clusterName) {
            $.clusterName = clusterName;
            return this;
        }

        /**
         * @param clusterName The name of the EC2 Container Service cluster.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(String clusterName) {
            return clusterName(Output.of(clusterName));
        }

        public ElastigroupIntegrationEcsArgs build() {
            if ($.clusterName == null) {
                throw new MissingRequiredPropertyException("ElastigroupIntegrationEcsArgs", "clusterName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy