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

com.pulumi.azurenative.deviceregistry.inputs.DiscoveredDataPointArgs 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.azurenative.deviceregistry.inputs;

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 data point properties.
 * 
 */
public final class DiscoveredDataPointArgs extends com.pulumi.resources.ResourceArgs {

    public static final DiscoveredDataPointArgs Empty = new DiscoveredDataPointArgs();

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

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

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

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

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

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

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

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

    private DiscoveredDataPointArgs() {}

    private DiscoveredDataPointArgs(DiscoveredDataPointArgs $) {
        this.dataPointConfiguration = $.dataPointConfiguration;
        this.dataSource = $.dataSource;
        this.lastUpdatedOn = $.lastUpdatedOn;
        this.name = $.name;
    }

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

    public static final class Builder {
        private DiscoveredDataPointArgs $;

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

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

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

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

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

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

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

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

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy