// *** 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.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * AllowedFlexVolume represents a single Flexvolume that is allowed to be used. Deprecated: use AllowedFlexVolume from policy API Group instead.
 * 
 */
public final class AllowedFlexVolumePatchArgs extends com.pulumi.resources.ResourceArgs {

    public static final AllowedFlexVolumePatchArgs Empty = new AllowedFlexVolumePatchArgs();

    /**
     * driver is the name of the Flexvolume driver.
     * 
     */
    @Import(name="driver")
    private @Nullable Output<String> driver;

    /**
     * @return driver is the name of the Flexvolume driver.
     * 
     */
    public Optional<Output<String>> driver() {
        return Optional.ofNullable(this.driver);
    }

    private AllowedFlexVolumePatchArgs() {}

    private AllowedFlexVolumePatchArgs(AllowedFlexVolumePatchArgs $) {
        this.driver = $.driver;
    }

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

    public static final class Builder {
        private AllowedFlexVolumePatchArgs $;

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

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

        /**
         * @param driver driver is the name of the Flexvolume driver.
         * 
         * @return builder
         * 
         */
        public Builder driver(@Nullable Output<String> driver) {
            $.driver = driver;
            return this;
        }

        /**
         * @param driver driver is the name of the Flexvolume driver.
         * 
         * @return builder
         * 
         */
        public Builder driver(String driver) {
            return driver(Output.of(driver));
        }

        public AllowedFlexVolumePatchArgs build() {
            return $;
        }
    }

}
