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

com.pulumi.kubernetes.apps.v1beta1.inputs.StatefulSetUpdateStrategyArgs Maven / Gradle / Ivy

There is a newer version: 4.19.0-alpha.1730750641
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.kubernetes.apps.v1beta1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.kubernetes.apps.v1beta1.inputs.RollingUpdateStatefulSetStrategyArgs;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.
 * 
 */
public final class StatefulSetUpdateStrategyArgs extends com.pulumi.resources.ResourceArgs {

    public static final StatefulSetUpdateStrategyArgs Empty = new StatefulSetUpdateStrategyArgs();

    /**
     * RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.
     * 
     */
    @Import(name="rollingUpdate")
    private @Nullable Output rollingUpdate;

    /**
     * @return RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.
     * 
     */
    public Optional> rollingUpdate() {
        return Optional.ofNullable(this.rollingUpdate);
    }

    /**
     * Type indicates the type of the StatefulSetUpdateStrategy.
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return Type indicates the type of the StatefulSetUpdateStrategy.
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    private StatefulSetUpdateStrategyArgs() {}

    private StatefulSetUpdateStrategyArgs(StatefulSetUpdateStrategyArgs $) {
        this.rollingUpdate = $.rollingUpdate;
        this.type = $.type;
    }

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

    public static final class Builder {
        private StatefulSetUpdateStrategyArgs $;

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

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

        /**
         * @param rollingUpdate RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.
         * 
         * @return builder
         * 
         */
        public Builder rollingUpdate(@Nullable Output rollingUpdate) {
            $.rollingUpdate = rollingUpdate;
            return this;
        }

        /**
         * @param rollingUpdate RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.
         * 
         * @return builder
         * 
         */
        public Builder rollingUpdate(RollingUpdateStatefulSetStrategyArgs rollingUpdate) {
            return rollingUpdate(Output.of(rollingUpdate));
        }

        /**
         * @param type Type indicates the type of the StatefulSetUpdateStrategy.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type indicates the type of the StatefulSetUpdateStrategy.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public StatefulSetUpdateStrategyArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy