// *** 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.gcp.container.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.gcp.container.outputs.ClusterNodePoolDefaultsNodeConfigDefaults;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ClusterNodePoolDefaults {
    /**
     * @return Subset of NodeConfig message that has defaults.
     * 
     */
    private @Nullable ClusterNodePoolDefaultsNodeConfigDefaults nodeConfigDefaults;

    private ClusterNodePoolDefaults() {}
    /**
     * @return Subset of NodeConfig message that has defaults.
     * 
     */
    public Optional<ClusterNodePoolDefaultsNodeConfigDefaults> nodeConfigDefaults() {
        return Optional.ofNullable(this.nodeConfigDefaults);
    }

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

    public static Builder builder(ClusterNodePoolDefaults defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable ClusterNodePoolDefaultsNodeConfigDefaults nodeConfigDefaults;
        public Builder() {}
        public Builder(ClusterNodePoolDefaults defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.nodeConfigDefaults = defaults.nodeConfigDefaults;
        }

        @CustomType.Setter
        public Builder nodeConfigDefaults(@Nullable ClusterNodePoolDefaultsNodeConfigDefaults nodeConfigDefaults) {
            this.nodeConfigDefaults = nodeConfigDefaults;
            return this;
        }
        public ClusterNodePoolDefaults build() {
            final var o = new ClusterNodePoolDefaults();
            o.nodeConfigDefaults = nodeConfigDefaults;
            return o;
        }
    }
}
