// *** 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.azure.monitoring.inputs;

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


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

    public static final LogzSubAccountTagRuleTagFilterArgs Empty = new LogzSubAccountTagRuleTagFilterArgs();

    /**
     * The action is used to limit logs collection to include or exclude Azure resources with specific tags. Possible values are `Include` and `Exclude`. Note that the `Exclude` takes priority over the `Include`.
     * 
     */
    @Import(name="action", required=true)
    private Output<String> action;

    /**
     * @return The action is used to limit logs collection to include or exclude Azure resources with specific tags. Possible values are `Include` and `Exclude`. Note that the `Exclude` takes priority over the `Include`.
     * 
     */
    public Output<String> action() {
        return this.action;
    }

    /**
     * The name of the tag to match.
     * 
     */
    @Import(name="name", required=true)
    private Output<String> name;

    /**
     * @return The name of the tag to match.
     * 
     */
    public Output<String> name() {
        return this.name;
    }

    /**
     * The value of the tag to match.
     * 
     */
    @Import(name="value")
    private @Nullable Output<String> value;

    /**
     * @return The value of the tag to match.
     * 
     */
    public Optional<Output<String>> value() {
        return Optional.ofNullable(this.value);
    }

    private LogzSubAccountTagRuleTagFilterArgs() {}

    private LogzSubAccountTagRuleTagFilterArgs(LogzSubAccountTagRuleTagFilterArgs $) {
        this.action = $.action;
        this.name = $.name;
        this.value = $.value;
    }

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

    public static final class Builder {
        private LogzSubAccountTagRuleTagFilterArgs $;

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

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

        /**
         * @param action The action is used to limit logs collection to include or exclude Azure resources with specific tags. Possible values are `Include` and `Exclude`. Note that the `Exclude` takes priority over the `Include`.
         * 
         * @return builder
         * 
         */
        public Builder action(Output<String> action) {
            $.action = action;
            return this;
        }

        /**
         * @param action The action is used to limit logs collection to include or exclude Azure resources with specific tags. Possible values are `Include` and `Exclude`. Note that the `Exclude` takes priority over the `Include`.
         * 
         * @return builder
         * 
         */
        public Builder action(String action) {
            return action(Output.of(action));
        }

        /**
         * @param name The name of the tag to match.
         * 
         * @return builder
         * 
         */
        public Builder name(Output<String> name) {
            $.name = name;
            return this;
        }

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

        /**
         * @param value The value of the tag to match.
         * 
         * @return builder
         * 
         */
        public Builder value(@Nullable Output<String> value) {
            $.value = value;
            return this;
        }

        /**
         * @param value The value of the tag to match.
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        public LogzSubAccountTagRuleTagFilterArgs build() {
            $.action = Objects.requireNonNull($.action, "expected parameter 'action' to be non-null");
            $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null");
            return $;
        }
    }

}
