// *** 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.iot.inputs;

import com.pulumi.azure.iot.inputs.TimeSeriesInsightsGen2EnvironmentStorageArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final TimeSeriesInsightsGen2EnvironmentState Empty = new TimeSeriesInsightsGen2EnvironmentState();

    /**
     * The FQDN used to access the environment data.
     * 
     */
    @Import(name="dataAccessFqdn")
    private @Nullable Output<String> dataAccessFqdn;

    /**
     * @return The FQDN used to access the environment data.
     * 
     */
    public Optional<Output<String>> dataAccessFqdn() {
        return Optional.ofNullable(this.dataAccessFqdn);
    }

    /**
     * A list of property ids for the Azure IoT Time Series Insights Gen2 Environment. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="idProperties")
    private @Nullable Output<List<String>> idProperties;

    /**
     * @return A list of property ids for the Azure IoT Time Series Insights Gen2 Environment. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<List<String>>> idProperties() {
        return Optional.ofNullable(this.idProperties);
    }

    /**
     * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="location")
    private @Nullable Output<String> location;

    /**
     * @return Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<String>> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Specifies the name of the Azure IoT Time Series Insights Gen2 Environment. Changing this forces a new resource to be created. Must be globally unique.
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return Specifies the name of the Azure IoT Time Series Insights Gen2 Environment. Changing this forces a new resource to be created. Must be globally unique.
     * 
     */
    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The name of the resource group in which to create the Azure IoT Time Series Insights Gen2 Environment. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName")
    private @Nullable Output<String> resourceGroupName;

    /**
     * @return The name of the resource group in which to create the Azure IoT Time Series Insights Gen2 Environment. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<String>> resourceGroupName() {
        return Optional.ofNullable(this.resourceGroupName);
    }

    /**
     * Specifies the SKU Name for this IoT Time Series Insights Gen2 Environment. Currently it supports only `L1`. For gen2, capacity cannot be specified. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="skuName")
    private @Nullable Output<String> skuName;

    /**
     * @return Specifies the SKU Name for this IoT Time Series Insights Gen2 Environment. Currently it supports only `L1`. For gen2, capacity cannot be specified. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<String>> skuName() {
        return Optional.ofNullable(this.skuName);
    }

    /**
     * A `storage` block as defined below.
     * 
     */
    @Import(name="storage")
    private @Nullable Output<TimeSeriesInsightsGen2EnvironmentStorageArgs> storage;

    /**
     * @return A `storage` block as defined below.
     * 
     */
    public Optional<Output<TimeSeriesInsightsGen2EnvironmentStorageArgs>> storage() {
        return Optional.ofNullable(this.storage);
    }

    /**
     * A mapping of tags to assign to the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output<Map<String,String>> tags;

    /**
     * @return A mapping of tags to assign to the resource.
     * 
     */
    public Optional<Output<Map<String,String>>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * Specifies the ISO8601 timespan specifying the minimum number of days the environment&#39;s events will be available for query.
     * 
     */
    @Import(name="warmStoreDataRetentionTime")
    private @Nullable Output<String> warmStoreDataRetentionTime;

    /**
     * @return Specifies the ISO8601 timespan specifying the minimum number of days the environment&#39;s events will be available for query.
     * 
     */
    public Optional<Output<String>> warmStoreDataRetentionTime() {
        return Optional.ofNullable(this.warmStoreDataRetentionTime);
    }

    private TimeSeriesInsightsGen2EnvironmentState() {}

    private TimeSeriesInsightsGen2EnvironmentState(TimeSeriesInsightsGen2EnvironmentState $) {
        this.dataAccessFqdn = $.dataAccessFqdn;
        this.idProperties = $.idProperties;
        this.location = $.location;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.skuName = $.skuName;
        this.storage = $.storage;
        this.tags = $.tags;
        this.warmStoreDataRetentionTime = $.warmStoreDataRetentionTime;
    }

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

    public static final class Builder {
        private TimeSeriesInsightsGen2EnvironmentState $;

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

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

        /**
         * @param dataAccessFqdn The FQDN used to access the environment data.
         * 
         * @return builder
         * 
         */
        public Builder dataAccessFqdn(@Nullable Output<String> dataAccessFqdn) {
            $.dataAccessFqdn = dataAccessFqdn;
            return this;
        }

        /**
         * @param dataAccessFqdn The FQDN used to access the environment data.
         * 
         * @return builder
         * 
         */
        public Builder dataAccessFqdn(String dataAccessFqdn) {
            return dataAccessFqdn(Output.of(dataAccessFqdn));
        }

        /**
         * @param idProperties A list of property ids for the Azure IoT Time Series Insights Gen2 Environment. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder idProperties(@Nullable Output<List<String>> idProperties) {
            $.idProperties = idProperties;
            return this;
        }

        /**
         * @param idProperties A list of property ids for the Azure IoT Time Series Insights Gen2 Environment. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder idProperties(List<String> idProperties) {
            return idProperties(Output.of(idProperties));
        }

        /**
         * @param idProperties A list of property ids for the Azure IoT Time Series Insights Gen2 Environment. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder idProperties(String... idProperties) {
            return idProperties(List.of(idProperties));
        }

        /**
         * @param location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output<String> location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param name Specifies the name of the Azure IoT Time Series Insights Gen2 Environment. Changing this forces a new resource to be created. Must be globally unique.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies the name of the Azure IoT Time Series Insights Gen2 Environment. Changing this forces a new resource to be created. Must be globally unique.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param resourceGroupName The name of the resource group in which to create the Azure IoT Time Series Insights Gen2 Environment. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(@Nullable Output<String> resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group in which to create the Azure IoT Time Series Insights Gen2 Environment. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param skuName Specifies the SKU Name for this IoT Time Series Insights Gen2 Environment. Currently it supports only `L1`. For gen2, capacity cannot be specified. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder skuName(@Nullable Output<String> skuName) {
            $.skuName = skuName;
            return this;
        }

        /**
         * @param skuName Specifies the SKU Name for this IoT Time Series Insights Gen2 Environment. Currently it supports only `L1`. For gen2, capacity cannot be specified. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder skuName(String skuName) {
            return skuName(Output.of(skuName));
        }

        /**
         * @param storage A `storage` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder storage(@Nullable Output<TimeSeriesInsightsGen2EnvironmentStorageArgs> storage) {
            $.storage = storage;
            return this;
        }

        /**
         * @param storage A `storage` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder storage(TimeSeriesInsightsGen2EnvironmentStorageArgs storage) {
            return storage(Output.of(storage));
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output<Map<String,String>> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map<String,String> tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param warmStoreDataRetentionTime Specifies the ISO8601 timespan specifying the minimum number of days the environment&#39;s events will be available for query.
         * 
         * @return builder
         * 
         */
        public Builder warmStoreDataRetentionTime(@Nullable Output<String> warmStoreDataRetentionTime) {
            $.warmStoreDataRetentionTime = warmStoreDataRetentionTime;
            return this;
        }

        /**
         * @param warmStoreDataRetentionTime Specifies the ISO8601 timespan specifying the minimum number of days the environment&#39;s events will be available for query.
         * 
         * @return builder
         * 
         */
        public Builder warmStoreDataRetentionTime(String warmStoreDataRetentionTime) {
            return warmStoreDataRetentionTime(Output.of(warmStoreDataRetentionTime));
        }

        public TimeSeriesInsightsGen2EnvironmentState build() {
            return $;
        }
    }

}
