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

com.pulumi.aws.chimesdkmediapipelines.inputs.MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleKeywordMatchConfigurationArgs 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.chimesdkmediapipelines.inputs;

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


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

    public static final MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleKeywordMatchConfigurationArgs Empty = new MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleKeywordMatchConfigurationArgs();

    /**
     * Collection of keywords to match.
     * 
     */
    @Import(name="keywords", required=true)
    private Output> keywords;

    /**
     * @return Collection of keywords to match.
     * 
     */
    public Output> keywords() {
        return this.keywords;
    }

    /**
     * Negate the rule.
     * 
     */
    @Import(name="negate")
    private @Nullable Output negate;

    /**
     * @return Negate the rule.
     * 
     */
    public Optional> negate() {
        return Optional.ofNullable(this.negate);
    }

    /**
     * Rule name.
     * 
     */
    @Import(name="ruleName", required=true)
    private Output ruleName;

    /**
     * @return Rule name.
     * 
     */
    public Output ruleName() {
        return this.ruleName;
    }

    private MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleKeywordMatchConfigurationArgs() {}

    private MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleKeywordMatchConfigurationArgs(MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleKeywordMatchConfigurationArgs $) {
        this.keywords = $.keywords;
        this.negate = $.negate;
        this.ruleName = $.ruleName;
    }

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

    public static final class Builder {
        private MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleKeywordMatchConfigurationArgs $;

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

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

        /**
         * @param keywords Collection of keywords to match.
         * 
         * @return builder
         * 
         */
        public Builder keywords(Output> keywords) {
            $.keywords = keywords;
            return this;
        }

        /**
         * @param keywords Collection of keywords to match.
         * 
         * @return builder
         * 
         */
        public Builder keywords(List keywords) {
            return keywords(Output.of(keywords));
        }

        /**
         * @param keywords Collection of keywords to match.
         * 
         * @return builder
         * 
         */
        public Builder keywords(String... keywords) {
            return keywords(List.of(keywords));
        }

        /**
         * @param negate Negate the rule.
         * 
         * @return builder
         * 
         */
        public Builder negate(@Nullable Output negate) {
            $.negate = negate;
            return this;
        }

        /**
         * @param negate Negate the rule.
         * 
         * @return builder
         * 
         */
        public Builder negate(Boolean negate) {
            return negate(Output.of(negate));
        }

        /**
         * @param ruleName Rule name.
         * 
         * @return builder
         * 
         */
        public Builder ruleName(Output ruleName) {
            $.ruleName = ruleName;
            return this;
        }

        /**
         * @param ruleName Rule name.
         * 
         * @return builder
         * 
         */
        public Builder ruleName(String ruleName) {
            return ruleName(Output.of(ruleName));
        }

        public MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleKeywordMatchConfigurationArgs build() {
            if ($.keywords == null) {
                throw new MissingRequiredPropertyException("MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleKeywordMatchConfigurationArgs", "keywords");
            }
            if ($.ruleName == null) {
                throw new MissingRequiredPropertyException("MediaInsightsPipelineConfigurationRealTimeAlertConfigurationRuleKeywordMatchConfigurationArgs", "ruleName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy