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

com.pulumi.kubernetes.apps.v1beta1.inputs.RollbackConfigPatchArgs 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.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 RollbackConfigPatchArgs extends com.pulumi.resources.ResourceArgs {

    public static final RollbackConfigPatchArgs Empty = new RollbackConfigPatchArgs();

    /**
     * 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 RollbackConfigPatchArgs() {}

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

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

    public static final class Builder {
        private RollbackConfigPatchArgs $;

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

        public Builder(RollbackConfigPatchArgs defaults) {
            $ = new RollbackConfigPatchArgs(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 RollbackConfigPatchArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy