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

com.pulumi.azurenative.avs.AddonArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.avs;

import com.pulumi.azurenative.avs.inputs.AddonArcPropertiesArgs;
import com.pulumi.azurenative.avs.inputs.AddonHcxPropertiesArgs;
import com.pulumi.azurenative.avs.inputs.AddonSrmPropertiesArgs;
import com.pulumi.azurenative.avs.inputs.AddonVrPropertiesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AddonArgs Empty = new AddonArgs();

    /**
     * Name of the addon for the private cloud
     * 
     */
    @Import(name="addonName")
    private @Nullable Output addonName;

    /**
     * @return Name of the addon for the private cloud
     * 
     */
    public Optional> addonName() {
        return Optional.ofNullable(this.addonName);
    }

    /**
     * The name of the private cloud.
     * 
     */
    @Import(name="privateCloudName", required=true)
    private Output privateCloudName;

    /**
     * @return The name of the private cloud.
     * 
     */
    public Output privateCloudName() {
        return this.privateCloudName;
    }

    /**
     * The properties of an addon resource
     * 
     */
    @Import(name="properties")
    private @Nullable Output properties;

    /**
     * @return The properties of an addon resource
     * 
     */
    public Optional> properties() {
        return Optional.ofNullable(this.properties);
    }

    /**
     * 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;
    }

    private AddonArgs() {}

    private AddonArgs(AddonArgs $) {
        this.addonName = $.addonName;
        this.privateCloudName = $.privateCloudName;
        this.properties = $.properties;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private AddonArgs $;

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

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

        /**
         * @param addonName Name of the addon for the private cloud
         * 
         * @return builder
         * 
         */
        public Builder addonName(@Nullable Output addonName) {
            $.addonName = addonName;
            return this;
        }

        /**
         * @param addonName Name of the addon for the private cloud
         * 
         * @return builder
         * 
         */
        public Builder addonName(String addonName) {
            return addonName(Output.of(addonName));
        }

        /**
         * @param privateCloudName The name of the private cloud.
         * 
         * @return builder
         * 
         */
        public Builder privateCloudName(Output privateCloudName) {
            $.privateCloudName = privateCloudName;
            return this;
        }

        /**
         * @param privateCloudName The name of the private cloud.
         * 
         * @return builder
         * 
         */
        public Builder privateCloudName(String privateCloudName) {
            return privateCloudName(Output.of(privateCloudName));
        }

        /**
         * @param properties The properties of an addon resource
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties The properties of an addon resource
         * 
         * @return builder
         * 
         */
        public Builder properties(Object properties) {
            return properties(Output.of(properties));
        }

        /**
         * @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));
        }

        public AddonArgs build() {
            if ($.privateCloudName == null) {
                throw new MissingRequiredPropertyException("AddonArgs", "privateCloudName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("AddonArgs", "resourceGroupName");
            }
            return $;
        }
    }

}