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

com.pulumi.azure.digitaltwins.TimeSeriesDatabaseConnectionArgs 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.digitaltwins;

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;


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

    public static final TimeSeriesDatabaseConnectionArgs Empty = new TimeSeriesDatabaseConnectionArgs();

    /**
     * The ID of the Digital Twins. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="digitalTwinsId", required=true)
    private Output digitalTwinsId;

    /**
     * @return The ID of the Digital Twins. Changing this forces a new resource to be created.
     * 
     */
    public Output digitalTwinsId() {
        return this.digitalTwinsId;
    }

    /**
     * Name of the Event Hub Consumer Group. Changing this forces a new resource to be created. Defaults to `$Default`.
     * 
     */
    @Import(name="eventhubConsumerGroupName")
    private @Nullable Output eventhubConsumerGroupName;

    /**
     * @return Name of the Event Hub Consumer Group. Changing this forces a new resource to be created. Defaults to `$Default`.
     * 
     */
    public Optional> eventhubConsumerGroupName() {
        return Optional.ofNullable(this.eventhubConsumerGroupName);
    }

    /**
     * Name of the Event Hub. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="eventhubName", required=true)
    private Output eventhubName;

    /**
     * @return Name of the Event Hub. Changing this forces a new resource to be created.
     * 
     */
    public Output eventhubName() {
        return this.eventhubName;
    }

    /**
     * URI of the Event Hub Namespace. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="eventhubNamespaceEndpointUri", required=true)
    private Output eventhubNamespaceEndpointUri;

    /**
     * @return URI of the Event Hub Namespace. Changing this forces a new resource to be created.
     * 
     */
    public Output eventhubNamespaceEndpointUri() {
        return this.eventhubNamespaceEndpointUri;
    }

    /**
     * The ID of the Event Hub Namespace. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="eventhubNamespaceId", required=true)
    private Output eventhubNamespaceId;

    /**
     * @return The ID of the Event Hub Namespace. Changing this forces a new resource to be created.
     * 
     */
    public Output eventhubNamespaceId() {
        return this.eventhubNamespaceId;
    }

    /**
     * The ID of the Kusto Cluster. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="kustoClusterId", required=true)
    private Output kustoClusterId;

    /**
     * @return The ID of the Kusto Cluster. Changing this forces a new resource to be created.
     * 
     */
    public Output kustoClusterId() {
        return this.kustoClusterId;
    }

    /**
     * URI of the Kusto Cluster. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="kustoClusterUri", required=true)
    private Output kustoClusterUri;

    /**
     * @return URI of the Kusto Cluster. Changing this forces a new resource to be created.
     * 
     */
    public Output kustoClusterUri() {
        return this.kustoClusterUri;
    }

    /**
     * Name of the Kusto Database. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="kustoDatabaseName", required=true)
    private Output kustoDatabaseName;

    /**
     * @return Name of the Kusto Database. Changing this forces a new resource to be created.
     * 
     */
    public Output kustoDatabaseName() {
        return this.kustoDatabaseName;
    }

    /**
     * Name of the Kusto Table. Defaults to `AdtPropertyEvents`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="kustoTableName")
    private @Nullable Output kustoTableName;

    /**
     * @return Name of the Kusto Table. Defaults to `AdtPropertyEvents`. Changing this forces a new resource to be created.
     * 
     */
    public Optional> kustoTableName() {
        return Optional.ofNullable(this.kustoTableName);
    }

    /**
     * The name which should be used for this Digital Twins Time Series Database Connection. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name which should be used for this Digital Twins Time Series Database Connection. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    private TimeSeriesDatabaseConnectionArgs() {}

    private TimeSeriesDatabaseConnectionArgs(TimeSeriesDatabaseConnectionArgs $) {
        this.digitalTwinsId = $.digitalTwinsId;
        this.eventhubConsumerGroupName = $.eventhubConsumerGroupName;
        this.eventhubName = $.eventhubName;
        this.eventhubNamespaceEndpointUri = $.eventhubNamespaceEndpointUri;
        this.eventhubNamespaceId = $.eventhubNamespaceId;
        this.kustoClusterId = $.kustoClusterId;
        this.kustoClusterUri = $.kustoClusterUri;
        this.kustoDatabaseName = $.kustoDatabaseName;
        this.kustoTableName = $.kustoTableName;
        this.name = $.name;
    }

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

    public static final class Builder {
        private TimeSeriesDatabaseConnectionArgs $;

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

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

        /**
         * @param digitalTwinsId The ID of the Digital Twins. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder digitalTwinsId(Output digitalTwinsId) {
            $.digitalTwinsId = digitalTwinsId;
            return this;
        }

        /**
         * @param digitalTwinsId The ID of the Digital Twins. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder digitalTwinsId(String digitalTwinsId) {
            return digitalTwinsId(Output.of(digitalTwinsId));
        }

        /**
         * @param eventhubConsumerGroupName Name of the Event Hub Consumer Group. Changing this forces a new resource to be created. Defaults to `$Default`.
         * 
         * @return builder
         * 
         */
        public Builder eventhubConsumerGroupName(@Nullable Output eventhubConsumerGroupName) {
            $.eventhubConsumerGroupName = eventhubConsumerGroupName;
            return this;
        }

        /**
         * @param eventhubConsumerGroupName Name of the Event Hub Consumer Group. Changing this forces a new resource to be created. Defaults to `$Default`.
         * 
         * @return builder
         * 
         */
        public Builder eventhubConsumerGroupName(String eventhubConsumerGroupName) {
            return eventhubConsumerGroupName(Output.of(eventhubConsumerGroupName));
        }

        /**
         * @param eventhubName Name of the Event Hub. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder eventhubName(Output eventhubName) {
            $.eventhubName = eventhubName;
            return this;
        }

        /**
         * @param eventhubName Name of the Event Hub. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder eventhubName(String eventhubName) {
            return eventhubName(Output.of(eventhubName));
        }

        /**
         * @param eventhubNamespaceEndpointUri URI of the Event Hub Namespace. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder eventhubNamespaceEndpointUri(Output eventhubNamespaceEndpointUri) {
            $.eventhubNamespaceEndpointUri = eventhubNamespaceEndpointUri;
            return this;
        }

        /**
         * @param eventhubNamespaceEndpointUri URI of the Event Hub Namespace. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder eventhubNamespaceEndpointUri(String eventhubNamespaceEndpointUri) {
            return eventhubNamespaceEndpointUri(Output.of(eventhubNamespaceEndpointUri));
        }

        /**
         * @param eventhubNamespaceId The ID of the Event Hub Namespace. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder eventhubNamespaceId(Output eventhubNamespaceId) {
            $.eventhubNamespaceId = eventhubNamespaceId;
            return this;
        }

        /**
         * @param eventhubNamespaceId The ID of the Event Hub Namespace. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder eventhubNamespaceId(String eventhubNamespaceId) {
            return eventhubNamespaceId(Output.of(eventhubNamespaceId));
        }

        /**
         * @param kustoClusterId The ID of the Kusto Cluster. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder kustoClusterId(Output kustoClusterId) {
            $.kustoClusterId = kustoClusterId;
            return this;
        }

        /**
         * @param kustoClusterId The ID of the Kusto Cluster. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder kustoClusterId(String kustoClusterId) {
            return kustoClusterId(Output.of(kustoClusterId));
        }

        /**
         * @param kustoClusterUri URI of the Kusto Cluster. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder kustoClusterUri(Output kustoClusterUri) {
            $.kustoClusterUri = kustoClusterUri;
            return this;
        }

        /**
         * @param kustoClusterUri URI of the Kusto Cluster. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder kustoClusterUri(String kustoClusterUri) {
            return kustoClusterUri(Output.of(kustoClusterUri));
        }

        /**
         * @param kustoDatabaseName Name of the Kusto Database. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder kustoDatabaseName(Output kustoDatabaseName) {
            $.kustoDatabaseName = kustoDatabaseName;
            return this;
        }

        /**
         * @param kustoDatabaseName Name of the Kusto Database. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder kustoDatabaseName(String kustoDatabaseName) {
            return kustoDatabaseName(Output.of(kustoDatabaseName));
        }

        /**
         * @param kustoTableName Name of the Kusto Table. Defaults to `AdtPropertyEvents`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder kustoTableName(@Nullable Output kustoTableName) {
            $.kustoTableName = kustoTableName;
            return this;
        }

        /**
         * @param kustoTableName Name of the Kusto Table. Defaults to `AdtPropertyEvents`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder kustoTableName(String kustoTableName) {
            return kustoTableName(Output.of(kustoTableName));
        }

        /**
         * @param name The name which should be used for this Digital Twins Time Series Database Connection. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this Digital Twins Time Series Database Connection. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        public TimeSeriesDatabaseConnectionArgs build() {
            if ($.digitalTwinsId == null) {
                throw new MissingRequiredPropertyException("TimeSeriesDatabaseConnectionArgs", "digitalTwinsId");
            }
            if ($.eventhubName == null) {
                throw new MissingRequiredPropertyException("TimeSeriesDatabaseConnectionArgs", "eventhubName");
            }
            if ($.eventhubNamespaceEndpointUri == null) {
                throw new MissingRequiredPropertyException("TimeSeriesDatabaseConnectionArgs", "eventhubNamespaceEndpointUri");
            }
            if ($.eventhubNamespaceId == null) {
                throw new MissingRequiredPropertyException("TimeSeriesDatabaseConnectionArgs", "eventhubNamespaceId");
            }
            if ($.kustoClusterId == null) {
                throw new MissingRequiredPropertyException("TimeSeriesDatabaseConnectionArgs", "kustoClusterId");
            }
            if ($.kustoClusterUri == null) {
                throw new MissingRequiredPropertyException("TimeSeriesDatabaseConnectionArgs", "kustoClusterUri");
            }
            if ($.kustoDatabaseName == null) {
                throw new MissingRequiredPropertyException("TimeSeriesDatabaseConnectionArgs", "kustoDatabaseName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy