sdk/java/src/main/java/com/pulumi/ovh/CloudProject/outputs/GetKubeNodePoolTemplateSpec.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 java.lang.Boolean;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetKubeNodePoolTemplateSpec {
    private @Nullable List<Map<String,Object>> taints;
    private @Nullable Boolean unschedulable;

    private GetKubeNodePoolTemplateSpec() {}
    public List<Map<String,Object>> taints() {
        return this.taints == null ? List.of() : this.taints;
    }
    public Optional<Boolean> unschedulable() {
        return Optional.ofNullable(this.unschedulable);
    }

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

    public static Builder builder(GetKubeNodePoolTemplateSpec defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List<Map<String,Object>> taints;
        private @Nullable Boolean unschedulable;
        public Builder() {}
        public Builder(GetKubeNodePoolTemplateSpec defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.taints = defaults.taints;
    	      this.unschedulable = defaults.unschedulable;
        }

        @CustomType.Setter
        public Builder taints(@Nullable List<Map<String,Object>> taints) {
            this.taints = taints;
            return this;
        }
        @CustomType.Setter
        public Builder unschedulable(@Nullable Boolean unschedulable) {
            this.unschedulable = unschedulable;
            return this;
        }
        public GetKubeNodePoolTemplateSpec build() {
            final var o = new GetKubeNodePoolTemplateSpec();
            o.taints = taints;
            o.unschedulable = unschedulable;
            return o;
        }
    }
}
