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

com.pulumi.azurenative.app.inputs.DaprSubscriptionRouteRuleArgs 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.app.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;


/**
 * Dapr Pubsub Event Subscription Route Rule is used to specify the condition for sending a message to a specific path.
 * 
 */
public final class DaprSubscriptionRouteRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final DaprSubscriptionRouteRuleArgs Empty = new DaprSubscriptionRouteRuleArgs();

    /**
     * The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
     * 
     */
    @Import(name="match")
    private @Nullable Output match;

    /**
     * @return The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
     * 
     */
    public Optional> match() {
        return Optional.ofNullable(this.match);
    }

    /**
     * The path for events that match this rule
     * 
     */
    @Import(name="path")
    private @Nullable Output path;

    /**
     * @return The path for events that match this rule
     * 
     */
    public Optional> path() {
        return Optional.ofNullable(this.path);
    }

    private DaprSubscriptionRouteRuleArgs() {}

    private DaprSubscriptionRouteRuleArgs(DaprSubscriptionRouteRuleArgs $) {
        this.match = $.match;
        this.path = $.path;
    }

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

    public static final class Builder {
        private DaprSubscriptionRouteRuleArgs $;

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

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

        /**
         * @param match The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
         * 
         * @return builder
         * 
         */
        public Builder match(@Nullable Output match) {
            $.match = match;
            return this;
        }

        /**
         * @param match The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
         * 
         * @return builder
         * 
         */
        public Builder match(String match) {
            return match(Output.of(match));
        }

        /**
         * @param path The path for events that match this rule
         * 
         * @return builder
         * 
         */
        public Builder path(@Nullable Output path) {
            $.path = path;
            return this;
        }

        /**
         * @param path The path for events that match this rule
         * 
         * @return builder
         * 
         */
        public Builder path(String path) {
            return path(Output.of(path));
        }

        public DaprSubscriptionRouteRuleArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy