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

com.pulumi.spotinst.oceancd.inputs.StrategyState 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 com.pulumi.spotinst.oceancd.inputs.StrategyCanaryArgs;
import com.pulumi.spotinst.oceancd.inputs.StrategyRollingArgs;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final StrategyState Empty = new StrategyState();

    /**
     * Represents Canary strategy. Cannot be defined when Rolling object is defined.
     * 
     */
    @Import(name="canary")
    private @Nullable Output canary;

    /**
     * @return Represents Canary strategy. Cannot be defined when Rolling object is defined.
     * 
     */
    public Optional> canary() {
        return Optional.ofNullable(this.canary);
    }

    /**
     * Represents Rolling Update strategy. Cannot be defined when Canary object is defined.
     * 
     */
    @Import(name="rolling")
    private @Nullable Output rolling;

    /**
     * @return Represents Rolling Update strategy. Cannot be defined when Canary object is defined.
     * 
     */
    public Optional> rolling() {
        return Optional.ofNullable(this.rolling);
    }

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

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

    private StrategyState() {}

    private StrategyState(StrategyState $) {
        this.canary = $.canary;
        this.rolling = $.rolling;
        this.strategyName = $.strategyName;
    }

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

    public static final class Builder {
        private StrategyState $;

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

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

        /**
         * @param canary Represents Canary strategy. Cannot be defined when Rolling object is defined.
         * 
         * @return builder
         * 
         */
        public Builder canary(@Nullable Output canary) {
            $.canary = canary;
            return this;
        }

        /**
         * @param canary Represents Canary strategy. Cannot be defined when Rolling object is defined.
         * 
         * @return builder
         * 
         */
        public Builder canary(StrategyCanaryArgs canary) {
            return canary(Output.of(canary));
        }

        /**
         * @param rolling Represents Rolling Update strategy. Cannot be defined when Canary object is defined.
         * 
         * @return builder
         * 
         */
        public Builder rolling(@Nullable Output rolling) {
            $.rolling = rolling;
            return this;
        }

        /**
         * @param rolling Represents Rolling Update strategy. Cannot be defined when Canary object is defined.
         * 
         * @return builder
         * 
         */
        public Builder rolling(StrategyRollingArgs rolling) {
            return rolling(Output.of(rolling));
        }

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

        public Builder strategyName(String strategyName) {
            return strategyName(Output.of(strategyName));
        }

        public StrategyState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy