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

com.pulumi.azurenative.databoxedge.FileEventTriggerArgs 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.databoxedge;

import com.pulumi.azurenative.databoxedge.inputs.FileSourceInfoArgs;
import com.pulumi.azurenative.databoxedge.inputs.RoleSinkInfoArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final FileEventTriggerArgs Empty = new FileEventTriggerArgs();

    /**
     * A custom context tag typically used to correlate the trigger against its usage. For example, if a periodic timer trigger is intended for certain specific IoT modules in the device, the tag can be the name or the image URL of the module.
     * 
     */
    @Import(name="customContextTag")
    private @Nullable Output customContextTag;

    /**
     * @return A custom context tag typically used to correlate the trigger against its usage. For example, if a periodic timer trigger is intended for certain specific IoT modules in the device, the tag can be the name or the image URL of the module.
     * 
     */
    public Optional> customContextTag() {
        return Optional.ofNullable(this.customContextTag);
    }

    /**
     * Creates or updates a trigger
     * 
     */
    @Import(name="deviceName", required=true)
    private Output deviceName;

    /**
     * @return Creates or updates a trigger
     * 
     */
    public Output deviceName() {
        return this.deviceName;
    }

    /**
     * Trigger Kind.
     * Expected value is 'FileEvent'.
     * 
     */
    @Import(name="kind", required=true)
    private Output kind;

    /**
     * @return Trigger Kind.
     * Expected value is 'FileEvent'.
     * 
     */
    public Output kind() {
        return this.kind;
    }

    /**
     * The trigger name.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The trigger name.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The resource group name.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The resource group name.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Role sink info.
     * 
     */
    @Import(name="sinkInfo", required=true)
    private Output sinkInfo;

    /**
     * @return Role sink info.
     * 
     */
    public Output sinkInfo() {
        return this.sinkInfo;
    }

    /**
     * File event source details.
     * 
     */
    @Import(name="sourceInfo", required=true)
    private Output sourceInfo;

    /**
     * @return File event source details.
     * 
     */
    public Output sourceInfo() {
        return this.sourceInfo;
    }

    private FileEventTriggerArgs() {}

    private FileEventTriggerArgs(FileEventTriggerArgs $) {
        this.customContextTag = $.customContextTag;
        this.deviceName = $.deviceName;
        this.kind = $.kind;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.sinkInfo = $.sinkInfo;
        this.sourceInfo = $.sourceInfo;
    }

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

    public static final class Builder {
        private FileEventTriggerArgs $;

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

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

        /**
         * @param customContextTag A custom context tag typically used to correlate the trigger against its usage. For example, if a periodic timer trigger is intended for certain specific IoT modules in the device, the tag can be the name or the image URL of the module.
         * 
         * @return builder
         * 
         */
        public Builder customContextTag(@Nullable Output customContextTag) {
            $.customContextTag = customContextTag;
            return this;
        }

        /**
         * @param customContextTag A custom context tag typically used to correlate the trigger against its usage. For example, if a periodic timer trigger is intended for certain specific IoT modules in the device, the tag can be the name or the image URL of the module.
         * 
         * @return builder
         * 
         */
        public Builder customContextTag(String customContextTag) {
            return customContextTag(Output.of(customContextTag));
        }

        /**
         * @param deviceName Creates or updates a trigger
         * 
         * @return builder
         * 
         */
        public Builder deviceName(Output deviceName) {
            $.deviceName = deviceName;
            return this;
        }

        /**
         * @param deviceName Creates or updates a trigger
         * 
         * @return builder
         * 
         */
        public Builder deviceName(String deviceName) {
            return deviceName(Output.of(deviceName));
        }

        /**
         * @param kind Trigger Kind.
         * Expected value is 'FileEvent'.
         * 
         * @return builder
         * 
         */
        public Builder kind(Output kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind Trigger Kind.
         * Expected value is 'FileEvent'.
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Output.of(kind));
        }

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

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

        /**
         * @param resourceGroupName The resource group name.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The resource group name.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param sinkInfo Role sink info.
         * 
         * @return builder
         * 
         */
        public Builder sinkInfo(Output sinkInfo) {
            $.sinkInfo = sinkInfo;
            return this;
        }

        /**
         * @param sinkInfo Role sink info.
         * 
         * @return builder
         * 
         */
        public Builder sinkInfo(RoleSinkInfoArgs sinkInfo) {
            return sinkInfo(Output.of(sinkInfo));
        }

        /**
         * @param sourceInfo File event source details.
         * 
         * @return builder
         * 
         */
        public Builder sourceInfo(Output sourceInfo) {
            $.sourceInfo = sourceInfo;
            return this;
        }

        /**
         * @param sourceInfo File event source details.
         * 
         * @return builder
         * 
         */
        public Builder sourceInfo(FileSourceInfoArgs sourceInfo) {
            return sourceInfo(Output.of(sourceInfo));
        }

        public FileEventTriggerArgs build() {
            if ($.deviceName == null) {
                throw new MissingRequiredPropertyException("FileEventTriggerArgs", "deviceName");
            }
            $.kind = Codegen.stringProp("kind").output().arg($.kind).require();
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("FileEventTriggerArgs", "resourceGroupName");
            }
            if ($.sinkInfo == null) {
                throw new MissingRequiredPropertyException("FileEventTriggerArgs", "sinkInfo");
            }
            if ($.sourceInfo == null) {
                throw new MissingRequiredPropertyException("FileEventTriggerArgs", "sourceInfo");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy