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

com.pulumi.kubernetes.apps.v1.inputs.DaemonSetUpdateStrategyPatchArgs 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.RollingUpdateDaemonSetPatchArgs;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.
 * 
 */
public final class DaemonSetUpdateStrategyPatchArgs extends com.pulumi.resources.ResourceArgs {

    public static final DaemonSetUpdateStrategyPatchArgs Empty = new DaemonSetUpdateStrategyPatchArgs();

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

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

    private DaemonSetUpdateStrategyPatchArgs() {}

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

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

    public static final class Builder {
        private DaemonSetUpdateStrategyPatchArgs $;

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

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

        /**
         * @param type Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate.
         * 
         * @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 RollingUpdate.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public DaemonSetUpdateStrategyPatchArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy