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

    public static final RegionCommitmentLicenseResourceArgs Empty = new RegionCommitmentLicenseResourceArgs();

    /**
     * The number of licenses purchased.
     * 
     */
    @Import(name="amount")
    private @Nullable Output<String> amount;

    /**
     * @return The number of licenses purchased.
     * 
     */
    public Optional<Output<String>> amount() {
        return Optional.ofNullable(this.amount);
    }

    /**
     * Specifies the core range of the instance for which this license applies.
     * 
     */
    @Import(name="coresPerLicense")
    private @Nullable Output<String> coresPerLicense;

    /**
     * @return Specifies the core range of the instance for which this license applies.
     * 
     */
    public Optional<Output<String>> coresPerLicense() {
        return Optional.ofNullable(this.coresPerLicense);
    }

    /**
     * Any applicable license URI.
     * 
     */
    @Import(name="license", required=true)
    private Output<String> license;

    /**
     * @return Any applicable license URI.
     * 
     */
    public Output<String> license() {
        return this.license;
    }

    private RegionCommitmentLicenseResourceArgs() {}

    private RegionCommitmentLicenseResourceArgs(RegionCommitmentLicenseResourceArgs $) {
        this.amount = $.amount;
        this.coresPerLicense = $.coresPerLicense;
        this.license = $.license;
    }

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

    public static final class Builder {
        private RegionCommitmentLicenseResourceArgs $;

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

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

        /**
         * @param amount The number of licenses purchased.
         * 
         * @return builder
         * 
         */
        public Builder amount(@Nullable Output<String> amount) {
            $.amount = amount;
            return this;
        }

        /**
         * @param amount The number of licenses purchased.
         * 
         * @return builder
         * 
         */
        public Builder amount(String amount) {
            return amount(Output.of(amount));
        }

        /**
         * @param coresPerLicense Specifies the core range of the instance for which this license applies.
         * 
         * @return builder
         * 
         */
        public Builder coresPerLicense(@Nullable Output<String> coresPerLicense) {
            $.coresPerLicense = coresPerLicense;
            return this;
        }

        /**
         * @param coresPerLicense Specifies the core range of the instance for which this license applies.
         * 
         * @return builder
         * 
         */
        public Builder coresPerLicense(String coresPerLicense) {
            return coresPerLicense(Output.of(coresPerLicense));
        }

        /**
         * @param license Any applicable license URI.
         * 
         * @return builder
         * 
         */
        public Builder license(Output<String> license) {
            $.license = license;
            return this;
        }

        /**
         * @param license Any applicable license URI.
         * 
         * @return builder
         * 
         */
        public Builder license(String license) {
            return license(Output.of(license));
        }

        public RegionCommitmentLicenseResourceArgs build() {
            $.license = Objects.requireNonNull($.license, "expected parameter 'license' to be non-null");
            return $;
        }
    }

}
