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

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

import com.pulumi.azurenative.databoxedge.inputs.PeriodicTimerSourceInfoArgs;
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 PeriodicTimerEventTriggerArgs extends com.pulumi.resources.ResourceArgs {

    public static final PeriodicTimerEventTriggerArgs Empty = new PeriodicTimerEventTriggerArgs();

    /**
     * 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 'PeriodicTimerEvent'.
     * 
     */
    @Import(name="kind", required=true)
    private Output kind;

    /**
     * @return Trigger Kind.
     * Expected value is 'PeriodicTimerEvent'.
     * 
     */
    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 information.
     * 
     */
    @Import(name="sinkInfo", required=true)
    private Output sinkInfo;

    /**
     * @return Role Sink information.
     * 
     */
    public Output sinkInfo() {
        return this.sinkInfo;
    }

    /**
     * Periodic timer details.
     * 
     */
    @Import(name="sourceInfo", required=true)
    private Output sourceInfo;

    /**
     * @return Periodic timer details.
     * 
     */
    public Output sourceInfo() {
        return this.sourceInfo;
    }

    private PeriodicTimerEventTriggerArgs() {}

    private PeriodicTimerEventTriggerArgs(PeriodicTimerEventTriggerArgs $) {
        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(PeriodicTimerEventTriggerArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private PeriodicTimerEventTriggerArgs $;

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

        public Builder(PeriodicTimerEventTriggerArgs defaults) {
            $ = new PeriodicTimerEventTriggerArgs(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 'PeriodicTimerEvent'.
         * 
         * @return builder
         * 
         */
        public Builder kind(Output kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind Trigger Kind.
         * Expected value is 'PeriodicTimerEvent'.
         * 
         * @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 information.
         * 
         * @return builder
         * 
         */
        public Builder sinkInfo(Output sinkInfo) {
            $.sinkInfo = sinkInfo;
            return this;
        }

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

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

        /**
         * @param sourceInfo Periodic timer details.
         * 
         * @return builder
         * 
         */
        public Builder sourceInfo(PeriodicTimerSourceInfoArgs sourceInfo) {
            return sourceInfo(Output.of(sourceInfo));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy