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

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

// *** 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.ItemScope;
import com.pulumi.azurenative.insights.enums.ItemType;
import com.pulumi.azurenative.insights.inputs.ApplicationInsightsComponentAnalyticsItemPropertiesArgs;
import com.pulumi.core.Either;
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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AnalyticsItemArgs Empty = new AnalyticsItemArgs();

    /**
     * The content of this item
     * 
     */
    @Import(name="content")
    private @Nullable Output content;

    /**
     * @return The content of this item
     * 
     */
    public Optional> content() {
        return Optional.ofNullable(this.content);
    }

    /**
     * Internally assigned unique id of the item definition.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return Internally assigned unique id of the item definition.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

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

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

    /**
     * Flag indicating whether or not to force save an item. This allows overriding an item if it already exists.
     * 
     */
    @Import(name="overrideItem")
    private @Nullable Output overrideItem;

    /**
     * @return Flag indicating whether or not to force save an item. This allows overriding an item if it already exists.
     * 
     */
    public Optional> overrideItem() {
        return Optional.ofNullable(this.overrideItem);
    }

    /**
     * A set of properties that can be defined in the context of a specific item type. Each type may have its own properties.
     * 
     */
    @Import(name="properties")
    private @Nullable Output properties;

    /**
     * @return A set of properties that can be defined in the context of a specific item type. Each type may have its own properties.
     * 
     */
    public Optional> properties() {
        return Optional.ofNullable(this.properties);
    }

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

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

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

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

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

    /**
     * Enum indicating the type of the Analytics item.
     * 
     */
    @Import(name="type")
    private @Nullable Output> type;

    /**
     * @return Enum indicating the type of the Analytics item.
     * 
     */
    public Optional>> type() {
        return Optional.ofNullable(this.type);
    }

    private AnalyticsItemArgs() {}

    private AnalyticsItemArgs(AnalyticsItemArgs $) {
        this.content = $.content;
        this.id = $.id;
        this.name = $.name;
        this.overrideItem = $.overrideItem;
        this.properties = $.properties;
        this.resourceGroupName = $.resourceGroupName;
        this.resourceName = $.resourceName;
        this.scope = $.scope;
        this.scopePath = $.scopePath;
        this.type = $.type;
    }

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

    public static final class Builder {
        private AnalyticsItemArgs $;

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

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

        /**
         * @param content The content of this item
         * 
         * @return builder
         * 
         */
        public Builder content(@Nullable Output content) {
            $.content = content;
            return this;
        }

        /**
         * @param content The content of this item
         * 
         * @return builder
         * 
         */
        public Builder content(String content) {
            return content(Output.of(content));
        }

        /**
         * @param id Internally assigned unique id of the item definition.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id Internally assigned unique id of the item definition.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

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

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

        /**
         * @param overrideItem Flag indicating whether or not to force save an item. This allows overriding an item if it already exists.
         * 
         * @return builder
         * 
         */
        public Builder overrideItem(@Nullable Output overrideItem) {
            $.overrideItem = overrideItem;
            return this;
        }

        /**
         * @param overrideItem Flag indicating whether or not to force save an item. This allows overriding an item if it already exists.
         * 
         * @return builder
         * 
         */
        public Builder overrideItem(Boolean overrideItem) {
            return overrideItem(Output.of(overrideItem));
        }

        /**
         * @param properties A set of properties that can be defined in the context of a specific item type. Each type may have its own properties.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties A set of properties that can be defined in the context of a specific item type. Each type may have its own properties.
         * 
         * @return builder
         * 
         */
        public Builder properties(ApplicationInsightsComponentAnalyticsItemPropertiesArgs properties) {
            return properties(Output.of(properties));
        }

        /**
         * @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 scope Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component.
         * 
         * @return builder
         * 
         */
        public Builder scope(@Nullable Output> scope) {
            $.scope = scope;
            return this;
        }

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

        /**
         * @param scope Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component.
         * 
         * @return builder
         * 
         */
        public Builder scope(String scope) {
            return scope(Either.ofLeft(scope));
        }

        /**
         * @param scope Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component.
         * 
         * @return builder
         * 
         */
        public Builder scope(ItemScope scope) {
            return scope(Either.ofRight(scope));
        }

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

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

        /**
         * @param type Enum indicating the type of the Analytics item.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Enum indicating the type of the Analytics item.
         * 
         * @return builder
         * 
         */
        public Builder type(Either type) {
            return type(Output.of(type));
        }

        /**
         * @param type Enum indicating the type of the Analytics item.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Either.ofLeft(type));
        }

        /**
         * @param type Enum indicating the type of the Analytics item.
         * 
         * @return builder
         * 
         */
        public Builder type(ItemType type) {
            return type(Either.ofRight(type));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy