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

com.pulumi.azurenative.security.inputs.AutomationTriggeringRuleArgs 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.security.inputs;

import com.pulumi.azurenative.security.enums.Operator;
import com.pulumi.azurenative.security.enums.PropertyType;
import com.pulumi.core.Either;
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;


/**
 * A rule which is evaluated upon event interception. The rule is configured by comparing a specific value from the event model to an expected value. This comparison is done by using one of the supported operators set.
 * 
 */
public final class AutomationTriggeringRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final AutomationTriggeringRuleArgs Empty = new AutomationTriggeringRuleArgs();

    /**
     * The expected value.
     * 
     */
    @Import(name="expectedValue")
    private @Nullable Output expectedValue;

    /**
     * @return The expected value.
     * 
     */
    public Optional> expectedValue() {
        return Optional.ofNullable(this.expectedValue);
    }

    /**
     * A valid comparer operator to use. A case-insensitive comparison will be applied for String PropertyType.
     * 
     */
    @Import(name="operator")
    private @Nullable Output> operator;

    /**
     * @return A valid comparer operator to use. A case-insensitive comparison will be applied for String PropertyType.
     * 
     */
    public Optional>> operator() {
        return Optional.ofNullable(this.operator);
    }

    /**
     * The JPath of the entity model property that should be checked.
     * 
     */
    @Import(name="propertyJPath")
    private @Nullable Output propertyJPath;

    /**
     * @return The JPath of the entity model property that should be checked.
     * 
     */
    public Optional> propertyJPath() {
        return Optional.ofNullable(this.propertyJPath);
    }

    /**
     * The data type of the compared operands (string, integer, floating point number or a boolean [true/false]]
     * 
     */
    @Import(name="propertyType")
    private @Nullable Output> propertyType;

    /**
     * @return The data type of the compared operands (string, integer, floating point number or a boolean [true/false]]
     * 
     */
    public Optional>> propertyType() {
        return Optional.ofNullable(this.propertyType);
    }

    private AutomationTriggeringRuleArgs() {}

    private AutomationTriggeringRuleArgs(AutomationTriggeringRuleArgs $) {
        this.expectedValue = $.expectedValue;
        this.operator = $.operator;
        this.propertyJPath = $.propertyJPath;
        this.propertyType = $.propertyType;
    }

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

    public static final class Builder {
        private AutomationTriggeringRuleArgs $;

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

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

        /**
         * @param expectedValue The expected value.
         * 
         * @return builder
         * 
         */
        public Builder expectedValue(@Nullable Output expectedValue) {
            $.expectedValue = expectedValue;
            return this;
        }

        /**
         * @param expectedValue The expected value.
         * 
         * @return builder
         * 
         */
        public Builder expectedValue(String expectedValue) {
            return expectedValue(Output.of(expectedValue));
        }

        /**
         * @param operator A valid comparer operator to use. A case-insensitive comparison will be applied for String PropertyType.
         * 
         * @return builder
         * 
         */
        public Builder operator(@Nullable Output> operator) {
            $.operator = operator;
            return this;
        }

        /**
         * @param operator A valid comparer operator to use. A case-insensitive comparison will be applied for String PropertyType.
         * 
         * @return builder
         * 
         */
        public Builder operator(Either operator) {
            return operator(Output.of(operator));
        }

        /**
         * @param operator A valid comparer operator to use. A case-insensitive comparison will be applied for String PropertyType.
         * 
         * @return builder
         * 
         */
        public Builder operator(String operator) {
            return operator(Either.ofLeft(operator));
        }

        /**
         * @param operator A valid comparer operator to use. A case-insensitive comparison will be applied for String PropertyType.
         * 
         * @return builder
         * 
         */
        public Builder operator(Operator operator) {
            return operator(Either.ofRight(operator));
        }

        /**
         * @param propertyJPath The JPath of the entity model property that should be checked.
         * 
         * @return builder
         * 
         */
        public Builder propertyJPath(@Nullable Output propertyJPath) {
            $.propertyJPath = propertyJPath;
            return this;
        }

        /**
         * @param propertyJPath The JPath of the entity model property that should be checked.
         * 
         * @return builder
         * 
         */
        public Builder propertyJPath(String propertyJPath) {
            return propertyJPath(Output.of(propertyJPath));
        }

        /**
         * @param propertyType The data type of the compared operands (string, integer, floating point number or a boolean [true/false]]
         * 
         * @return builder
         * 
         */
        public Builder propertyType(@Nullable Output> propertyType) {
            $.propertyType = propertyType;
            return this;
        }

        /**
         * @param propertyType The data type of the compared operands (string, integer, floating point number or a boolean [true/false]]
         * 
         * @return builder
         * 
         */
        public Builder propertyType(Either propertyType) {
            return propertyType(Output.of(propertyType));
        }

        /**
         * @param propertyType The data type of the compared operands (string, integer, floating point number or a boolean [true/false]]
         * 
         * @return builder
         * 
         */
        public Builder propertyType(String propertyType) {
            return propertyType(Either.ofLeft(propertyType));
        }

        /**
         * @param propertyType The data type of the compared operands (string, integer, floating point number or a boolean [true/false]]
         * 
         * @return builder
         * 
         */
        public Builder propertyType(PropertyType propertyType) {
            return propertyType(Either.ofRight(propertyType));
        }

        public AutomationTriggeringRuleArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy