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

com.pulumi.azure.iot.inputs.IoTHubFallbackRouteArgs 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.azure.iot.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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 IoTHubFallbackRouteArgs extends com.pulumi.resources.ResourceArgs {

    public static final IoTHubFallbackRouteArgs Empty = new IoTHubFallbackRouteArgs();

    /**
     * The condition that is evaluated to apply the routing rule. Defaults to `true`. For grammar, see: <https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language>.
     * 
     */
    @Import(name="condition")
    private @Nullable Output condition;

    /**
     * @return The condition that is evaluated to apply the routing rule. Defaults to `true`. For grammar, see: <https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language>.
     * 
     */
    public Optional> condition() {
        return Optional.ofNullable(this.condition);
    }

    /**
     * Used to specify whether the fallback route is enabled. Defaults to `true`.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Used to specify whether the fallback route is enabled. Defaults to `true`.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * The endpoints to which messages that satisfy the condition are routed. Currently only 1 endpoint is allowed.
     * 
     */
    @Import(name="endpointNames")
    private @Nullable Output> endpointNames;

    /**
     * @return The endpoints to which messages that satisfy the condition are routed. Currently only 1 endpoint is allowed.
     * 
     */
    public Optional>> endpointNames() {
        return Optional.ofNullable(this.endpointNames);
    }

    /**
     * The source that the routing rule is to be applied to, such as `DeviceMessages`. Possible values include: `Invalid`, `DeviceMessages`, `TwinChangeEvents`, `DeviceLifecycleEvents`, `DeviceConnectionStateEvents`, `DeviceJobLifecycleEvents` and `DigitalTwinChangeEvents`. Defaults to `DeviceMessages`.
     * 
     */
    @Import(name="source")
    private @Nullable Output source;

    /**
     * @return The source that the routing rule is to be applied to, such as `DeviceMessages`. Possible values include: `Invalid`, `DeviceMessages`, `TwinChangeEvents`, `DeviceLifecycleEvents`, `DeviceConnectionStateEvents`, `DeviceJobLifecycleEvents` and `DigitalTwinChangeEvents`. Defaults to `DeviceMessages`.
     * 
     */
    public Optional> source() {
        return Optional.ofNullable(this.source);
    }

    private IoTHubFallbackRouteArgs() {}

    private IoTHubFallbackRouteArgs(IoTHubFallbackRouteArgs $) {
        this.condition = $.condition;
        this.enabled = $.enabled;
        this.endpointNames = $.endpointNames;
        this.source = $.source;
    }

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

    public static final class Builder {
        private IoTHubFallbackRouteArgs $;

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

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

        /**
         * @param condition The condition that is evaluated to apply the routing rule. Defaults to `true`. For grammar, see: <https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language>.
         * 
         * @return builder
         * 
         */
        public Builder condition(@Nullable Output condition) {
            $.condition = condition;
            return this;
        }

        /**
         * @param condition The condition that is evaluated to apply the routing rule. Defaults to `true`. For grammar, see: <https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language>.
         * 
         * @return builder
         * 
         */
        public Builder condition(String condition) {
            return condition(Output.of(condition));
        }

        /**
         * @param enabled Used to specify whether the fallback route is enabled. Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Used to specify whether the fallback route is enabled. Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param endpointNames The endpoints to which messages that satisfy the condition are routed. Currently only 1 endpoint is allowed.
         * 
         * @return builder
         * 
         */
        public Builder endpointNames(@Nullable Output> endpointNames) {
            $.endpointNames = endpointNames;
            return this;
        }

        /**
         * @param endpointNames The endpoints to which messages that satisfy the condition are routed. Currently only 1 endpoint is allowed.
         * 
         * @return builder
         * 
         */
        public Builder endpointNames(List endpointNames) {
            return endpointNames(Output.of(endpointNames));
        }

        /**
         * @param endpointNames The endpoints to which messages that satisfy the condition are routed. Currently only 1 endpoint is allowed.
         * 
         * @return builder
         * 
         */
        public Builder endpointNames(String... endpointNames) {
            return endpointNames(List.of(endpointNames));
        }

        /**
         * @param source The source that the routing rule is to be applied to, such as `DeviceMessages`. Possible values include: `Invalid`, `DeviceMessages`, `TwinChangeEvents`, `DeviceLifecycleEvents`, `DeviceConnectionStateEvents`, `DeviceJobLifecycleEvents` and `DigitalTwinChangeEvents`. Defaults to `DeviceMessages`.
         * 
         * @return builder
         * 
         */
        public Builder source(@Nullable Output source) {
            $.source = source;
            return this;
        }

        /**
         * @param source The source that the routing rule is to be applied to, such as `DeviceMessages`. Possible values include: `Invalid`, `DeviceMessages`, `TwinChangeEvents`, `DeviceLifecycleEvents`, `DeviceConnectionStateEvents`, `DeviceJobLifecycleEvents` and `DigitalTwinChangeEvents`. Defaults to `DeviceMessages`.
         * 
         * @return builder
         * 
         */
        public Builder source(String source) {
            return source(Output.of(source));
        }

        public IoTHubFallbackRouteArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy