sdk/java/src/main/java/com/pulumi/ovh/CloudProject/outputs/KubeCustomizationApiserver.java
<filename>sdk/java/src/main/java/com/pulumi/ovh/CloudProject/outputs/KubeCustomizationApiserver.java// *** 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.ovh.CloudProject.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.ovh.CloudProject.outputs.KubeCustomizationApiserverAdmissionplugin;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class KubeCustomizationApiserver {
    /**
     * @return Kubernetes API server admission plugins customization
     * 
     */
    private @Nullable List<KubeCustomizationApiserverAdmissionplugin> admissionplugins;

    private KubeCustomizationApiserver() {}
    /**
     * @return Kubernetes API server admission plugins customization
     * 
     */
    public List<KubeCustomizationApiserverAdmissionplugin> admissionplugins() {
        return this.admissionplugins == null ? List.of() : this.admissionplugins;
    }

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

    public static Builder builder(KubeCustomizationApiserver defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List<KubeCustomizationApiserverAdmissionplugin> admissionplugins;
        public Builder() {}
        public Builder(KubeCustomizationApiserver defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.admissionplugins = defaults.admissionplugins;
        }

        @CustomType.Setter
        public Builder admissionplugins(@Nullable List<KubeCustomizationApiserverAdmissionplugin> admissionplugins) {
            this.admissionplugins = admissionplugins;
            return this;
        }
        public Builder admissionplugins(KubeCustomizationApiserverAdmissionplugin... admissionplugins) {
            return admissionplugins(List.of(admissionplugins));
        }
        public KubeCustomizationApiserver build() {
            final var o = new KubeCustomizationApiserver();
            o.admissionplugins = admissionplugins;
            return o;
        }
    }
}
