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

com.pulumi.azurenative.resourcegraph.GraphQueryArgs 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.resourcegraph;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final GraphQueryArgs Empty = new GraphQueryArgs();

    /**
     * The description of a graph query.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description of a graph query.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * KQL query that will be graph.
     * 
     */
    @Import(name="query", required=true)
    private Output query;

    /**
     * @return KQL query that will be graph.
     * 
     */
    public Output query() {
        return this.query;
    }

    /**
     * The name of the resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The name of the Graph Query resource.
     * 
     */
    @Import(name="resourceName")
    private @Nullable Output resourceName;

    /**
     * @return The name of the Graph Query resource.
     * 
     */
    public Optional> resourceName() {
        return Optional.ofNullable(this.resourceName);
    }

    /**
     * Resource tags
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private GraphQueryArgs() {}

    private GraphQueryArgs(GraphQueryArgs $) {
        this.description = $.description;
        this.query = $.query;
        this.resourceGroupName = $.resourceGroupName;
        this.resourceName = $.resourceName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private GraphQueryArgs $;

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

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

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

        /**
         * @param description The description of a graph query.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param query KQL query that will be graph.
         * 
         * @return builder
         * 
         */
        public Builder query(Output query) {
            $.query = query;
            return this;
        }

        /**
         * @param query KQL query that will be graph.
         * 
         * @return builder
         * 
         */
        public Builder query(String query) {
            return query(Output.of(query));
        }

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

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

        /**
         * @param resourceName The name of the Graph Query resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceName(@Nullable Output resourceName) {
            $.resourceName = resourceName;
            return this;
        }

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

        /**
         * @param tags Resource tags
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy