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

com.pulumi.aws.resourcegroups.inputs.GroupResourceQueryArgs 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.aws.resourcegroups.inputs;

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


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

    public static final GroupResourceQueryArgs Empty = new GroupResourceQueryArgs();

    /**
     * The resource query as a JSON string.
     * 
     */
    @Import(name="query", required=true)
    private Output query;

    /**
     * @return The resource query as a JSON string.
     * 
     */
    public Output query() {
        return this.query;
    }

    /**
     * The type of the resource query. Defaults to `TAG_FILTERS_1_0`.
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return The type of the resource query. Defaults to `TAG_FILTERS_1_0`.
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    private GroupResourceQueryArgs() {}

    private GroupResourceQueryArgs(GroupResourceQueryArgs $) {
        this.query = $.query;
        this.type = $.type;
    }

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

    public static final class Builder {
        private GroupResourceQueryArgs $;

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

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

        /**
         * @param query The resource query as a JSON string.
         * 
         * @return builder
         * 
         */
        public Builder query(Output query) {
            $.query = query;
            return this;
        }

        /**
         * @param query The resource query as a JSON string.
         * 
         * @return builder
         * 
         */
        public Builder query(String query) {
            return query(Output.of(query));
        }

        /**
         * @param type The type of the resource query. Defaults to `TAG_FILTERS_1_0`.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of the resource query. Defaults to `TAG_FILTERS_1_0`.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy