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

com.pulumi.vsphere.LicenseArgs Maven / Gradle / Ivy

There is a newer version: 4.13.0-alpha.1732775311
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.pulumi.vsphere;

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


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

    public static final LicenseArgs Empty = new LicenseArgs();

    /**
     * A map of key/value pairs to be attached as labels (tags) to the license key.
     * 
     */
    @Import(name="labels")
    private @Nullable Output> labels;

    /**
     * @return A map of key/value pairs to be attached as labels (tags) to the license key.
     * 
     */
    public Optional>> labels() {
        return Optional.ofNullable(this.labels);
    }

    /**
     * The license key to add.
     * 
     */
    @Import(name="licenseKey", required=true)
    private Output licenseKey;

    /**
     * @return The license key to add.
     * 
     */
    public Output licenseKey() {
        return this.licenseKey;
    }

    private LicenseArgs() {}

    private LicenseArgs(LicenseArgs $) {
        this.labels = $.labels;
        this.licenseKey = $.licenseKey;
    }

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

    public static final class Builder {
        private LicenseArgs $;

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

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

        /**
         * @param labels A map of key/value pairs to be attached as labels (tags) to the license key.
         * 
         * @return builder
         * 
         */
        public Builder labels(@Nullable Output> labels) {
            $.labels = labels;
            return this;
        }

        /**
         * @param labels A map of key/value pairs to be attached as labels (tags) to the license key.
         * 
         * @return builder
         * 
         */
        public Builder labels(Map labels) {
            return labels(Output.of(labels));
        }

        /**
         * @param licenseKey The license key to add.
         * 
         * @return builder
         * 
         */
        public Builder licenseKey(Output licenseKey) {
            $.licenseKey = licenseKey;
            return this;
        }

        /**
         * @param licenseKey The license key to add.
         * 
         * @return builder
         * 
         */
        public Builder licenseKey(String licenseKey) {
            return licenseKey(Output.of(licenseKey));
        }

        public LicenseArgs build() {
            if ($.licenseKey == null) {
                throw new MissingRequiredPropertyException("LicenseArgs", "licenseKey");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy