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

com.pulumi.azurenative.automation.PackageArgs 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.azurenative.automation.inputs.TrackedResourceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final PackageArgs Empty = new PackageArgs();

    /**
     * The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
     * 
     */
    @Import(name="allOf")
    private @Nullable Output allOf;

    /**
     * @return The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
     * 
     */
    public Optional> allOf() {
        return Optional.ofNullable(this.allOf);
    }

    /**
     * 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 package content link.
     * 
     */
    @Import(name="contentLink", required=true)
    private Output contentLink;

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

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

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

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

    /**
     * The name of the Runtime Environment.
     * 
     */
    @Import(name="runtimeEnvironmentName", required=true)
    private Output runtimeEnvironmentName;

    /**
     * @return The name of the Runtime Environment.
     * 
     */
    public Output runtimeEnvironmentName() {
        return this.runtimeEnvironmentName;
    }

    private PackageArgs() {}

    private PackageArgs(PackageArgs $) {
        this.allOf = $.allOf;
        this.automationAccountName = $.automationAccountName;
        this.contentLink = $.contentLink;
        this.packageName = $.packageName;
        this.resourceGroupName = $.resourceGroupName;
        this.runtimeEnvironmentName = $.runtimeEnvironmentName;
    }

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

    public static final class Builder {
        private PackageArgs $;

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

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

        /**
         * @param allOf The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
         * 
         * @return builder
         * 
         */
        public Builder allOf(@Nullable Output allOf) {
            $.allOf = allOf;
            return this;
        }

        /**
         * @param allOf The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
         * 
         * @return builder
         * 
         */
        public Builder allOf(TrackedResourceArgs allOf) {
            return allOf(Output.of(allOf));
        }

        /**
         * @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 package content link.
         * 
         * @return builder
         * 
         */
        public Builder contentLink(Output contentLink) {
            $.contentLink = contentLink;
            return this;
        }

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

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

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

        /**
         * @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 runtimeEnvironmentName The name of the Runtime Environment.
         * 
         * @return builder
         * 
         */
        public Builder runtimeEnvironmentName(Output runtimeEnvironmentName) {
            $.runtimeEnvironmentName = runtimeEnvironmentName;
            return this;
        }

        /**
         * @param runtimeEnvironmentName The name of the Runtime Environment.
         * 
         * @return builder
         * 
         */
        public Builder runtimeEnvironmentName(String runtimeEnvironmentName) {
            return runtimeEnvironmentName(Output.of(runtimeEnvironmentName));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy