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

com.pulumi.azurenative.resources.TemplateSpecVersionArgs 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.resources;

import com.pulumi.azurenative.resources.inputs.LinkedTemplateArtifactArgs;
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.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final TemplateSpecVersionArgs Empty = new TemplateSpecVersionArgs();

    /**
     * Template Spec version description.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Template Spec version description.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * An array of linked template artifacts.
     * 
     */
    @Import(name="linkedTemplates")
    private @Nullable Output> linkedTemplates;

    /**
     * @return An array of linked template artifacts.
     * 
     */
    public Optional>> linkedTemplates() {
        return Optional.ofNullable(this.linkedTemplates);
    }

    /**
     * The location of the Template Spec Version. It must match the location of the parent Template Spec.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The location of the Template Spec Version. It must match the location of the parent Template Spec.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The main Azure Resource Manager template content.
     * 
     */
    @Import(name="mainTemplate")
    private @Nullable Output mainTemplate;

    /**
     * @return The main Azure Resource Manager template content.
     * 
     */
    public Optional> mainTemplate() {
        return Optional.ofNullable(this.mainTemplate);
    }

    /**
     * The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
     * 
     */
    @Import(name="metadata")
    private @Nullable Output metadata;

    /**
     * @return The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
     * 
     */
    public Optional> metadata() {
        return Optional.ofNullable(this.metadata);
    }

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

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * Name of the Template Spec.
     * 
     */
    @Import(name="templateSpecName", required=true)
    private Output templateSpecName;

    /**
     * @return Name of the Template Spec.
     * 
     */
    public Output templateSpecName() {
        return this.templateSpecName;
    }

    /**
     * The version of the Template Spec.
     * 
     */
    @Import(name="templateSpecVersion")
    private @Nullable Output templateSpecVersion;

    /**
     * @return The version of the Template Spec.
     * 
     */
    public Optional> templateSpecVersion() {
        return Optional.ofNullable(this.templateSpecVersion);
    }

    /**
     * The Azure Resource Manager template UI definition content.
     * 
     */
    @Import(name="uiFormDefinition")
    private @Nullable Output uiFormDefinition;

    /**
     * @return The Azure Resource Manager template UI definition content.
     * 
     */
    public Optional> uiFormDefinition() {
        return Optional.ofNullable(this.uiFormDefinition);
    }

    private TemplateSpecVersionArgs() {}

    private TemplateSpecVersionArgs(TemplateSpecVersionArgs $) {
        this.description = $.description;
        this.linkedTemplates = $.linkedTemplates;
        this.location = $.location;
        this.mainTemplate = $.mainTemplate;
        this.metadata = $.metadata;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.templateSpecName = $.templateSpecName;
        this.templateSpecVersion = $.templateSpecVersion;
        this.uiFormDefinition = $.uiFormDefinition;
    }

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

    public static final class Builder {
        private TemplateSpecVersionArgs $;

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

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

        /**
         * @param description Template Spec version description.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Template Spec version description.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param linkedTemplates An array of linked template artifacts.
         * 
         * @return builder
         * 
         */
        public Builder linkedTemplates(@Nullable Output> linkedTemplates) {
            $.linkedTemplates = linkedTemplates;
            return this;
        }

        /**
         * @param linkedTemplates An array of linked template artifacts.
         * 
         * @return builder
         * 
         */
        public Builder linkedTemplates(List linkedTemplates) {
            return linkedTemplates(Output.of(linkedTemplates));
        }

        /**
         * @param linkedTemplates An array of linked template artifacts.
         * 
         * @return builder
         * 
         */
        public Builder linkedTemplates(LinkedTemplateArtifactArgs... linkedTemplates) {
            return linkedTemplates(List.of(linkedTemplates));
        }

        /**
         * @param location The location of the Template Spec Version. It must match the location of the parent Template Spec.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The location of the Template Spec Version. It must match the location of the parent Template Spec.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param mainTemplate The main Azure Resource Manager template content.
         * 
         * @return builder
         * 
         */
        public Builder mainTemplate(@Nullable Output mainTemplate) {
            $.mainTemplate = mainTemplate;
            return this;
        }

        /**
         * @param mainTemplate The main Azure Resource Manager template content.
         * 
         * @return builder
         * 
         */
        public Builder mainTemplate(Object mainTemplate) {
            return mainTemplate(Output.of(mainTemplate));
        }

        /**
         * @param metadata The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
         * 
         * @return builder
         * 
         */
        public Builder metadata(@Nullable Output metadata) {
            $.metadata = metadata;
            return this;
        }

        /**
         * @param metadata The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs.
         * 
         * @return builder
         * 
         */
        public Builder metadata(Object metadata) {
            return metadata(Output.of(metadata));
        }

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

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param templateSpecName Name of the Template Spec.
         * 
         * @return builder
         * 
         */
        public Builder templateSpecName(Output templateSpecName) {
            $.templateSpecName = templateSpecName;
            return this;
        }

        /**
         * @param templateSpecName Name of the Template Spec.
         * 
         * @return builder
         * 
         */
        public Builder templateSpecName(String templateSpecName) {
            return templateSpecName(Output.of(templateSpecName));
        }

        /**
         * @param templateSpecVersion The version of the Template Spec.
         * 
         * @return builder
         * 
         */
        public Builder templateSpecVersion(@Nullable Output templateSpecVersion) {
            $.templateSpecVersion = templateSpecVersion;
            return this;
        }

        /**
         * @param templateSpecVersion The version of the Template Spec.
         * 
         * @return builder
         * 
         */
        public Builder templateSpecVersion(String templateSpecVersion) {
            return templateSpecVersion(Output.of(templateSpecVersion));
        }

        /**
         * @param uiFormDefinition The Azure Resource Manager template UI definition content.
         * 
         * @return builder
         * 
         */
        public Builder uiFormDefinition(@Nullable Output uiFormDefinition) {
            $.uiFormDefinition = uiFormDefinition;
            return this;
        }

        /**
         * @param uiFormDefinition The Azure Resource Manager template UI definition content.
         * 
         * @return builder
         * 
         */
        public Builder uiFormDefinition(Object uiFormDefinition) {
            return uiFormDefinition(Output.of(uiFormDefinition));
        }

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

}