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

com.pulumi.azure.appinsights.inputs.WorkbookTemplateState 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.appinsights.inputs;

import com.pulumi.azure.appinsights.inputs.WorkbookTemplateGalleryArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
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 WorkbookTemplateState extends com.pulumi.resources.ResourceArgs {

    public static final WorkbookTemplateState Empty = new WorkbookTemplateState();

    /**
     * Information about the author of the workbook template.
     * 
     */
    @Import(name="author")
    private @Nullable Output author;

    /**
     * @return Information about the author of the workbook template.
     * 
     */
    public Optional> author() {
        return Optional.ofNullable(this.author);
    }

    /**
     * A `galleries` block as defined below.
     * 
     */
    @Import(name="galleries")
    private @Nullable Output> galleries;

    /**
     * @return A `galleries` block as defined below.
     * 
     */
    public Optional>> galleries() {
        return Optional.ofNullable(this.galleries);
    }

    /**
     * Key value pairs of localized gallery. Each key is the locale code of languages supported by the Azure portal.
     * 
     */
    @Import(name="localized")
    private @Nullable Output localized;

    /**
     * @return Key value pairs of localized gallery. Each key is the locale code of languages supported by the Azure portal.
     * 
     */
    public Optional> localized() {
        return Optional.ofNullable(this.localized);
    }

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

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

    /**
     * Specifies the name which should be used for this Application Insights Workbook Template. Changing this forces a new Application Insights Workbook Template to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

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

    /**
     * Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode. Defaults to `0`.
     * 
     */
    @Import(name="priority")
    private @Nullable Output priority;

    /**
     * @return Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode. Defaults to `0`.
     * 
     */
    public Optional> priority() {
        return Optional.ofNullable(this.priority);
    }

    /**
     * Specifies the name of the Resource Group where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created.
     * 
     */
    @Import(name="resourceGroupName")
    private @Nullable Output resourceGroupName;

    /**
     * @return Specifies the name of the Resource Group where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created.
     * 
     */
    public Optional> resourceGroupName() {
        return Optional.ofNullable(this.resourceGroupName);
    }

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

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

    /**
     * Valid JSON object containing workbook template payload.
     * 
     */
    @Import(name="templateData")
    private @Nullable Output templateData;

    /**
     * @return Valid JSON object containing workbook template payload.
     * 
     */
    public Optional> templateData() {
        return Optional.ofNullable(this.templateData);
    }

    private WorkbookTemplateState() {}

    private WorkbookTemplateState(WorkbookTemplateState $) {
        this.author = $.author;
        this.galleries = $.galleries;
        this.localized = $.localized;
        this.location = $.location;
        this.name = $.name;
        this.priority = $.priority;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.templateData = $.templateData;
    }

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

    public static final class Builder {
        private WorkbookTemplateState $;

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

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

        /**
         * @param author Information about the author of the workbook template.
         * 
         * @return builder
         * 
         */
        public Builder author(@Nullable Output author) {
            $.author = author;
            return this;
        }

        /**
         * @param author Information about the author of the workbook template.
         * 
         * @return builder
         * 
         */
        public Builder author(String author) {
            return author(Output.of(author));
        }

        /**
         * @param galleries A `galleries` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder galleries(@Nullable Output> galleries) {
            $.galleries = galleries;
            return this;
        }

        /**
         * @param galleries A `galleries` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder galleries(List galleries) {
            return galleries(Output.of(galleries));
        }

        /**
         * @param galleries A `galleries` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder galleries(WorkbookTemplateGalleryArgs... galleries) {
            return galleries(List.of(galleries));
        }

        /**
         * @param localized Key value pairs of localized gallery. Each key is the locale code of languages supported by the Azure portal.
         * 
         * @return builder
         * 
         */
        public Builder localized(@Nullable Output localized) {
            $.localized = localized;
            return this;
        }

        /**
         * @param localized Key value pairs of localized gallery. Each key is the locale code of languages supported by the Azure portal.
         * 
         * @return builder
         * 
         */
        public Builder localized(String localized) {
            return localized(Output.of(localized));
        }

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

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

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

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

        /**
         * @param priority Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode. Defaults to `0`.
         * 
         * @return builder
         * 
         */
        public Builder priority(@Nullable Output priority) {
            $.priority = priority;
            return this;
        }

        /**
         * @param priority Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode. Defaults to `0`.
         * 
         * @return builder
         * 
         */
        public Builder priority(Integer priority) {
            return priority(Output.of(priority));
        }

        /**
         * @param resourceGroupName Specifies the name of the Resource Group where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(@Nullable Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Specifies the name of the Resource Group where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param tags A mapping of tags which should be assigned to the Application Insights Workbook 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 Application Insights Workbook Template.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param templateData Valid JSON object containing workbook template payload.
         * 
         * @return builder
         * 
         */
        public Builder templateData(@Nullable Output templateData) {
            $.templateData = templateData;
            return this;
        }

        /**
         * @param templateData Valid JSON object containing workbook template payload.
         * 
         * @return builder
         * 
         */
        public Builder templateData(String templateData) {
            return templateData(Output.of(templateData));
        }

        public WorkbookTemplateState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy