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

com.pulumi.azurenative.windowsesu.MultipleActivationKeyArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
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.azurenative.windowsesu;

import com.pulumi.azurenative.windowsesu.enums.OsType;
import com.pulumi.azurenative.windowsesu.enums.SupportType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final MultipleActivationKeyArgs Empty = new MultipleActivationKeyArgs();

    /**
     * Agreement number under which the key is requested.
     * 
     */
    @Import(name="agreementNumber")
    private @Nullable Output agreementNumber;

    /**
     * @return Agreement number under which the key is requested.
     * 
     */
    public Optional> agreementNumber() {
        return Optional.ofNullable(this.agreementNumber);
    }

    /**
     * Number of activations/servers using the MAK key.
     * 
     */
    @Import(name="installedServerNumber")
    private @Nullable Output installedServerNumber;

    /**
     * @return Number of activations/servers using the MAK key.
     * 
     */
    public Optional> installedServerNumber() {
        return Optional.ofNullable(this.installedServerNumber);
    }

    /**
     * <code> true </code> if user has eligible on-premises Windows physical or virtual machines, and that the requested key will only be used in their organization; <code> false </code> otherwise.
     * 
     */
    @Import(name="isEligible")
    private @Nullable Output isEligible;

    /**
     * @return <code> true </code> if user has eligible on-premises Windows physical or virtual machines, and that the requested key will only be used in their organization; <code> false </code> otherwise.
     * 
     */
    public Optional> isEligible() {
        return Optional.ofNullable(this.isEligible);
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The name of the MAK key.
     * 
     */
    @Import(name="multipleActivationKeyName")
    private @Nullable Output multipleActivationKeyName;

    /**
     * @return The name of the MAK key.
     * 
     */
    public Optional> multipleActivationKeyName() {
        return Optional.ofNullable(this.multipleActivationKeyName);
    }

    /**
     * Type of OS for which the key is requested.
     * 
     */
    @Import(name="osType")
    private @Nullable Output> osType;

    /**
     * @return Type of OS for which the key is requested.
     * 
     */
    public Optional>> osType() {
        return Optional.ofNullable(this.osType);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Type of support
     * 
     */
    @Import(name="supportType")
    private @Nullable Output> supportType;

    /**
     * @return Type of support
     * 
     */
    public Optional>> supportType() {
        return Optional.ofNullable(this.supportType);
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private MultipleActivationKeyArgs() {}

    private MultipleActivationKeyArgs(MultipleActivationKeyArgs $) {
        this.agreementNumber = $.agreementNumber;
        this.installedServerNumber = $.installedServerNumber;
        this.isEligible = $.isEligible;
        this.location = $.location;
        this.multipleActivationKeyName = $.multipleActivationKeyName;
        this.osType = $.osType;
        this.resourceGroupName = $.resourceGroupName;
        this.supportType = $.supportType;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private MultipleActivationKeyArgs $;

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

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

        /**
         * @param agreementNumber Agreement number under which the key is requested.
         * 
         * @return builder
         * 
         */
        public Builder agreementNumber(@Nullable Output agreementNumber) {
            $.agreementNumber = agreementNumber;
            return this;
        }

        /**
         * @param agreementNumber Agreement number under which the key is requested.
         * 
         * @return builder
         * 
         */
        public Builder agreementNumber(String agreementNumber) {
            return agreementNumber(Output.of(agreementNumber));
        }

        /**
         * @param installedServerNumber Number of activations/servers using the MAK key.
         * 
         * @return builder
         * 
         */
        public Builder installedServerNumber(@Nullable Output installedServerNumber) {
            $.installedServerNumber = installedServerNumber;
            return this;
        }

        /**
         * @param installedServerNumber Number of activations/servers using the MAK key.
         * 
         * @return builder
         * 
         */
        public Builder installedServerNumber(Integer installedServerNumber) {
            return installedServerNumber(Output.of(installedServerNumber));
        }

        /**
         * @param isEligible <code> true </code> if user has eligible on-premises Windows physical or virtual machines, and that the requested key will only be used in their organization; <code> false </code> otherwise.
         * 
         * @return builder
         * 
         */
        public Builder isEligible(@Nullable Output isEligible) {
            $.isEligible = isEligible;
            return this;
        }

        /**
         * @param isEligible <code> true </code> if user has eligible on-premises Windows physical or virtual machines, and that the requested key will only be used in their organization; <code> false </code> otherwise.
         * 
         * @return builder
         * 
         */
        public Builder isEligible(Boolean isEligible) {
            return isEligible(Output.of(isEligible));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param multipleActivationKeyName The name of the MAK key.
         * 
         * @return builder
         * 
         */
        public Builder multipleActivationKeyName(@Nullable Output multipleActivationKeyName) {
            $.multipleActivationKeyName = multipleActivationKeyName;
            return this;
        }

        /**
         * @param multipleActivationKeyName The name of the MAK key.
         * 
         * @return builder
         * 
         */
        public Builder multipleActivationKeyName(String multipleActivationKeyName) {
            return multipleActivationKeyName(Output.of(multipleActivationKeyName));
        }

        /**
         * @param osType Type of OS for which the key is requested.
         * 
         * @return builder
         * 
         */
        public Builder osType(@Nullable Output> osType) {
            $.osType = osType;
            return this;
        }

        /**
         * @param osType Type of OS for which the key is requested.
         * 
         * @return builder
         * 
         */
        public Builder osType(Either osType) {
            return osType(Output.of(osType));
        }

        /**
         * @param osType Type of OS for which the key is requested.
         * 
         * @return builder
         * 
         */
        public Builder osType(String osType) {
            return osType(Either.ofLeft(osType));
        }

        /**
         * @param osType Type of OS for which the key is requested.
         * 
         * @return builder
         * 
         */
        public Builder osType(OsType osType) {
            return osType(Either.ofRight(osType));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param supportType Type of support
         * 
         * @return builder
         * 
         */
        public Builder supportType(@Nullable Output> supportType) {
            $.supportType = supportType;
            return this;
        }

        /**
         * @param supportType Type of support
         * 
         * @return builder
         * 
         */
        public Builder supportType(Either supportType) {
            return supportType(Output.of(supportType));
        }

        /**
         * @param supportType Type of support
         * 
         * @return builder
         * 
         */
        public Builder supportType(String supportType) {
            return supportType(Either.ofLeft(supportType));
        }

        /**
         * @param supportType Type of support
         * 
         * @return builder
         * 
         */
        public Builder supportType(SupportType supportType) {
            return supportType(Either.ofRight(supportType));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public MultipleActivationKeyArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("MultipleActivationKeyArgs", "resourceGroupName");
            }
            $.supportType = Codegen.stringProp("supportType").left(SupportType.class).output().arg($.supportType).def("SupplementalServicing").getNullable();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy