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

com.pulumi.azure.management.GroupTemplateDeploymentArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.management;

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 GroupTemplateDeploymentArgs extends com.pulumi.resources.ResourceArgs {

    public static final GroupTemplateDeploymentArgs Empty = new GroupTemplateDeploymentArgs();

    /**
     * The Debug Level which should be used for this Resource Group Template Deployment. Possible values are `none`, `requestContent`, `responseContent` and `requestContent, responseContent`.
     * 
     */
    @Import(name="debugLevel")
    private @Nullable Output debugLevel;

    /**
     * @return The Debug Level which should be used for this Resource Group Template Deployment. Possible values are `none`, `requestContent`, `responseContent` and `requestContent, responseContent`.
     * 
     */
    public Optional> debugLevel() {
        return Optional.ofNullable(this.debugLevel);
    }

    /**
     * The Azure Region where the Template should exist. Changing this forces a new Template to be created.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The Azure Region where the Template should exist. Changing this forces a new Template to be created.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The ID of the Management Group to apply the Deployment Template to. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="managementGroupId", required=true)
    private Output managementGroupId;

    /**
     * @return The ID of the Management Group to apply the Deployment Template to. Changing this forces a new resource to be created.
     * 
     */
    public Output managementGroupId() {
        return this.managementGroupId;
    }

    /**
     * The name which should be used for this Template Deployment. Changing this forces a new Template Deployment to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name which should be used for this Template Deployment. Changing this forces a new Template Deployment to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The contents of the ARM Template parameters file - containing a JSON list of parameters.
     * 
     */
    @Import(name="parametersContent")
    private @Nullable Output parametersContent;

    /**
     * @return The contents of the ARM Template parameters file - containing a JSON list of parameters.
     * 
     */
    public Optional> parametersContent() {
        return Optional.ofNullable(this.parametersContent);
    }

    /**
     * A mapping of tags which should be assigned to the Template.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags which should be assigned to the Template.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The contents of the ARM Template which should be deployed into this Resource Group. Cannot be specified with `template_spec_version_id`.
     * 
     */
    @Import(name="templateContent")
    private @Nullable Output templateContent;

    /**
     * @return The contents of the ARM Template which should be deployed into this Resource Group. Cannot be specified with `template_spec_version_id`.
     * 
     */
    public Optional> templateContent() {
        return Optional.ofNullable(this.templateContent);
    }

    /**
     * The ID of the Template Spec Version to deploy. Cannot be specified with `template_content`.
     * 
     */
    @Import(name="templateSpecVersionId")
    private @Nullable Output templateSpecVersionId;

    /**
     * @return The ID of the Template Spec Version to deploy. Cannot be specified with `template_content`.
     * 
     */
    public Optional> templateSpecVersionId() {
        return Optional.ofNullable(this.templateSpecVersionId);
    }

    private GroupTemplateDeploymentArgs() {}

    private GroupTemplateDeploymentArgs(GroupTemplateDeploymentArgs $) {
        this.debugLevel = $.debugLevel;
        this.location = $.location;
        this.managementGroupId = $.managementGroupId;
        this.name = $.name;
        this.parametersContent = $.parametersContent;
        this.tags = $.tags;
        this.templateContent = $.templateContent;
        this.templateSpecVersionId = $.templateSpecVersionId;
    }

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

    public static final class Builder {
        private GroupTemplateDeploymentArgs $;

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

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

        /**
         * @param debugLevel The Debug Level which should be used for this Resource Group Template Deployment. Possible values are `none`, `requestContent`, `responseContent` and `requestContent, responseContent`.
         * 
         * @return builder
         * 
         */
        public Builder debugLevel(@Nullable Output debugLevel) {
            $.debugLevel = debugLevel;
            return this;
        }

        /**
         * @param debugLevel The Debug Level which should be used for this Resource Group Template Deployment. Possible values are `none`, `requestContent`, `responseContent` and `requestContent, responseContent`.
         * 
         * @return builder
         * 
         */
        public Builder debugLevel(String debugLevel) {
            return debugLevel(Output.of(debugLevel));
        }

        /**
         * @param location The Azure Region where the Template should exist. Changing this forces a new Template to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The Azure Region where the Template should exist. Changing this forces a new Template to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param managementGroupId The ID of the Management Group to apply the Deployment Template to. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder managementGroupId(Output managementGroupId) {
            $.managementGroupId = managementGroupId;
            return this;
        }

        /**
         * @param managementGroupId The ID of the Management Group to apply the Deployment Template to. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder managementGroupId(String managementGroupId) {
            return managementGroupId(Output.of(managementGroupId));
        }

        /**
         * @param name The name which should be used for this Template Deployment. Changing this forces a new Template Deployment to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this Template Deployment. Changing this forces a new Template Deployment to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param parametersContent The contents of the ARM Template parameters file - containing a JSON list of parameters.
         * 
         * @return builder
         * 
         */
        public Builder parametersContent(@Nullable Output parametersContent) {
            $.parametersContent = parametersContent;
            return this;
        }

        /**
         * @param parametersContent The contents of the ARM Template parameters file - containing a JSON list of parameters.
         * 
         * @return builder
         * 
         */
        public Builder parametersContent(String parametersContent) {
            return parametersContent(Output.of(parametersContent));
        }

        /**
         * @param tags A mapping of tags which should be assigned to the Template.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags which should be assigned to the Template.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param templateContent The contents of the ARM Template which should be deployed into this Resource Group. Cannot be specified with `template_spec_version_id`.
         * 
         * @return builder
         * 
         */
        public Builder templateContent(@Nullable Output templateContent) {
            $.templateContent = templateContent;
            return this;
        }

        /**
         * @param templateContent The contents of the ARM Template which should be deployed into this Resource Group. Cannot be specified with `template_spec_version_id`.
         * 
         * @return builder
         * 
         */
        public Builder templateContent(String templateContent) {
            return templateContent(Output.of(templateContent));
        }

        /**
         * @param templateSpecVersionId The ID of the Template Spec Version to deploy. Cannot be specified with `template_content`.
         * 
         * @return builder
         * 
         */
        public Builder templateSpecVersionId(@Nullable Output templateSpecVersionId) {
            $.templateSpecVersionId = templateSpecVersionId;
            return this;
        }

        /**
         * @param templateSpecVersionId The ID of the Template Spec Version to deploy. Cannot be specified with `template_content`.
         * 
         * @return builder
         * 
         */
        public Builder templateSpecVersionId(String templateSpecVersionId) {
            return templateSpecVersionId(Output.of(templateSpecVersionId));
        }

        public GroupTemplateDeploymentArgs build() {
            if ($.managementGroupId == null) {
                throw new MissingRequiredPropertyException("GroupTemplateDeploymentArgs", "managementGroupId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy