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

com.pulumi.spotinst.oceancd.inputs.StrategyRollingStepPauseArgs 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.oceancd.inputs;

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


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

    public static final StrategyRollingStepPauseArgs Empty = new StrategyRollingStepPauseArgs();

    /**
     * The amount of time to wait before moving to the next step.
     * 
     */
    @Import(name="duration")
    private @Nullable Output duration;

    /**
     * @return The amount of time to wait before moving to the next step.
     * 
     */
    public Optional> duration() {
        return Optional.ofNullable(this.duration);
    }

    private StrategyRollingStepPauseArgs() {}

    private StrategyRollingStepPauseArgs(StrategyRollingStepPauseArgs $) {
        this.duration = $.duration;
    }

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

    public static final class Builder {
        private StrategyRollingStepPauseArgs $;

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

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

        /**
         * @param duration The amount of time to wait before moving to the next step.
         * 
         * @return builder
         * 
         */
        public Builder duration(@Nullable Output duration) {
            $.duration = duration;
            return this;
        }

        /**
         * @param duration The amount of time to wait before moving to the next step.
         * 
         * @return builder
         * 
         */
        public Builder duration(String duration) {
            return duration(Output.of(duration));
        }

        public StrategyRollingStepPauseArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy