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

com.pulumi.azurenative.automation.PowerShell72ModuleArgs 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 PowerShell72ModuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final PowerShell72ModuleArgs Empty = new PowerShell72ModuleArgs();

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

    /**
     * Sets the hash.
     * 
     */
    @Import(name="contentLink", required=true)
    private Output contentLink;

    /**
     * @return Sets the hash.
     * 
     */
    public Output contentLink() {
        return this.contentLink;
    }

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

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

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

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

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

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

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

    private PowerShell72ModuleArgs() {}

    private PowerShell72ModuleArgs(PowerShell72ModuleArgs $) {
        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(PowerShell72ModuleArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private PowerShell72ModuleArgs $;

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

        public Builder(PowerShell72ModuleArgs defaults) {
            $ = new PowerShell72ModuleArgs(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 Sets the hash.
         * 
         * @return builder
         * 
         */
        public Builder contentLink(Output contentLink) {
            $.contentLink = contentLink;
            return this;
        }

        /**
         * @param contentLink Sets the hash.
         * 
         * @return builder
         * 
         */
        public Builder contentLink(ContentLinkArgs contentLink) {
            return contentLink(Output.of(contentLink));
        }

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

        /**
         * @param location 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 Sets name of the resource.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

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

        /**
         * @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 tags Sets the tags attached to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy