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

com.pulumi.kubernetes.storage.v1.outputs.CSINodeSpec 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.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.kubernetes.storage.v1.outputs.CSINodeDriver;
import java.util.List;
import java.util.Objects;

@CustomType
public final class CSINodeSpec {
    /**
     * @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.
     * 
     */
    private List drivers;

    private CSINodeSpec() {}
    /**
     * @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 List drivers() {
        return this.drivers;
    }

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

    public static Builder builder(CSINodeSpec defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List drivers;
        public Builder() {}
        public Builder(CSINodeSpec defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.drivers = defaults.drivers;
        }

        @CustomType.Setter
        public Builder drivers(List drivers) {
            if (drivers == null) {
              throw new MissingRequiredPropertyException("CSINodeSpec", "drivers");
            }
            this.drivers = drivers;
            return this;
        }
        public Builder drivers(CSINodeDriver... drivers) {
            return drivers(List.of(drivers));
        }
        public CSINodeSpec build() {
            final var _resultValue = new CSINodeSpec();
            _resultValue.drivers = drivers;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy