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

com.pulumi.kubernetes.apps.v1.inputs.StatefulSetUpdateStrategyPatchArgs 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.v1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.kubernetes.apps.v1.inputs.RollingUpdateStatefulSetStrategyPatchArgs;
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 StatefulSetUpdateStrategyPatchArgs extends com.pulumi.resources.ResourceArgs {

    public static final StatefulSetUpdateStrategyPatchArgs Empty = new StatefulSetUpdateStrategyPatchArgs();

    /**
     * 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. Default is RollingUpdate.
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

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

    private StatefulSetUpdateStrategyPatchArgs() {}

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

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

    public static final class Builder {
        private StatefulSetUpdateStrategyPatchArgs $;

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

        public Builder(StatefulSetUpdateStrategyPatchArgs defaults) {
            $ = new StatefulSetUpdateStrategyPatchArgs(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(RollingUpdateStatefulSetStrategyPatchArgs rollingUpdate) {
            return rollingUpdate(Output.of(rollingUpdate));
        }

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

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

        public StatefulSetUpdateStrategyPatchArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy