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

com.pulumi.azurenative.devcenter.inputs.StopOnDisconnectConfigurationArgs 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.devcenter.inputs;

import com.pulumi.azurenative.devcenter.enums.StopOnDisconnectEnableStatus;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Stop on disconnect configuration settings for Dev Boxes created in this pool.
 * 
 */
public final class StopOnDisconnectConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final StopOnDisconnectConfigurationArgs Empty = new StopOnDisconnectConfigurationArgs();

    /**
     * The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.
     * 
     */
    @Import(name="gracePeriodMinutes")
    private @Nullable Output gracePeriodMinutes;

    /**
     * @return The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.
     * 
     */
    public Optional> gracePeriodMinutes() {
        return Optional.ofNullable(this.gracePeriodMinutes);
    }

    /**
     * Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.
     * 
     */
    @Import(name="status")
    private @Nullable Output> status;

    /**
     * @return Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.
     * 
     */
    public Optional>> status() {
        return Optional.ofNullable(this.status);
    }

    private StopOnDisconnectConfigurationArgs() {}

    private StopOnDisconnectConfigurationArgs(StopOnDisconnectConfigurationArgs $) {
        this.gracePeriodMinutes = $.gracePeriodMinutes;
        this.status = $.status;
    }

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

    public static final class Builder {
        private StopOnDisconnectConfigurationArgs $;

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

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

        /**
         * @param gracePeriodMinutes The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.
         * 
         * @return builder
         * 
         */
        public Builder gracePeriodMinutes(@Nullable Output gracePeriodMinutes) {
            $.gracePeriodMinutes = gracePeriodMinutes;
            return this;
        }

        /**
         * @param gracePeriodMinutes The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.
         * 
         * @return builder
         * 
         */
        public Builder gracePeriodMinutes(Integer gracePeriodMinutes) {
            return gracePeriodMinutes(Output.of(gracePeriodMinutes));
        }

        /**
         * @param status Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output> status) {
            $.status = status;
            return this;
        }

        /**
         * @param status Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.
         * 
         * @return builder
         * 
         */
        public Builder status(Either status) {
            return status(Output.of(status));
        }

        /**
         * @param status Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Either.ofLeft(status));
        }

        /**
         * @param status Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.
         * 
         * @return builder
         * 
         */
        public Builder status(StopOnDisconnectEnableStatus status) {
            return status(Either.ofRight(status));
        }

        public StopOnDisconnectConfigurationArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy