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

com.pulumi.azurenative.chaos.inputs.QuerySelectorArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.chaos.inputs;

import com.pulumi.azurenative.chaos.inputs.SimpleFilterArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Model that represents a query selector.
 * 
 */
public final class QuerySelectorArgs extends com.pulumi.resources.ResourceArgs {

    public static final QuerySelectorArgs Empty = new QuerySelectorArgs();

    /**
     * Model that represents available filter types that can be applied to a targets list.
     * 
     */
    @Import(name="filter")
    private @Nullable Output filter;

    /**
     * @return Model that represents available filter types that can be applied to a targets list.
     * 
     */
    public Optional> filter() {
        return Optional.ofNullable(this.filter);
    }

    /**
     * String of the selector ID.
     * 
     */
    @Import(name="id", required=true)
    private Output id;

    /**
     * @return String of the selector ID.
     * 
     */
    public Output id() {
        return this.id;
    }

    /**
     * Azure Resource Graph (ARG) Query Language query for target resources.
     * 
     */
    @Import(name="queryString", required=true)
    private Output queryString;

    /**
     * @return Azure Resource Graph (ARG) Query Language query for target resources.
     * 
     */
    public Output queryString() {
        return this.queryString;
    }

    /**
     * Subscription id list to scope resource query.
     * 
     */
    @Import(name="subscriptionIds", required=true)
    private Output> subscriptionIds;

    /**
     * @return Subscription id list to scope resource query.
     * 
     */
    public Output> subscriptionIds() {
        return this.subscriptionIds;
    }

    /**
     * Enum of the selector type.
     * Expected value is 'Query'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Enum of the selector type.
     * Expected value is 'Query'.
     * 
     */
    public Output type() {
        return this.type;
    }

    private QuerySelectorArgs() {}

    private QuerySelectorArgs(QuerySelectorArgs $) {
        this.filter = $.filter;
        this.id = $.id;
        this.queryString = $.queryString;
        this.subscriptionIds = $.subscriptionIds;
        this.type = $.type;
    }

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

    public static final class Builder {
        private QuerySelectorArgs $;

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

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

        /**
         * @param filter Model that represents available filter types that can be applied to a targets list.
         * 
         * @return builder
         * 
         */
        public Builder filter(@Nullable Output filter) {
            $.filter = filter;
            return this;
        }

        /**
         * @param filter Model that represents available filter types that can be applied to a targets list.
         * 
         * @return builder
         * 
         */
        public Builder filter(SimpleFilterArgs filter) {
            return filter(Output.of(filter));
        }

        /**
         * @param id String of the selector ID.
         * 
         * @return builder
         * 
         */
        public Builder id(Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id String of the selector ID.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param queryString Azure Resource Graph (ARG) Query Language query for target resources.
         * 
         * @return builder
         * 
         */
        public Builder queryString(Output queryString) {
            $.queryString = queryString;
            return this;
        }

        /**
         * @param queryString Azure Resource Graph (ARG) Query Language query for target resources.
         * 
         * @return builder
         * 
         */
        public Builder queryString(String queryString) {
            return queryString(Output.of(queryString));
        }

        /**
         * @param subscriptionIds Subscription id list to scope resource query.
         * 
         * @return builder
         * 
         */
        public Builder subscriptionIds(Output> subscriptionIds) {
            $.subscriptionIds = subscriptionIds;
            return this;
        }

        /**
         * @param subscriptionIds Subscription id list to scope resource query.
         * 
         * @return builder
         * 
         */
        public Builder subscriptionIds(List subscriptionIds) {
            return subscriptionIds(Output.of(subscriptionIds));
        }

        /**
         * @param subscriptionIds Subscription id list to scope resource query.
         * 
         * @return builder
         * 
         */
        public Builder subscriptionIds(String... subscriptionIds) {
            return subscriptionIds(List.of(subscriptionIds));
        }

        /**
         * @param type Enum of the selector type.
         * Expected value is 'Query'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Enum of the selector type.
         * Expected value is 'Query'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public QuerySelectorArgs build() {
            if ($.id == null) {
                throw new MissingRequiredPropertyException("QuerySelectorArgs", "id");
            }
            if ($.queryString == null) {
                throw new MissingRequiredPropertyException("QuerySelectorArgs", "queryString");
            }
            if ($.subscriptionIds == null) {
                throw new MissingRequiredPropertyException("QuerySelectorArgs", "subscriptionIds");
            }
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy