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

com.ovhcloud.pulumi.ovh.CloudProject.outputs.KubeCustomizationApiserverAdmissionplugin Maven / Gradle / Ivy

There is a newer version: 1.1.0
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.ovhcloud.pulumi.ovh.CloudProject.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class KubeCustomizationApiserverAdmissionplugin {
    /**
     * @return Array of admission plugins disabled, default is [] and only AlwaysPulImages can be disabled at this time.
     * 
     */
    private @Nullable List disableds;
    /**
     * @return Array of admission plugins enabled, default is ["NodeRestriction","AlwaysPulImages"] and only these admission plugins can be enabled at this time.
     * 
     */
    private @Nullable List enableds;

    private KubeCustomizationApiserverAdmissionplugin() {}
    /**
     * @return Array of admission plugins disabled, default is [] and only AlwaysPulImages can be disabled at this time.
     * 
     */
    public List disableds() {
        return this.disableds == null ? List.of() : this.disableds;
    }
    /**
     * @return Array of admission plugins enabled, default is ["NodeRestriction","AlwaysPulImages"] and only these admission plugins can be enabled at this time.
     * 
     */
    public List enableds() {
        return this.enableds == null ? List.of() : this.enableds;
    }

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

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

        @CustomType.Setter
        public Builder disableds(@Nullable List disableds) {

            this.disableds = disableds;
            return this;
        }
        public Builder disableds(String... disableds) {
            return disableds(List.of(disableds));
        }
        @CustomType.Setter
        public Builder enableds(@Nullable List enableds) {

            this.enableds = enableds;
            return this;
        }
        public Builder enableds(String... enableds) {
            return enableds(List.of(enableds));
        }
        public KubeCustomizationApiserverAdmissionplugin build() {
            final var _resultValue = new KubeCustomizationApiserverAdmissionplugin();
            _resultValue.disableds = disableds;
            _resultValue.enableds = enableds;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy