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

com.pulumi.azurenative.insights.FavoriteArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.insights;

import com.pulumi.azurenative.insights.enums.FavoriteType;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final FavoriteArgs Empty = new FavoriteArgs();

    /**
     * Favorite category, as defined by the user at creation time.
     * 
     */
    @Import(name="category")
    private @Nullable Output category;

    /**
     * @return Favorite category, as defined by the user at creation time.
     * 
     */
    public Optional> category() {
        return Optional.ofNullable(this.category);
    }

    /**
     * Configuration of this particular favorite, which are driven by the Azure portal UX. Configuration data is a string containing valid JSON
     * 
     */
    @Import(name="config")
    private @Nullable Output config;

    /**
     * @return Configuration of this particular favorite, which are driven by the Azure portal UX. Configuration data is a string containing valid JSON
     * 
     */
    public Optional> config() {
        return Optional.ofNullable(this.config);
    }

    /**
     * The Id of a specific favorite defined in the Application Insights component
     * 
     */
    @Import(name="favoriteId")
    private @Nullable Output favoriteId;

    /**
     * @return The Id of a specific favorite defined in the Application Insights component
     * 
     */
    public Optional> favoriteId() {
        return Optional.ofNullable(this.favoriteId);
    }

    /**
     * Enum indicating if this favorite definition is owned by a specific user or is shared between all users with access to the Application Insights component.
     * 
     */
    @Import(name="favoriteType")
    private @Nullable Output favoriteType;

    /**
     * @return Enum indicating if this favorite definition is owned by a specific user or is shared between all users with access to the Application Insights component.
     * 
     */
    public Optional> favoriteType() {
        return Optional.ofNullable(this.favoriteType);
    }

    /**
     * Flag denoting wether or not this favorite was generated from a template.
     * 
     */
    @Import(name="isGeneratedFromTemplate")
    private @Nullable Output isGeneratedFromTemplate;

    /**
     * @return Flag denoting wether or not this favorite was generated from a template.
     * 
     */
    public Optional> isGeneratedFromTemplate() {
        return Optional.ofNullable(this.isGeneratedFromTemplate);
    }

    /**
     * The user-defined name of the favorite.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The user-defined name of the favorite.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

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

    /**
     * The name of the Application Insights component resource.
     * 
     */
    @Import(name="resourceName", required=true)
    private Output resourceName;

    /**
     * @return The name of the Application Insights component resource.
     * 
     */
    public Output resourceName() {
        return this.resourceName;
    }

    /**
     * The source of the favorite definition.
     * 
     */
    @Import(name="sourceType")
    private @Nullable Output sourceType;

    /**
     * @return The source of the favorite definition.
     * 
     */
    public Optional> sourceType() {
        return Optional.ofNullable(this.sourceType);
    }

    /**
     * A list of 0 or more tags that are associated with this favorite definition
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A list of 0 or more tags that are associated with this favorite definition
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * This instance's version of the data model. This can change as new features are added that can be marked favorite. Current examples include MetricsExplorer (ME) and Search.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return This instance's version of the data model. This can change as new features are added that can be marked favorite. Current examples include MetricsExplorer (ME) and Search.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private FavoriteArgs() {}

    private FavoriteArgs(FavoriteArgs $) {
        this.category = $.category;
        this.config = $.config;
        this.favoriteId = $.favoriteId;
        this.favoriteType = $.favoriteType;
        this.isGeneratedFromTemplate = $.isGeneratedFromTemplate;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.resourceName = $.resourceName;
        this.sourceType = $.sourceType;
        this.tags = $.tags;
        this.version = $.version;
    }

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

    public static final class Builder {
        private FavoriteArgs $;

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

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

        /**
         * @param category Favorite category, as defined by the user at creation time.
         * 
         * @return builder
         * 
         */
        public Builder category(@Nullable Output category) {
            $.category = category;
            return this;
        }

        /**
         * @param category Favorite category, as defined by the user at creation time.
         * 
         * @return builder
         * 
         */
        public Builder category(String category) {
            return category(Output.of(category));
        }

        /**
         * @param config Configuration of this particular favorite, which are driven by the Azure portal UX. Configuration data is a string containing valid JSON
         * 
         * @return builder
         * 
         */
        public Builder config(@Nullable Output config) {
            $.config = config;
            return this;
        }

        /**
         * @param config Configuration of this particular favorite, which are driven by the Azure portal UX. Configuration data is a string containing valid JSON
         * 
         * @return builder
         * 
         */
        public Builder config(String config) {
            return config(Output.of(config));
        }

        /**
         * @param favoriteId The Id of a specific favorite defined in the Application Insights component
         * 
         * @return builder
         * 
         */
        public Builder favoriteId(@Nullable Output favoriteId) {
            $.favoriteId = favoriteId;
            return this;
        }

        /**
         * @param favoriteId The Id of a specific favorite defined in the Application Insights component
         * 
         * @return builder
         * 
         */
        public Builder favoriteId(String favoriteId) {
            return favoriteId(Output.of(favoriteId));
        }

        /**
         * @param favoriteType Enum indicating if this favorite definition is owned by a specific user or is shared between all users with access to the Application Insights component.
         * 
         * @return builder
         * 
         */
        public Builder favoriteType(@Nullable Output favoriteType) {
            $.favoriteType = favoriteType;
            return this;
        }

        /**
         * @param favoriteType Enum indicating if this favorite definition is owned by a specific user or is shared between all users with access to the Application Insights component.
         * 
         * @return builder
         * 
         */
        public Builder favoriteType(FavoriteType favoriteType) {
            return favoriteType(Output.of(favoriteType));
        }

        /**
         * @param isGeneratedFromTemplate Flag denoting wether or not this favorite was generated from a template.
         * 
         * @return builder
         * 
         */
        public Builder isGeneratedFromTemplate(@Nullable Output isGeneratedFromTemplate) {
            $.isGeneratedFromTemplate = isGeneratedFromTemplate;
            return this;
        }

        /**
         * @param isGeneratedFromTemplate Flag denoting wether or not this favorite was generated from a template.
         * 
         * @return builder
         * 
         */
        public Builder isGeneratedFromTemplate(Boolean isGeneratedFromTemplate) {
            return isGeneratedFromTemplate(Output.of(isGeneratedFromTemplate));
        }

        /**
         * @param name The user-defined name of the favorite.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The user-defined name of the favorite.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @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 resourceName The name of the Application Insights component resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceName(Output resourceName) {
            $.resourceName = resourceName;
            return this;
        }

        /**
         * @param resourceName The name of the Application Insights component resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceName(String resourceName) {
            return resourceName(Output.of(resourceName));
        }

        /**
         * @param sourceType The source of the favorite definition.
         * 
         * @return builder
         * 
         */
        public Builder sourceType(@Nullable Output sourceType) {
            $.sourceType = sourceType;
            return this;
        }

        /**
         * @param sourceType The source of the favorite definition.
         * 
         * @return builder
         * 
         */
        public Builder sourceType(String sourceType) {
            return sourceType(Output.of(sourceType));
        }

        /**
         * @param tags A list of 0 or more tags that are associated with this favorite definition
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A list of 0 or more tags that are associated with this favorite definition
         * 
         * @return builder
         * 
         */
        public Builder tags(List tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param tags A list of 0 or more tags that are associated with this favorite definition
         * 
         * @return builder
         * 
         */
        public Builder tags(String... tags) {
            return tags(List.of(tags));
        }

        /**
         * @param version This instance's version of the data model. This can change as new features are added that can be marked favorite. Current examples include MetricsExplorer (ME) and Search.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version This instance's version of the data model. This can change as new features are added that can be marked favorite. Current examples include MetricsExplorer (ME) and Search.
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy