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

com.pulumi.kubernetes.extensions.v1beta1.inputs.DaemonSetUpdateStrategyArgs 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.extensions.v1beta1.inputs;

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


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

    public static final DaemonSetUpdateStrategyArgs Empty = new DaemonSetUpdateStrategyArgs();

    /**
     * Rolling update config params. Present only if type = "RollingUpdate".
     * 
     */
    @Import(name="rollingUpdate")
    private @Nullable Output rollingUpdate;

    /**
     * @return Rolling update config params. Present only if type = "RollingUpdate".
     * 
     */
    public Optional> rollingUpdate() {
        return Optional.ofNullable(this.rollingUpdate);
    }

    /**
     * Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is OnDelete.
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is OnDelete.
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    private DaemonSetUpdateStrategyArgs() {}

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

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

    public static final class Builder {
        private DaemonSetUpdateStrategyArgs $;

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

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

        /**
         * @param rollingUpdate Rolling update config params. Present only if type = "RollingUpdate".
         * 
         * @return builder
         * 
         */
        public Builder rollingUpdate(@Nullable Output rollingUpdate) {
            $.rollingUpdate = rollingUpdate;
            return this;
        }

        /**
         * @param rollingUpdate Rolling update config params. Present only if type = "RollingUpdate".
         * 
         * @return builder
         * 
         */
        public Builder rollingUpdate(RollingUpdateDaemonSetArgs rollingUpdate) {
            return rollingUpdate(Output.of(rollingUpdate));
        }

        /**
         * @param type Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is OnDelete.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is OnDelete.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public DaemonSetUpdateStrategyArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy