// *** 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.Boolean;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final InstanceAdvancedMachineFeaturesArgs Empty = new InstanceAdvancedMachineFeaturesArgs();

    /**
     * Defines whether the instance should have nested virtualization  enabled. Defaults to false.
     * 
     */
    @Import(name="enableNestedVirtualization")
    private @Nullable Output<Boolean> enableNestedVirtualization;

    /**
     * @return Defines whether the instance should have nested virtualization  enabled. Defaults to false.
     * 
     */
    public Optional<Output<Boolean>> enableNestedVirtualization() {
        return Optional.ofNullable(this.enableNestedVirtualization);
    }

    /**
     * he number of threads per physical core. To disable [simultaneous multithreading (SMT)](https://cloud.google.com/compute/docs/instances/disabling-smt) set this to 1.
     * 
     */
    @Import(name="threadsPerCore")
    private @Nullable Output<Integer> threadsPerCore;

    /**
     * @return he number of threads per physical core. To disable [simultaneous multithreading (SMT)](https://cloud.google.com/compute/docs/instances/disabling-smt) set this to 1.
     * 
     */
    public Optional<Output<Integer>> threadsPerCore() {
        return Optional.ofNullable(this.threadsPerCore);
    }

    /**
     * The number of physical cores to expose to an instance. [visible cores info (VC)](https://cloud.google.com/compute/docs/instances/customize-visible-cores).
     * 
     */
    @Import(name="visibleCoreCount")
    private @Nullable Output<Integer> visibleCoreCount;

    /**
     * @return The number of physical cores to expose to an instance. [visible cores info (VC)](https://cloud.google.com/compute/docs/instances/customize-visible-cores).
     * 
     */
    public Optional<Output<Integer>> visibleCoreCount() {
        return Optional.ofNullable(this.visibleCoreCount);
    }

    private InstanceAdvancedMachineFeaturesArgs() {}

    private InstanceAdvancedMachineFeaturesArgs(InstanceAdvancedMachineFeaturesArgs $) {
        this.enableNestedVirtualization = $.enableNestedVirtualization;
        this.threadsPerCore = $.threadsPerCore;
        this.visibleCoreCount = $.visibleCoreCount;
    }

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

    public static final class Builder {
        private InstanceAdvancedMachineFeaturesArgs $;

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

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

        /**
         * @param enableNestedVirtualization Defines whether the instance should have nested virtualization  enabled. Defaults to false.
         * 
         * @return builder
         * 
         */
        public Builder enableNestedVirtualization(@Nullable Output<Boolean> enableNestedVirtualization) {
            $.enableNestedVirtualization = enableNestedVirtualization;
            return this;
        }

        /**
         * @param enableNestedVirtualization Defines whether the instance should have nested virtualization  enabled. Defaults to false.
         * 
         * @return builder
         * 
         */
        public Builder enableNestedVirtualization(Boolean enableNestedVirtualization) {
            return enableNestedVirtualization(Output.of(enableNestedVirtualization));
        }

        /**
         * @param threadsPerCore he number of threads per physical core. To disable [simultaneous multithreading (SMT)](https://cloud.google.com/compute/docs/instances/disabling-smt) set this to 1.
         * 
         * @return builder
         * 
         */
        public Builder threadsPerCore(@Nullable Output<Integer> threadsPerCore) {
            $.threadsPerCore = threadsPerCore;
            return this;
        }

        /**
         * @param threadsPerCore he number of threads per physical core. To disable [simultaneous multithreading (SMT)](https://cloud.google.com/compute/docs/instances/disabling-smt) set this to 1.
         * 
         * @return builder
         * 
         */
        public Builder threadsPerCore(Integer threadsPerCore) {
            return threadsPerCore(Output.of(threadsPerCore));
        }

        /**
         * @param visibleCoreCount The number of physical cores to expose to an instance. [visible cores info (VC)](https://cloud.google.com/compute/docs/instances/customize-visible-cores).
         * 
         * @return builder
         * 
         */
        public Builder visibleCoreCount(@Nullable Output<Integer> visibleCoreCount) {
            $.visibleCoreCount = visibleCoreCount;
            return this;
        }

        /**
         * @param visibleCoreCount The number of physical cores to expose to an instance. [visible cores info (VC)](https://cloud.google.com/compute/docs/instances/customize-visible-cores).
         * 
         * @return builder
         * 
         */
        public Builder visibleCoreCount(Integer visibleCoreCount) {
            return visibleCoreCount(Output.of(visibleCoreCount));
        }

        public InstanceAdvancedMachineFeaturesArgs build() {
            return $;
        }
    }

}
