// *** 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 RegionCommitmentResourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final RegionCommitmentResourceArgs Empty = new RegionCommitmentResourceArgs();

    /**
     * Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.
     * 
     */
    @Import(name="acceleratorType")
    private @Nullable Output<String> acceleratorType;

    /**
     * @return Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.
     * 
     */
    public Optional<Output<String>> acceleratorType() {
        return Optional.ofNullable(this.acceleratorType);
    }

    /**
     * The amount of the resource purchased (in a type-dependent unit,
     * such as bytes). For vCPUs, this can just be an integer. For memory,
     * this must be provided in MB. Memory must be a multiple of 256 MB,
     * with up to 6.5GB of memory per every vCPU.
     * 
     */
    @Import(name="amount")
    private @Nullable Output<String> amount;

    /**
     * @return The amount of the resource purchased (in a type-dependent unit,
     * such as bytes). For vCPUs, this can just be an integer. For memory,
     * this must be provided in MB. Memory must be a multiple of 256 MB,
     * with up to 6.5GB of memory per every vCPU.
     * 
     */
    public Optional<Output<String>> amount() {
        return Optional.ofNullable(this.amount);
    }

    /**
     * Type of resource for which this commitment applies.
     * Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.
     * 
     */
    @Import(name="type")
    private @Nullable Output<String> type;

    /**
     * @return Type of resource for which this commitment applies.
     * Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.
     * 
     */
    public Optional<Output<String>> type() {
        return Optional.ofNullable(this.type);
    }

    private RegionCommitmentResourceArgs() {}

    private RegionCommitmentResourceArgs(RegionCommitmentResourceArgs $) {
        this.acceleratorType = $.acceleratorType;
        this.amount = $.amount;
        this.type = $.type;
    }

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

    public static final class Builder {
        private RegionCommitmentResourceArgs $;

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

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

        /**
         * @param acceleratorType Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.
         * 
         * @return builder
         * 
         */
        public Builder acceleratorType(@Nullable Output<String> acceleratorType) {
            $.acceleratorType = acceleratorType;
            return this;
        }

        /**
         * @param acceleratorType Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.
         * 
         * @return builder
         * 
         */
        public Builder acceleratorType(String acceleratorType) {
            return acceleratorType(Output.of(acceleratorType));
        }

        /**
         * @param amount The amount of the resource purchased (in a type-dependent unit,
         * such as bytes). For vCPUs, this can just be an integer. For memory,
         * this must be provided in MB. Memory must be a multiple of 256 MB,
         * with up to 6.5GB of memory per every vCPU.
         * 
         * @return builder
         * 
         */
        public Builder amount(@Nullable Output<String> amount) {
            $.amount = amount;
            return this;
        }

        /**
         * @param amount The amount of the resource purchased (in a type-dependent unit,
         * such as bytes). For vCPUs, this can just be an integer. For memory,
         * this must be provided in MB. Memory must be a multiple of 256 MB,
         * with up to 6.5GB of memory per every vCPU.
         * 
         * @return builder
         * 
         */
        public Builder amount(String amount) {
            return amount(Output.of(amount));
        }

        /**
         * @param type Type of resource for which this commitment applies.
         * Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output<String> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of resource for which this commitment applies.
         * Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public RegionCommitmentResourceArgs build() {
            return $;
        }
    }

}
