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

com.pulumi.azurenative.batch.inputs.FixedScaleSettingsArgs 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.batch.inputs;

import com.pulumi.azurenative.batch.enums.ComputeNodeDeallocationOption;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final FixedScaleSettingsArgs Empty = new FixedScaleSettingsArgs();

    /**
     * If omitted, the default value is Requeue.
     * 
     */
    @Import(name="nodeDeallocationOption")
    private @Nullable Output nodeDeallocationOption;

    /**
     * @return If omitted, the default value is Requeue.
     * 
     */
    public Optional> nodeDeallocationOption() {
        return Optional.ofNullable(this.nodeDeallocationOption);
    }

    /**
     * The default value is 15 minutes. Timeout values use ISO 8601 format. For example, use PT10M for 10 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service rejects the request with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).
     * 
     */
    @Import(name="resizeTimeout")
    private @Nullable Output resizeTimeout;

    /**
     * @return The default value is 15 minutes. Timeout values use ISO 8601 format. For example, use PT10M for 10 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service rejects the request with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).
     * 
     */
    public Optional> resizeTimeout() {
        return Optional.ofNullable(this.resizeTimeout);
    }

    /**
     * At least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
     * 
     */
    @Import(name="targetDedicatedNodes")
    private @Nullable Output targetDedicatedNodes;

    /**
     * @return At least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
     * 
     */
    public Optional> targetDedicatedNodes() {
        return Optional.ofNullable(this.targetDedicatedNodes);
    }

    /**
     * At least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
     * 
     */
    @Import(name="targetLowPriorityNodes")
    private @Nullable Output targetLowPriorityNodes;

    /**
     * @return At least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
     * 
     */
    public Optional> targetLowPriorityNodes() {
        return Optional.ofNullable(this.targetLowPriorityNodes);
    }

    private FixedScaleSettingsArgs() {}

    private FixedScaleSettingsArgs(FixedScaleSettingsArgs $) {
        this.nodeDeallocationOption = $.nodeDeallocationOption;
        this.resizeTimeout = $.resizeTimeout;
        this.targetDedicatedNodes = $.targetDedicatedNodes;
        this.targetLowPriorityNodes = $.targetLowPriorityNodes;
    }

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

    public static final class Builder {
        private FixedScaleSettingsArgs $;

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

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

        /**
         * @param nodeDeallocationOption If omitted, the default value is Requeue.
         * 
         * @return builder
         * 
         */
        public Builder nodeDeallocationOption(@Nullable Output nodeDeallocationOption) {
            $.nodeDeallocationOption = nodeDeallocationOption;
            return this;
        }

        /**
         * @param nodeDeallocationOption If omitted, the default value is Requeue.
         * 
         * @return builder
         * 
         */
        public Builder nodeDeallocationOption(ComputeNodeDeallocationOption nodeDeallocationOption) {
            return nodeDeallocationOption(Output.of(nodeDeallocationOption));
        }

        /**
         * @param resizeTimeout The default value is 15 minutes. Timeout values use ISO 8601 format. For example, use PT10M for 10 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service rejects the request with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).
         * 
         * @return builder
         * 
         */
        public Builder resizeTimeout(@Nullable Output resizeTimeout) {
            $.resizeTimeout = resizeTimeout;
            return this;
        }

        /**
         * @param resizeTimeout The default value is 15 minutes. Timeout values use ISO 8601 format. For example, use PT10M for 10 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service rejects the request with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).
         * 
         * @return builder
         * 
         */
        public Builder resizeTimeout(String resizeTimeout) {
            return resizeTimeout(Output.of(resizeTimeout));
        }

        /**
         * @param targetDedicatedNodes At least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
         * 
         * @return builder
         * 
         */
        public Builder targetDedicatedNodes(@Nullable Output targetDedicatedNodes) {
            $.targetDedicatedNodes = targetDedicatedNodes;
            return this;
        }

        /**
         * @param targetDedicatedNodes At least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
         * 
         * @return builder
         * 
         */
        public Builder targetDedicatedNodes(Integer targetDedicatedNodes) {
            return targetDedicatedNodes(Output.of(targetDedicatedNodes));
        }

        /**
         * @param targetLowPriorityNodes At least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
         * 
         * @return builder
         * 
         */
        public Builder targetLowPriorityNodes(@Nullable Output targetLowPriorityNodes) {
            $.targetLowPriorityNodes = targetLowPriorityNodes;
            return this;
        }

        /**
         * @param targetLowPriorityNodes At least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
         * 
         * @return builder
         * 
         */
        public Builder targetLowPriorityNodes(Integer targetLowPriorityNodes) {
            return targetLowPriorityNodes(Output.of(targetLowPriorityNodes));
        }

        public FixedScaleSettingsArgs build() {
            $.resizeTimeout = Codegen.stringProp("resizeTimeout").output().arg($.resizeTimeout).def("PT15M").getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy