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

com.pulumi.azurenative.azurearcdata.inputs.GetSqlServerInstanceTelemetryArgs 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.azurearcdata.inputs;

import com.pulumi.azurenative.azurearcdata.enums.AggregationType;
import com.pulumi.core.Either;
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.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GetSqlServerInstanceTelemetryArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetSqlServerInstanceTelemetryArgs Empty = new GetSqlServerInstanceTelemetryArgs();

    /**
     * The aggregation type to use for the numerical columns in the dataset.
     * 
     */
    @Import(name="aggregationType")
    private @Nullable Output> aggregationType;

    /**
     * @return The aggregation type to use for the numerical columns in the dataset.
     * 
     */
    public Optional>> aggregationType() {
        return Optional.ofNullable(this.aggregationType);
    }

    /**
     * The list of database names to return telemetry for. If not specified, telemetry for all databases will be aggregated and returned.
     * 
     */
    @Import(name="databaseNames")
    private @Nullable Output> databaseNames;

    /**
     * @return The list of database names to return telemetry for. If not specified, telemetry for all databases will be aggregated and returned.
     * 
     */
    public Optional>> databaseNames() {
        return Optional.ofNullable(this.databaseNames);
    }

    /**
     * The name of the telemetry dataset to retrieve.
     * 
     */
    @Import(name="datasetName", required=true)
    private Output datasetName;

    /**
     * @return The name of the telemetry dataset to retrieve.
     * 
     */
    public Output datasetName() {
        return this.datasetName;
    }

    /**
     * The end time for the time range to fetch telemetry for. If not specified, the current time is used.
     * 
     */
    @Import(name="endTime")
    private @Nullable Output endTime;

    /**
     * @return The end time for the time range to fetch telemetry for. If not specified, the current time is used.
     * 
     */
    public Optional> endTime() {
        return Optional.ofNullable(this.endTime);
    }

    /**
     * The time granularity to fetch telemetry for. This is an ISO8601 duration. Examples: PT15M, PT1H, P1D
     * 
     */
    @Import(name="interval")
    private @Nullable Output interval;

    /**
     * @return The time granularity to fetch telemetry for. This is an ISO8601 duration. Examples: PT15M, PT1H, P1D
     * 
     */
    public Optional> interval() {
        return Optional.ofNullable(this.interval);
    }

    /**
     * The name of the Azure resource group
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the Azure resource group
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Name of SQL Server Instance
     * 
     */
    @Import(name="sqlServerInstanceName", required=true)
    private Output sqlServerInstanceName;

    /**
     * @return Name of SQL Server Instance
     * 
     */
    public Output sqlServerInstanceName() {
        return this.sqlServerInstanceName;
    }

    /**
     * The start time for the time range to fetch telemetry for. If not specified, the current time minus 1 hour is used.
     * 
     */
    @Import(name="startTime")
    private @Nullable Output startTime;

    /**
     * @return The start time for the time range to fetch telemetry for. If not specified, the current time minus 1 hour is used.
     * 
     */
    public Optional> startTime() {
        return Optional.ofNullable(this.startTime);
    }

    private GetSqlServerInstanceTelemetryArgs() {}

    private GetSqlServerInstanceTelemetryArgs(GetSqlServerInstanceTelemetryArgs $) {
        this.aggregationType = $.aggregationType;
        this.databaseNames = $.databaseNames;
        this.datasetName = $.datasetName;
        this.endTime = $.endTime;
        this.interval = $.interval;
        this.resourceGroupName = $.resourceGroupName;
        this.sqlServerInstanceName = $.sqlServerInstanceName;
        this.startTime = $.startTime;
    }

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

    public static final class Builder {
        private GetSqlServerInstanceTelemetryArgs $;

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

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

        /**
         * @param aggregationType The aggregation type to use for the numerical columns in the dataset.
         * 
         * @return builder
         * 
         */
        public Builder aggregationType(@Nullable Output> aggregationType) {
            $.aggregationType = aggregationType;
            return this;
        }

        /**
         * @param aggregationType The aggregation type to use for the numerical columns in the dataset.
         * 
         * @return builder
         * 
         */
        public Builder aggregationType(Either aggregationType) {
            return aggregationType(Output.of(aggregationType));
        }

        /**
         * @param aggregationType The aggregation type to use for the numerical columns in the dataset.
         * 
         * @return builder
         * 
         */
        public Builder aggregationType(String aggregationType) {
            return aggregationType(Either.ofLeft(aggregationType));
        }

        /**
         * @param aggregationType The aggregation type to use for the numerical columns in the dataset.
         * 
         * @return builder
         * 
         */
        public Builder aggregationType(AggregationType aggregationType) {
            return aggregationType(Either.ofRight(aggregationType));
        }

        /**
         * @param databaseNames The list of database names to return telemetry for. If not specified, telemetry for all databases will be aggregated and returned.
         * 
         * @return builder
         * 
         */
        public Builder databaseNames(@Nullable Output> databaseNames) {
            $.databaseNames = databaseNames;
            return this;
        }

        /**
         * @param databaseNames The list of database names to return telemetry for. If not specified, telemetry for all databases will be aggregated and returned.
         * 
         * @return builder
         * 
         */
        public Builder databaseNames(List databaseNames) {
            return databaseNames(Output.of(databaseNames));
        }

        /**
         * @param databaseNames The list of database names to return telemetry for. If not specified, telemetry for all databases will be aggregated and returned.
         * 
         * @return builder
         * 
         */
        public Builder databaseNames(String... databaseNames) {
            return databaseNames(List.of(databaseNames));
        }

        /**
         * @param datasetName The name of the telemetry dataset to retrieve.
         * 
         * @return builder
         * 
         */
        public Builder datasetName(Output datasetName) {
            $.datasetName = datasetName;
            return this;
        }

        /**
         * @param datasetName The name of the telemetry dataset to retrieve.
         * 
         * @return builder
         * 
         */
        public Builder datasetName(String datasetName) {
            return datasetName(Output.of(datasetName));
        }

        /**
         * @param endTime The end time for the time range to fetch telemetry for. If not specified, the current time is used.
         * 
         * @return builder
         * 
         */
        public Builder endTime(@Nullable Output endTime) {
            $.endTime = endTime;
            return this;
        }

        /**
         * @param endTime The end time for the time range to fetch telemetry for. If not specified, the current time is used.
         * 
         * @return builder
         * 
         */
        public Builder endTime(String endTime) {
            return endTime(Output.of(endTime));
        }

        /**
         * @param interval The time granularity to fetch telemetry for. This is an ISO8601 duration. Examples: PT15M, PT1H, P1D
         * 
         * @return builder
         * 
         */
        public Builder interval(@Nullable Output interval) {
            $.interval = interval;
            return this;
        }

        /**
         * @param interval The time granularity to fetch telemetry for. This is an ISO8601 duration. Examples: PT15M, PT1H, P1D
         * 
         * @return builder
         * 
         */
        public Builder interval(String interval) {
            return interval(Output.of(interval));
        }

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

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

        /**
         * @param sqlServerInstanceName Name of SQL Server Instance
         * 
         * @return builder
         * 
         */
        public Builder sqlServerInstanceName(Output sqlServerInstanceName) {
            $.sqlServerInstanceName = sqlServerInstanceName;
            return this;
        }

        /**
         * @param sqlServerInstanceName Name of SQL Server Instance
         * 
         * @return builder
         * 
         */
        public Builder sqlServerInstanceName(String sqlServerInstanceName) {
            return sqlServerInstanceName(Output.of(sqlServerInstanceName));
        }

        /**
         * @param startTime The start time for the time range to fetch telemetry for. If not specified, the current time minus 1 hour is used.
         * 
         * @return builder
         * 
         */
        public Builder startTime(@Nullable Output startTime) {
            $.startTime = startTime;
            return this;
        }

        /**
         * @param startTime The start time for the time range to fetch telemetry for. If not specified, the current time minus 1 hour is used.
         * 
         * @return builder
         * 
         */
        public Builder startTime(String startTime) {
            return startTime(Output.of(startTime));
        }

        public GetSqlServerInstanceTelemetryArgs build() {
            $.aggregationType = Codegen.stringProp("aggregationType").left(AggregationType.class).output().arg($.aggregationType).def("Average").getNullable();
            if ($.datasetName == null) {
                throw new MissingRequiredPropertyException("GetSqlServerInstanceTelemetryArgs", "datasetName");
            }
            $.interval = Codegen.stringProp("interval").output().arg($.interval).def("PT1H").getNullable();
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("GetSqlServerInstanceTelemetryArgs", "resourceGroupName");
            }
            if ($.sqlServerInstanceName == null) {
                throw new MissingRequiredPropertyException("GetSqlServerInstanceTelemetryArgs", "sqlServerInstanceName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy