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

com.pulumi.kubernetes.storage.v1.inputs.CSINodeSpecArgs 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.storage.v1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.kubernetes.storage.v1.inputs.CSINodeDriverArgs;
import java.util.List;
import java.util.Objects;


/**
 * CSINodeSpec holds information about the specification of all CSI drivers installed on a node
 * 
 */
public final class CSINodeSpecArgs extends com.pulumi.resources.ResourceArgs {

    public static final CSINodeSpecArgs Empty = new CSINodeSpecArgs();

    /**
     * drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.
     * 
     */
    @Import(name="drivers", required=true)
    private Output> drivers;

    /**
     * @return drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.
     * 
     */
    public Output> drivers() {
        return this.drivers;
    }

    private CSINodeSpecArgs() {}

    private CSINodeSpecArgs(CSINodeSpecArgs $) {
        this.drivers = $.drivers;
    }

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

    public static final class Builder {
        private CSINodeSpecArgs $;

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

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

        /**
         * @param drivers drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.
         * 
         * @return builder
         * 
         */
        public Builder drivers(Output> drivers) {
            $.drivers = drivers;
            return this;
        }

        /**
         * @param drivers drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.
         * 
         * @return builder
         * 
         */
        public Builder drivers(List drivers) {
            return drivers(Output.of(drivers));
        }

        /**
         * @param drivers drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.
         * 
         * @return builder
         * 
         */
        public Builder drivers(CSINodeDriverArgs... drivers) {
            return drivers(List.of(drivers));
        }

        public CSINodeSpecArgs build() {
            if ($.drivers == null) {
                throw new MissingRequiredPropertyException("CSINodeSpecArgs", "drivers");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy