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

com.pulumi.azurenative.blueprint.TemplateArtifactArgs 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.blueprint;

import com.pulumi.azurenative.blueprint.inputs.ParameterValueArgs;
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.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final TemplateArtifactArgs Empty = new TemplateArtifactArgs();

    /**
     * Name of the blueprint artifact.
     * 
     */
    @Import(name="artifactName")
    private @Nullable Output artifactName;

    /**
     * @return Name of the blueprint artifact.
     * 
     */
    public Optional> artifactName() {
        return Optional.ofNullable(this.artifactName);
    }

    /**
     * Name of the blueprint definition.
     * 
     */
    @Import(name="blueprintName", required=true)
    private Output blueprintName;

    /**
     * @return Name of the blueprint definition.
     * 
     */
    public Output blueprintName() {
        return this.blueprintName;
    }

    /**
     * Artifacts which need to be deployed before the specified artifact.
     * 
     */
    @Import(name="dependsOn")
    private @Nullable Output> dependsOn;

    /**
     * @return Artifacts which need to be deployed before the specified artifact.
     * 
     */
    public Optional>> dependsOn() {
        return Optional.ofNullable(this.dependsOn);
    }

    /**
     * Multi-line explain this resource.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Multi-line explain this resource.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * One-liner string explain this resource.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return One-liner string explain this resource.
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * Specifies the kind of blueprint artifact.
     * Expected value is 'template'.
     * 
     */
    @Import(name="kind", required=true)
    private Output kind;

    /**
     * @return Specifies the kind of blueprint artifact.
     * Expected value is 'template'.
     * 
     */
    public Output kind() {
        return this.kind;
    }

    /**
     * Resource Manager template blueprint artifact parameter values.
     * 
     */
    @Import(name="parameters", required=true)
    private Output> parameters;

    /**
     * @return Resource Manager template blueprint artifact parameter values.
     * 
     */
    public Output> parameters() {
        return this.parameters;
    }

    /**
     * If applicable, the name of the resource group placeholder to which the Resource Manager template blueprint artifact will be deployed.
     * 
     */
    @Import(name="resourceGroup")
    private @Nullable Output resourceGroup;

    /**
     * @return If applicable, the name of the resource group placeholder to which the Resource Manager template blueprint artifact will be deployed.
     * 
     */
    public Optional> resourceGroup() {
        return Optional.ofNullable(this.resourceGroup);
    }

    /**
     * The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').
     * 
     */
    @Import(name="resourceScope", required=true)
    private Output resourceScope;

    /**
     * @return The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').
     * 
     */
    public Output resourceScope() {
        return this.resourceScope;
    }

    /**
     * The Resource Manager template blueprint artifact body.
     * 
     */
    @Import(name="template", required=true)
    private Output template;

    /**
     * @return The Resource Manager template blueprint artifact body.
     * 
     */
    public Output template() {
        return this.template;
    }

    private TemplateArtifactArgs() {}

    private TemplateArtifactArgs(TemplateArtifactArgs $) {
        this.artifactName = $.artifactName;
        this.blueprintName = $.blueprintName;
        this.dependsOn = $.dependsOn;
        this.description = $.description;
        this.displayName = $.displayName;
        this.kind = $.kind;
        this.parameters = $.parameters;
        this.resourceGroup = $.resourceGroup;
        this.resourceScope = $.resourceScope;
        this.template = $.template;
    }

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

    public static final class Builder {
        private TemplateArtifactArgs $;

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

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

        /**
         * @param artifactName Name of the blueprint artifact.
         * 
         * @return builder
         * 
         */
        public Builder artifactName(@Nullable Output artifactName) {
            $.artifactName = artifactName;
            return this;
        }

        /**
         * @param artifactName Name of the blueprint artifact.
         * 
         * @return builder
         * 
         */
        public Builder artifactName(String artifactName) {
            return artifactName(Output.of(artifactName));
        }

        /**
         * @param blueprintName Name of the blueprint definition.
         * 
         * @return builder
         * 
         */
        public Builder blueprintName(Output blueprintName) {
            $.blueprintName = blueprintName;
            return this;
        }

        /**
         * @param blueprintName Name of the blueprint definition.
         * 
         * @return builder
         * 
         */
        public Builder blueprintName(String blueprintName) {
            return blueprintName(Output.of(blueprintName));
        }

        /**
         * @param dependsOn Artifacts which need to be deployed before the specified artifact.
         * 
         * @return builder
         * 
         */
        public Builder dependsOn(@Nullable Output> dependsOn) {
            $.dependsOn = dependsOn;
            return this;
        }

        /**
         * @param dependsOn Artifacts which need to be deployed before the specified artifact.
         * 
         * @return builder
         * 
         */
        public Builder dependsOn(List dependsOn) {
            return dependsOn(Output.of(dependsOn));
        }

        /**
         * @param dependsOn Artifacts which need to be deployed before the specified artifact.
         * 
         * @return builder
         * 
         */
        public Builder dependsOn(String... dependsOn) {
            return dependsOn(List.of(dependsOn));
        }

        /**
         * @param description Multi-line explain this resource.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Multi-line explain this resource.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param displayName One-liner string explain this resource.
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName One-liner string explain this resource.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param kind Specifies the kind of blueprint artifact.
         * Expected value is 'template'.
         * 
         * @return builder
         * 
         */
        public Builder kind(Output kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind Specifies the kind of blueprint artifact.
         * Expected value is 'template'.
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Output.of(kind));
        }

        /**
         * @param parameters Resource Manager template blueprint artifact parameter values.
         * 
         * @return builder
         * 
         */
        public Builder parameters(Output> parameters) {
            $.parameters = parameters;
            return this;
        }

        /**
         * @param parameters Resource Manager template blueprint artifact parameter values.
         * 
         * @return builder
         * 
         */
        public Builder parameters(Map parameters) {
            return parameters(Output.of(parameters));
        }

        /**
         * @param resourceGroup If applicable, the name of the resource group placeholder to which the Resource Manager template blueprint artifact will be deployed.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroup(@Nullable Output resourceGroup) {
            $.resourceGroup = resourceGroup;
            return this;
        }

        /**
         * @param resourceGroup If applicable, the name of the resource group placeholder to which the Resource Manager template blueprint artifact will be deployed.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroup(String resourceGroup) {
            return resourceGroup(Output.of(resourceGroup));
        }

        /**
         * @param resourceScope The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').
         * 
         * @return builder
         * 
         */
        public Builder resourceScope(Output resourceScope) {
            $.resourceScope = resourceScope;
            return this;
        }

        /**
         * @param resourceScope The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').
         * 
         * @return builder
         * 
         */
        public Builder resourceScope(String resourceScope) {
            return resourceScope(Output.of(resourceScope));
        }

        /**
         * @param template The Resource Manager template blueprint artifact body.
         * 
         * @return builder
         * 
         */
        public Builder template(Output template) {
            $.template = template;
            return this;
        }

        /**
         * @param template The Resource Manager template blueprint artifact body.
         * 
         * @return builder
         * 
         */
        public Builder template(Object template) {
            return template(Output.of(template));
        }

        public TemplateArtifactArgs build() {
            if ($.blueprintName == null) {
                throw new MissingRequiredPropertyException("TemplateArtifactArgs", "blueprintName");
            }
            $.kind = Codegen.stringProp("kind").output().arg($.kind).require();
            if ($.parameters == null) {
                throw new MissingRequiredPropertyException("TemplateArtifactArgs", "parameters");
            }
            if ($.resourceScope == null) {
                throw new MissingRequiredPropertyException("TemplateArtifactArgs", "resourceScope");
            }
            if ($.template == null) {
                throw new MissingRequiredPropertyException("TemplateArtifactArgs", "template");
            }
            return $;
        }
    }

}