// *** 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.compute.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class NodeTemplateNodeTypeFlexibilityArgs extends com.pulumi.resources.ResourceArgs {

    public static final NodeTemplateNodeTypeFlexibilityArgs Empty = new NodeTemplateNodeTypeFlexibilityArgs();

    /**
     * Number of virtual CPUs to use.
     * 
     */
    @Import(name="cpus")
    private @Nullable Output<String> cpus;

    /**
     * @return Number of virtual CPUs to use.
     * 
     */
    public Optional<Output<String>> cpus() {
        return Optional.ofNullable(this.cpus);
    }

    /**
     * (Output)
     * Use local SSD
     * 
     */
    @Import(name="localSsd")
    private @Nullable Output<String> localSsd;

    /**
     * @return (Output)
     * Use local SSD
     * 
     */
    public Optional<Output<String>> localSsd() {
        return Optional.ofNullable(this.localSsd);
    }

    /**
     * Physical memory available to the node, defined in MB.
     * 
     */
    @Import(name="memory")
    private @Nullable Output<String> memory;

    /**
     * @return Physical memory available to the node, defined in MB.
     * 
     */
    public Optional<Output<String>> memory() {
        return Optional.ofNullable(this.memory);
    }

    private NodeTemplateNodeTypeFlexibilityArgs() {}

    private NodeTemplateNodeTypeFlexibilityArgs(NodeTemplateNodeTypeFlexibilityArgs $) {
        this.cpus = $.cpus;
        this.localSsd = $.localSsd;
        this.memory = $.memory;
    }

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

    public static final class Builder {
        private NodeTemplateNodeTypeFlexibilityArgs $;

        public Builder() {
            $ = new NodeTemplateNodeTypeFlexibilityArgs();
        }

        public Builder(NodeTemplateNodeTypeFlexibilityArgs defaults) {
            $ = new NodeTemplateNodeTypeFlexibilityArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param cpus Number of virtual CPUs to use.
         * 
         * @return builder
         * 
         */
        public Builder cpus(@Nullable Output<String> cpus) {
            $.cpus = cpus;
            return this;
        }

        /**
         * @param cpus Number of virtual CPUs to use.
         * 
         * @return builder
         * 
         */
        public Builder cpus(String cpus) {
            return cpus(Output.of(cpus));
        }

        /**
         * @param localSsd (Output)
         * Use local SSD
         * 
         * @return builder
         * 
         */
        public Builder localSsd(@Nullable Output<String> localSsd) {
            $.localSsd = localSsd;
            return this;
        }

        /**
         * @param localSsd (Output)
         * Use local SSD
         * 
         * @return builder
         * 
         */
        public Builder localSsd(String localSsd) {
            return localSsd(Output.of(localSsd));
        }

        /**
         * @param memory Physical memory available to the node, defined in MB.
         * 
         * @return builder
         * 
         */
        public Builder memory(@Nullable Output<String> memory) {
            $.memory = memory;
            return this;
        }

        /**
         * @param memory Physical memory available to the node, defined in MB.
         * 
         * @return builder
         * 
         */
        public Builder memory(String memory) {
            return memory(Output.of(memory));
        }

        public NodeTemplateNodeTypeFlexibilityArgs build() {
            return $;
        }
    }

}
