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

com.pulumi.kubernetes.extensions.v1beta1.inputs.RollbackConfigArgs 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 java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * DEPRECATED.
 * 
 */
public final class RollbackConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final RollbackConfigArgs Empty = new RollbackConfigArgs();

    /**
     * The revision to rollback to. If set to 0, rollback to the last revision.
     * 
     */
    @Import(name="revision")
    private @Nullable Output revision;

    /**
     * @return The revision to rollback to. If set to 0, rollback to the last revision.
     * 
     */
    public Optional> revision() {
        return Optional.ofNullable(this.revision);
    }

    private RollbackConfigArgs() {}

    private RollbackConfigArgs(RollbackConfigArgs $) {
        this.revision = $.revision;
    }

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

    public static final class Builder {
        private RollbackConfigArgs $;

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

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

        /**
         * @param revision The revision to rollback to. If set to 0, rollback to the last revision.
         * 
         * @return builder
         * 
         */
        public Builder revision(@Nullable Output revision) {
            $.revision = revision;
            return this;
        }

        /**
         * @param revision The revision to rollback to. If set to 0, rollback to the last revision.
         * 
         * @return builder
         * 
         */
        public Builder revision(Integer revision) {
            return revision(Output.of(revision));
        }

        public RollbackConfigArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy