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

com.pulumi.azurenative.deviceregistry.inputs.DiscoveredEventArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.deviceregistry.inputs;

import com.pulumi.azurenative.deviceregistry.inputs.TopicArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Defines the event properties.
 * 
 */
public final class DiscoveredEventArgs extends com.pulumi.resources.ResourceArgs {

    public static final DiscoveredEventArgs Empty = new DiscoveredEventArgs();

    /**
     * Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
     * 
     */
    @Import(name="eventConfiguration")
    private @Nullable Output eventConfiguration;

    /**
     * @return Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
     * 
     */
    public Optional> eventConfiguration() {
        return Optional.ofNullable(this.eventConfiguration);
    }

    /**
     * The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
     * 
     */
    @Import(name="eventNotifier", required=true)
    private Output eventNotifier;

    /**
     * @return The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
     * 
     */
    public Output eventNotifier() {
        return this.eventNotifier;
    }

    /**
     * UTC timestamp indicating when the event was added or modified.
     * 
     */
    @Import(name="lastUpdatedOn")
    private @Nullable Output lastUpdatedOn;

    /**
     * @return UTC timestamp indicating when the event was added or modified.
     * 
     */
    public Optional> lastUpdatedOn() {
        return Optional.ofNullable(this.lastUpdatedOn);
    }

    /**
     * The name of the event.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of the event.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * Object that describes the topic information for the specific event.
     * 
     */
    @Import(name="topic")
    private @Nullable Output topic;

    /**
     * @return Object that describes the topic information for the specific event.
     * 
     */
    public Optional> topic() {
        return Optional.ofNullable(this.topic);
    }

    private DiscoveredEventArgs() {}

    private DiscoveredEventArgs(DiscoveredEventArgs $) {
        this.eventConfiguration = $.eventConfiguration;
        this.eventNotifier = $.eventNotifier;
        this.lastUpdatedOn = $.lastUpdatedOn;
        this.name = $.name;
        this.topic = $.topic;
    }

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

    public static final class Builder {
        private DiscoveredEventArgs $;

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

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

        /**
         * @param eventConfiguration Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
         * 
         * @return builder
         * 
         */
        public Builder eventConfiguration(@Nullable Output eventConfiguration) {
            $.eventConfiguration = eventConfiguration;
            return this;
        }

        /**
         * @param eventConfiguration Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
         * 
         * @return builder
         * 
         */
        public Builder eventConfiguration(String eventConfiguration) {
            return eventConfiguration(Output.of(eventConfiguration));
        }

        /**
         * @param eventNotifier The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
         * 
         * @return builder
         * 
         */
        public Builder eventNotifier(Output eventNotifier) {
            $.eventNotifier = eventNotifier;
            return this;
        }

        /**
         * @param eventNotifier The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
         * 
         * @return builder
         * 
         */
        public Builder eventNotifier(String eventNotifier) {
            return eventNotifier(Output.of(eventNotifier));
        }

        /**
         * @param lastUpdatedOn UTC timestamp indicating when the event was added or modified.
         * 
         * @return builder
         * 
         */
        public Builder lastUpdatedOn(@Nullable Output lastUpdatedOn) {
            $.lastUpdatedOn = lastUpdatedOn;
            return this;
        }

        /**
         * @param lastUpdatedOn UTC timestamp indicating when the event was added or modified.
         * 
         * @return builder
         * 
         */
        public Builder lastUpdatedOn(String lastUpdatedOn) {
            return lastUpdatedOn(Output.of(lastUpdatedOn));
        }

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

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

        /**
         * @param topic Object that describes the topic information for the specific event.
         * 
         * @return builder
         * 
         */
        public Builder topic(@Nullable Output topic) {
            $.topic = topic;
            return this;
        }

        /**
         * @param topic Object that describes the topic information for the specific event.
         * 
         * @return builder
         * 
         */
        public Builder topic(TopicArgs topic) {
            return topic(Output.of(topic));
        }

        public DiscoveredEventArgs build() {
            if ($.eventNotifier == null) {
                throw new MissingRequiredPropertyException("DiscoveredEventArgs", "eventNotifier");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("DiscoveredEventArgs", "name");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy