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

com.pulumi.aws.ecs.inputs.TaskSetScaleArgs 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.ecs.inputs;

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


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

    public static final TaskSetScaleArgs Empty = new TaskSetScaleArgs();

    /**
     * The unit of measure for the scale value. Default: `PERCENT`.
     * 
     */
    @Import(name="unit")
    private @Nullable Output unit;

    /**
     * @return The unit of measure for the scale value. Default: `PERCENT`.
     * 
     */
    public Optional> unit() {
        return Optional.ofNullable(this.unit);
    }

    /**
     * The value, specified as a percent total of a service's `desiredCount`, to scale the task set. Defaults to `0` if not specified. Accepted values are numbers between 0.0 and 100.0.
     * 
     */
    @Import(name="value")
    private @Nullable Output value;

    /**
     * @return The value, specified as a percent total of a service's `desiredCount`, to scale the task set. Defaults to `0` if not specified. Accepted values are numbers between 0.0 and 100.0.
     * 
     */
    public Optional> value() {
        return Optional.ofNullable(this.value);
    }

    private TaskSetScaleArgs() {}

    private TaskSetScaleArgs(TaskSetScaleArgs $) {
        this.unit = $.unit;
        this.value = $.value;
    }

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

    public static final class Builder {
        private TaskSetScaleArgs $;

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

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

        /**
         * @param unit The unit of measure for the scale value. Default: `PERCENT`.
         * 
         * @return builder
         * 
         */
        public Builder unit(@Nullable Output unit) {
            $.unit = unit;
            return this;
        }

        /**
         * @param unit The unit of measure for the scale value. Default: `PERCENT`.
         * 
         * @return builder
         * 
         */
        public Builder unit(String unit) {
            return unit(Output.of(unit));
        }

        /**
         * @param value The value, specified as a percent total of a service's `desiredCount`, to scale the task set. Defaults to `0` if not specified. Accepted values are numbers between 0.0 and 100.0.
         * 
         * @return builder
         * 
         */
        public Builder value(@Nullable Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value The value, specified as a percent total of a service's `desiredCount`, to scale the task set. Defaults to `0` if not specified. Accepted values are numbers between 0.0 and 100.0.
         * 
         * @return builder
         * 
         */
        public Builder value(Double value) {
            return value(Output.of(value));
        }

        public TaskSetScaleArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy