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

com.pulumi.azure.loganalytics.DataSourceWindowsPerformanceCounterArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.loganalytics;

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


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

    public static final DataSourceWindowsPerformanceCounterArgs Empty = new DataSourceWindowsPerformanceCounterArgs();

    /**
     * The friendly name of the performance counter.
     * 
     */
    @Import(name="counterName", required=true)
    private Output counterName;

    /**
     * @return The friendly name of the performance counter.
     * 
     */
    public Output counterName() {
        return this.counterName;
    }

    /**
     * The name of the virtual machine instance to which the Windows Performance Counter DataSource be applied. Specify a `*` will apply to all instances.
     * 
     */
    @Import(name="instanceName", required=true)
    private Output instanceName;

    /**
     * @return The name of the virtual machine instance to which the Windows Performance Counter DataSource be applied. Specify a `*` will apply to all instances.
     * 
     */
    public Output instanceName() {
        return this.instanceName;
    }

    /**
     * The time of sample interval in seconds. Supports values between 10 and 2147483647.
     * 
     */
    @Import(name="intervalSeconds", required=true)
    private Output intervalSeconds;

    /**
     * @return The time of sample interval in seconds. Supports values between 10 and 2147483647.
     * 
     */
    public Output intervalSeconds() {
        return this.intervalSeconds;
    }

    /**
     * The Name which should be used for this Log Analytics Windows Performance Counter DataSource. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The Name which should be used for this Log Analytics Windows Performance Counter DataSource. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The object name of the Log Analytics Windows Performance Counter DataSource.
     * 
     */
    @Import(name="objectName", required=true)
    private Output objectName;

    /**
     * @return The object name of the Log Analytics Windows Performance Counter DataSource.
     * 
     */
    public Output objectName() {
        return this.objectName;
    }

    /**
     * The name of the Resource Group where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the Resource Group where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The name of the Log Analytics Workspace where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
     * 
     */
    @Import(name="workspaceName", required=true)
    private Output workspaceName;

    /**
     * @return The name of the Log Analytics Workspace where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
     * 
     */
    public Output workspaceName() {
        return this.workspaceName;
    }

    private DataSourceWindowsPerformanceCounterArgs() {}

    private DataSourceWindowsPerformanceCounterArgs(DataSourceWindowsPerformanceCounterArgs $) {
        this.counterName = $.counterName;
        this.instanceName = $.instanceName;
        this.intervalSeconds = $.intervalSeconds;
        this.name = $.name;
        this.objectName = $.objectName;
        this.resourceGroupName = $.resourceGroupName;
        this.workspaceName = $.workspaceName;
    }

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

    public static final class Builder {
        private DataSourceWindowsPerformanceCounterArgs $;

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

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

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

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

        /**
         * @param instanceName The name of the virtual machine instance to which the Windows Performance Counter DataSource be applied. Specify a `*` will apply to all instances.
         * 
         * @return builder
         * 
         */
        public Builder instanceName(Output instanceName) {
            $.instanceName = instanceName;
            return this;
        }

        /**
         * @param instanceName The name of the virtual machine instance to which the Windows Performance Counter DataSource be applied. Specify a `*` will apply to all instances.
         * 
         * @return builder
         * 
         */
        public Builder instanceName(String instanceName) {
            return instanceName(Output.of(instanceName));
        }

        /**
         * @param intervalSeconds The time of sample interval in seconds. Supports values between 10 and 2147483647.
         * 
         * @return builder
         * 
         */
        public Builder intervalSeconds(Output intervalSeconds) {
            $.intervalSeconds = intervalSeconds;
            return this;
        }

        /**
         * @param intervalSeconds The time of sample interval in seconds. Supports values between 10 and 2147483647.
         * 
         * @return builder
         * 
         */
        public Builder intervalSeconds(Integer intervalSeconds) {
            return intervalSeconds(Output.of(intervalSeconds));
        }

        /**
         * @param name The Name which should be used for this Log Analytics Windows Performance Counter DataSource. Changing this forces a new Log Analytics Windows Performance Counter DataSource 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 Log Analytics Windows Performance Counter DataSource. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param objectName The object name of the Log Analytics Windows Performance Counter DataSource.
         * 
         * @return builder
         * 
         */
        public Builder objectName(Output objectName) {
            $.objectName = objectName;
            return this;
        }

        /**
         * @param objectName The object name of the Log Analytics Windows Performance Counter DataSource.
         * 
         * @return builder
         * 
         */
        public Builder objectName(String objectName) {
            return objectName(Output.of(objectName));
        }

        /**
         * @param resourceGroupName The name of the Resource Group where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the Resource Group where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param workspaceName The name of the Log Analytics Workspace where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(Output workspaceName) {
            $.workspaceName = workspaceName;
            return this;
        }

        /**
         * @param workspaceName The name of the Log Analytics Workspace where the Log Analytics Windows Performance Counter DataSource should exist. Changing this forces a new Log Analytics Windows Performance Counter DataSource to be created.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(String workspaceName) {
            return workspaceName(Output.of(workspaceName));
        }

        public DataSourceWindowsPerformanceCounterArgs build() {
            if ($.counterName == null) {
                throw new MissingRequiredPropertyException("DataSourceWindowsPerformanceCounterArgs", "counterName");
            }
            if ($.instanceName == null) {
                throw new MissingRequiredPropertyException("DataSourceWindowsPerformanceCounterArgs", "instanceName");
            }
            if ($.intervalSeconds == null) {
                throw new MissingRequiredPropertyException("DataSourceWindowsPerformanceCounterArgs", "intervalSeconds");
            }
            if ($.objectName == null) {
                throw new MissingRequiredPropertyException("DataSourceWindowsPerformanceCounterArgs", "objectName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("DataSourceWindowsPerformanceCounterArgs", "resourceGroupName");
            }
            if ($.workspaceName == null) {
                throw new MissingRequiredPropertyException("DataSourceWindowsPerformanceCounterArgs", "workspaceName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy