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

com.pulumi.azurenative.operationalinsights.QueryArgs 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.LogAnalyticsQueryPackQueryPropertiesRelatedArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
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 QueryArgs extends com.pulumi.resources.ResourceArgs {

    public static final QueryArgs Empty = new QueryArgs();

    /**
     * Body of the query.
     * 
     */
    @Import(name="body", required=true)
    private Output body;

    /**
     * @return Body of the query.
     * 
     */
    public Output body() {
        return this.body;
    }

    /**
     * Description of the query.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Description of the query.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Unique display name for your query within the Query Pack.
     * 
     */
    @Import(name="displayName", required=true)
    private Output displayName;

    /**
     * @return Unique display name for your query within the Query Pack.
     * 
     */
    public Output displayName() {
        return this.displayName;
    }

    /**
     * The id of a specific query defined in the Log Analytics QueryPack
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return The id of a specific query defined in the Log Analytics QueryPack
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * Additional properties that can be set for the query.
     * 
     */
    @Import(name="properties")
    private @Nullable Output properties;

    /**
     * @return Additional properties that can be set for the query.
     * 
     */
    public Optional> properties() {
        return Optional.ofNullable(this.properties);
    }

    /**
     * The name of the Log Analytics QueryPack resource.
     * 
     */
    @Import(name="queryPackName", required=true)
    private Output queryPackName;

    /**
     * @return The name of the Log Analytics QueryPack resource.
     * 
     */
    public Output queryPackName() {
        return this.queryPackName;
    }

    /**
     * The related metadata items for the function.
     * 
     */
    @Import(name="related")
    private @Nullable Output related;

    /**
     * @return The related metadata items for the function.
     * 
     */
    public Optional> related() {
        return Optional.ofNullable(this.related);
    }

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

    /**
     * Tags associated with the query.
     * 
     */
    @Import(name="tags")
    private @Nullable Output>> tags;

    /**
     * @return Tags associated with the query.
     * 
     */
    public Optional>>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private QueryArgs() {}

    private QueryArgs(QueryArgs $) {
        this.body = $.body;
        this.description = $.description;
        this.displayName = $.displayName;
        this.id = $.id;
        this.properties = $.properties;
        this.queryPackName = $.queryPackName;
        this.related = $.related;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private QueryArgs $;

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

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

        /**
         * @param body Body of the query.
         * 
         * @return builder
         * 
         */
        public Builder body(Output body) {
            $.body = body;
            return this;
        }

        /**
         * @param body Body of the query.
         * 
         * @return builder
         * 
         */
        public Builder body(String body) {
            return body(Output.of(body));
        }

        /**
         * @param description Description of the query.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Description of the query.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param displayName Unique display name for your query within the Query Pack.
         * 
         * @return builder
         * 
         */
        public Builder displayName(Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName Unique display name for your query within the Query Pack.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param id The id of a specific query defined in the Log Analytics QueryPack
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id The id of a specific query defined in the Log Analytics QueryPack
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param properties Additional properties that can be set for the query.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties Additional properties that can be set for the query.
         * 
         * @return builder
         * 
         */
        public Builder properties(Object properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param queryPackName The name of the Log Analytics QueryPack resource.
         * 
         * @return builder
         * 
         */
        public Builder queryPackName(Output queryPackName) {
            $.queryPackName = queryPackName;
            return this;
        }

        /**
         * @param queryPackName The name of the Log Analytics QueryPack resource.
         * 
         * @return builder
         * 
         */
        public Builder queryPackName(String queryPackName) {
            return queryPackName(Output.of(queryPackName));
        }

        /**
         * @param related The related metadata items for the function.
         * 
         * @return builder
         * 
         */
        public Builder related(@Nullable Output related) {
            $.related = related;
            return this;
        }

        /**
         * @param related The related metadata items for the function.
         * 
         * @return builder
         * 
         */
        public Builder related(LogAnalyticsQueryPackQueryPropertiesRelatedArgs related) {
            return related(Output.of(related));
        }

        /**
         * @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 tags Tags associated with the query.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output>> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Tags associated with the query.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map> tags) {
            return tags(Output.of(tags));
        }

        public QueryArgs build() {
            if ($.body == null) {
                throw new MissingRequiredPropertyException("QueryArgs", "body");
            }
            if ($.displayName == null) {
                throw new MissingRequiredPropertyException("QueryArgs", "displayName");
            }
            if ($.queryPackName == null) {
                throw new MissingRequiredPropertyException("QueryArgs", "queryPackName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("QueryArgs", "resourceGroupName");
            }
            return $;
        }
    }

}