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

com.pulumi.kubernetes.apps.v1beta2.inputs.RollingUpdateStatefulSetStrategyPatchArgs Maven / Gradle / Ivy

There is a newer version: 4.19.0
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.v1beta2.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
 * 
 */
public final class RollingUpdateStatefulSetStrategyPatchArgs extends com.pulumi.resources.ResourceArgs {

    public static final RollingUpdateStatefulSetStrategyPatchArgs Empty = new RollingUpdateStatefulSetStrategyPatchArgs();

    /**
     * Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0.
     * 
     */
    @Import(name="partition")
    private @Nullable Output partition;

    /**
     * @return Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0.
     * 
     */
    public Optional> partition() {
        return Optional.ofNullable(this.partition);
    }

    private RollingUpdateStatefulSetStrategyPatchArgs() {}

    private RollingUpdateStatefulSetStrategyPatchArgs(RollingUpdateStatefulSetStrategyPatchArgs $) {
        this.partition = $.partition;
    }

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

    public static final class Builder {
        private RollingUpdateStatefulSetStrategyPatchArgs $;

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

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

        /**
         * @param partition Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0.
         * 
         * @return builder
         * 
         */
        public Builder partition(@Nullable Output partition) {
            $.partition = partition;
            return this;
        }

        /**
         * @param partition Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0.
         * 
         * @return builder
         * 
         */
        public Builder partition(Integer partition) {
            return partition(Output.of(partition));
        }

        public RollingUpdateStatefulSetStrategyPatchArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy