sdk/java/src/main/java/com/pulumi/ovh/CloudProject/outputs/GetKubeNodePoolTemplate.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.GetKubeNodePoolTemplateMetadata;
import com.pulumi.ovh.CloudProject.outputs.GetKubeNodePoolTemplateSpec;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetKubeNodePoolTemplate {
    private @Nullable GetKubeNodePoolTemplateMetadata metadata;
    private @Nullable GetKubeNodePoolTemplateSpec spec;

    private GetKubeNodePoolTemplate() {}
    public Optional<GetKubeNodePoolTemplateMetadata> metadata() {
        return Optional.ofNullable(this.metadata);
    }
    public Optional<GetKubeNodePoolTemplateSpec> spec() {
        return Optional.ofNullable(this.spec);
    }

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

    public static Builder builder(GetKubeNodePoolTemplate defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable GetKubeNodePoolTemplateMetadata metadata;
        private @Nullable GetKubeNodePoolTemplateSpec spec;
        public Builder() {}
        public Builder(GetKubeNodePoolTemplate defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.metadata = defaults.metadata;
    	      this.spec = defaults.spec;
        }

        @CustomType.Setter
        public Builder metadata(@Nullable GetKubeNodePoolTemplateMetadata metadata) {
            this.metadata = metadata;
            return this;
        }
        @CustomType.Setter
        public Builder spec(@Nullable GetKubeNodePoolTemplateSpec spec) {
            this.spec = spec;
            return this;
        }
        public GetKubeNodePoolTemplate build() {
            final var o = new GetKubeNodePoolTemplate();
            o.metadata = metadata;
            o.spec = spec;
            return o;
        }
    }
}
