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

com.ovhcloud.pulumi.ovh.CloudProject.outputs.KubeNodePoolTemplate 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.ovhcloud.pulumi.ovh.CloudProject.outputs.KubeNodePoolTemplateMetadata;
import com.ovhcloud.pulumi.ovh.CloudProject.outputs.KubeNodePoolTemplateSpec;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.Objects;

@CustomType
public final class KubeNodePoolTemplate {
    /**
     * @return metadata
     * 
     */
    private KubeNodePoolTemplateMetadata metadata;
    /**
     * @return spec
     * 
     */
    private KubeNodePoolTemplateSpec spec;

    private KubeNodePoolTemplate() {}
    /**
     * @return metadata
     * 
     */
    public KubeNodePoolTemplateMetadata metadata() {
        return this.metadata;
    }
    /**
     * @return spec
     * 
     */
    public KubeNodePoolTemplateSpec spec() {
        return this.spec;
    }

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

    public static Builder builder(KubeNodePoolTemplate defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private KubeNodePoolTemplateMetadata metadata;
        private KubeNodePoolTemplateSpec spec;
        public Builder() {}
        public Builder(KubeNodePoolTemplate defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.metadata = defaults.metadata;
    	      this.spec = defaults.spec;
        }

        @CustomType.Setter
        public Builder metadata(KubeNodePoolTemplateMetadata metadata) {
            if (metadata == null) {
              throw new MissingRequiredPropertyException("KubeNodePoolTemplate", "metadata");
            }
            this.metadata = metadata;
            return this;
        }
        @CustomType.Setter
        public Builder spec(KubeNodePoolTemplateSpec spec) {
            if (spec == null) {
              throw new MissingRequiredPropertyException("KubeNodePoolTemplate", "spec");
            }
            this.spec = spec;
            return this;
        }
        public KubeNodePoolTemplate build() {
            final var _resultValue = new KubeNodePoolTemplate();
            _resultValue.metadata = metadata;
            _resultValue.spec = spec;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy