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

com.pulumi.azurenative.automation.ModuleArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.automation.inputs.ContentLinkArgs;
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 ModuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final ModuleArgs Empty = new ModuleArgs();

    /**
     * The name of the automation account.
     * 
     */
    @Import(name="automationAccountName", required=true)
    private Output automationAccountName;

    /**
     * @return The name of the automation account.
     * 
     */
    public Output automationAccountName() {
        return this.automationAccountName;
    }

    /**
     * Gets or sets the module content link.
     * 
     */
    @Import(name="contentLink", required=true)
    private Output contentLink;

    /**
     * @return Gets or sets the module content link.
     * 
     */
    public Output contentLink() {
        return this.contentLink;
    }

    /**
     * Gets or sets the location of the resource.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Gets or sets the location of the resource.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The name of module.
     * 
     */
    @Import(name="moduleName")
    private @Nullable Output moduleName;

    /**
     * @return The name of module.
     * 
     */
    public Optional> moduleName() {
        return Optional.ofNullable(this.moduleName);
    }

    /**
     * Gets or sets name of the resource.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Gets or sets name of the resource.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Name of an Azure Resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of an Azure Resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Gets or sets the tags attached to the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Gets or sets the tags attached to the resource.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private ModuleArgs() {}

    private ModuleArgs(ModuleArgs $) {
        this.automationAccountName = $.automationAccountName;
        this.contentLink = $.contentLink;
        this.location = $.location;
        this.moduleName = $.moduleName;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private ModuleArgs $;

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

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

        /**
         * @param automationAccountName The name of the automation account.
         * 
         * @return builder
         * 
         */
        public Builder automationAccountName(Output automationAccountName) {
            $.automationAccountName = automationAccountName;
            return this;
        }

        /**
         * @param automationAccountName The name of the automation account.
         * 
         * @return builder
         * 
         */
        public Builder automationAccountName(String automationAccountName) {
            return automationAccountName(Output.of(automationAccountName));
        }

        /**
         * @param contentLink Gets or sets the module content link.
         * 
         * @return builder
         * 
         */
        public Builder contentLink(Output contentLink) {
            $.contentLink = contentLink;
            return this;
        }

        /**
         * @param contentLink Gets or sets the module content link.
         * 
         * @return builder
         * 
         */
        public Builder contentLink(ContentLinkArgs contentLink) {
            return contentLink(Output.of(contentLink));
        }

        /**
         * @param location Gets or sets the location of the resource.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Gets or sets the location of the resource.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param moduleName The name of module.
         * 
         * @return builder
         * 
         */
        public Builder moduleName(@Nullable Output moduleName) {
            $.moduleName = moduleName;
            return this;
        }

        /**
         * @param moduleName The name of module.
         * 
         * @return builder
         * 
         */
        public Builder moduleName(String moduleName) {
            return moduleName(Output.of(moduleName));
        }

        /**
         * @param name Gets or sets name of the resource.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Gets or sets name of the resource.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param resourceGroupName Name of an Azure Resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of an Azure Resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param tags Gets or sets the tags attached to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Gets or sets the tags attached to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public ModuleArgs build() {
            if ($.automationAccountName == null) {
                throw new MissingRequiredPropertyException("ModuleArgs", "automationAccountName");
            }
            if ($.contentLink == null) {
                throw new MissingRequiredPropertyException("ModuleArgs", "contentLink");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ModuleArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy