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

com.pulumi.azurenative.operationalinsights.SavedSearchArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.operationalinsights.inputs.TagArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SavedSearchArgs Empty = new SavedSearchArgs();

    /**
     * The category of the saved search. This helps the user to find a saved search faster.
     * 
     */
    @Import(name="category", required=true)
    private Output category;

    /**
     * @return The category of the saved search. This helps the user to find a saved search faster.
     * 
     */
    public Output category() {
        return this.category;
    }

    /**
     * Saved search display name.
     * 
     */
    @Import(name="displayName", required=true)
    private Output displayName;

    /**
     * @return Saved search display name.
     * 
     */
    public Output displayName() {
        return this.displayName;
    }

    /**
     * The function alias if query serves as a function.
     * 
     */
    @Import(name="functionAlias")
    private @Nullable Output functionAlias;

    /**
     * @return The function alias if query serves as a function.
     * 
     */
    public Optional> functionAlias() {
        return Optional.ofNullable(this.functionAlias);
    }

    /**
     * The optional function parameters if query serves as a function. Value should be in the following format: 'param-name1:type1 = default_value1, param-name2:type2 = default_value2'. For more examples and proper syntax please refer to https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions.
     * 
     */
    @Import(name="functionParameters")
    private @Nullable Output functionParameters;

    /**
     * @return The optional function parameters if query serves as a function. Value should be in the following format: 'param-name1:type1 = default_value1, param-name2:type2 = default_value2'. For more examples and proper syntax please refer to https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions.
     * 
     */
    public Optional> functionParameters() {
        return Optional.ofNullable(this.functionParameters);
    }

    /**
     * The query expression for the saved search.
     * 
     */
    @Import(name="query", required=true)
    private Output query;

    /**
     * @return The query expression for the saved search.
     * 
     */
    public Output query() {
        return this.query;
    }

    /**
     * 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 id of the saved search.
     * 
     */
    @Import(name="savedSearchId")
    private @Nullable Output savedSearchId;

    /**
     * @return The id of the saved search.
     * 
     */
    public Optional> savedSearchId() {
        return Optional.ofNullable(this.savedSearchId);
    }

    /**
     * The tags attached to the saved search.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return The tags attached to the saved search.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The version number of the query language. The current version is 2 and is the default.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return The version number of the query language. The current version is 2 and is the default.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    /**
     * The name of the workspace.
     * 
     */
    @Import(name="workspaceName", required=true)
    private Output workspaceName;

    /**
     * @return The name of the workspace.
     * 
     */
    public Output workspaceName() {
        return this.workspaceName;
    }

    private SavedSearchArgs() {}

    private SavedSearchArgs(SavedSearchArgs $) {
        this.category = $.category;
        this.displayName = $.displayName;
        this.functionAlias = $.functionAlias;
        this.functionParameters = $.functionParameters;
        this.query = $.query;
        this.resourceGroupName = $.resourceGroupName;
        this.savedSearchId = $.savedSearchId;
        this.tags = $.tags;
        this.version = $.version;
        this.workspaceName = $.workspaceName;
    }

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

    public static final class Builder {
        private SavedSearchArgs $;

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

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

        /**
         * @param category The category of the saved search. This helps the user to find a saved search faster.
         * 
         * @return builder
         * 
         */
        public Builder category(Output category) {
            $.category = category;
            return this;
        }

        /**
         * @param category The category of the saved search. This helps the user to find a saved search faster.
         * 
         * @return builder
         * 
         */
        public Builder category(String category) {
            return category(Output.of(category));
        }

        /**
         * @param displayName Saved search display name.
         * 
         * @return builder
         * 
         */
        public Builder displayName(Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName Saved search display name.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param functionAlias The function alias if query serves as a function.
         * 
         * @return builder
         * 
         */
        public Builder functionAlias(@Nullable Output functionAlias) {
            $.functionAlias = functionAlias;
            return this;
        }

        /**
         * @param functionAlias The function alias if query serves as a function.
         * 
         * @return builder
         * 
         */
        public Builder functionAlias(String functionAlias) {
            return functionAlias(Output.of(functionAlias));
        }

        /**
         * @param functionParameters The optional function parameters if query serves as a function. Value should be in the following format: 'param-name1:type1 = default_value1, param-name2:type2 = default_value2'. For more examples and proper syntax please refer to https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions.
         * 
         * @return builder
         * 
         */
        public Builder functionParameters(@Nullable Output functionParameters) {
            $.functionParameters = functionParameters;
            return this;
        }

        /**
         * @param functionParameters The optional function parameters if query serves as a function. Value should be in the following format: 'param-name1:type1 = default_value1, param-name2:type2 = default_value2'. For more examples and proper syntax please refer to https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions.
         * 
         * @return builder
         * 
         */
        public Builder functionParameters(String functionParameters) {
            return functionParameters(Output.of(functionParameters));
        }

        /**
         * @param query The query expression for the saved search.
         * 
         * @return builder
         * 
         */
        public Builder query(Output query) {
            $.query = query;
            return this;
        }

        /**
         * @param query The query expression for the saved search.
         * 
         * @return builder
         * 
         */
        public Builder query(String query) {
            return query(Output.of(query));
        }

        /**
         * @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 savedSearchId The id of the saved search.
         * 
         * @return builder
         * 
         */
        public Builder savedSearchId(@Nullable Output savedSearchId) {
            $.savedSearchId = savedSearchId;
            return this;
        }

        /**
         * @param savedSearchId The id of the saved search.
         * 
         * @return builder
         * 
         */
        public Builder savedSearchId(String savedSearchId) {
            return savedSearchId(Output.of(savedSearchId));
        }

        /**
         * @param tags The tags attached to the saved search.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags The tags attached to the saved search.
         * 
         * @return builder
         * 
         */
        public Builder tags(List tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param tags The tags attached to the saved search.
         * 
         * @return builder
         * 
         */
        public Builder tags(TagArgs... tags) {
            return tags(List.of(tags));
        }

        /**
         * @param version The version number of the query language. The current version is 2 and is the default.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version The version number of the query language. The current version is 2 and is the default.
         * 
         * @return builder
         * 
         */
        public Builder version(Double version) {
            return version(Output.of(version));
        }

        /**
         * @param workspaceName The name of the workspace.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(Output workspaceName) {
            $.workspaceName = workspaceName;
            return this;
        }

        /**
         * @param workspaceName The name of the workspace.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(String workspaceName) {
            return workspaceName(Output.of(workspaceName));
        }

        public SavedSearchArgs build() {
            if ($.category == null) {
                throw new MissingRequiredPropertyException("SavedSearchArgs", "category");
            }
            if ($.displayName == null) {
                throw new MissingRequiredPropertyException("SavedSearchArgs", "displayName");
            }
            if ($.query == null) {
                throw new MissingRequiredPropertyException("SavedSearchArgs", "query");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("SavedSearchArgs", "resourceGroupName");
            }
            if ($.workspaceName == null) {
                throw new MissingRequiredPropertyException("SavedSearchArgs", "workspaceName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy