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

com.pulumi.azure.loganalytics.inputs.DataExportRuleState 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final DataExportRuleState Empty = new DataExportRuleState();

    /**
     * The destination resource ID. It should be a storage account, an event hub namespace or an event hub. If the destination is an event hub namespace, an event hub would be created for each table automatically.
     * 
     */
    @Import(name="destinationResourceId")
    private @Nullable Output destinationResourceId;

    /**
     * @return The destination resource ID. It should be a storage account, an event hub namespace or an event hub. If the destination is an event hub namespace, an event hub would be created for each table automatically.
     * 
     */
    public Optional> destinationResourceId() {
        return Optional.ofNullable(this.destinationResourceId);
    }

    /**
     * Is this Log Analytics Data Export Rule enabled? Possible values include `true` or `false`. Defaults to `false`.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Is this Log Analytics Data Export Rule enabled? Possible values include `true` or `false`. Defaults to `false`.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * The ID of the created Data Export Rule.
     * 
     */
    @Import(name="exportRuleId")
    private @Nullable Output exportRuleId;

    /**
     * @return The ID of the created Data Export Rule.
     * 
     */
    public Optional> exportRuleId() {
        return Optional.ofNullable(this.exportRuleId);
    }

    /**
     * The name of the Log Analytics Data Export Rule. Changing this forces a new Log Analytics Data Export Rule to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the Log Analytics Data Export Rule. Changing this forces a new Log Analytics Data Export Rule to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The name of the Resource Group where the Log Analytics Data Export should exist. Changing this forces a new Log Analytics Data Export Rule to be created.
     * 
     */
    @Import(name="resourceGroupName")
    private @Nullable Output resourceGroupName;

    /**
     * @return The name of the Resource Group where the Log Analytics Data Export should exist. Changing this forces a new Log Analytics Data Export Rule to be created.
     * 
     */
    public Optional> resourceGroupName() {
        return Optional.ofNullable(this.resourceGroupName);
    }

    /**
     * A list of table names to export to the destination resource, for example: `["Heartbeat", "SecurityEvent"]`.
     * 
     */
    @Import(name="tableNames")
    private @Nullable Output> tableNames;

    /**
     * @return A list of table names to export to the destination resource, for example: `["Heartbeat", "SecurityEvent"]`.
     * 
     */
    public Optional>> tableNames() {
        return Optional.ofNullable(this.tableNames);
    }

    /**
     * The resource ID of the workspace. Changing this forces a new Log Analytics Data Export Rule to be created.
     * 
     */
    @Import(name="workspaceResourceId")
    private @Nullable Output workspaceResourceId;

    /**
     * @return The resource ID of the workspace. Changing this forces a new Log Analytics Data Export Rule to be created.
     * 
     */
    public Optional> workspaceResourceId() {
        return Optional.ofNullable(this.workspaceResourceId);
    }

    private DataExportRuleState() {}

    private DataExportRuleState(DataExportRuleState $) {
        this.destinationResourceId = $.destinationResourceId;
        this.enabled = $.enabled;
        this.exportRuleId = $.exportRuleId;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.tableNames = $.tableNames;
        this.workspaceResourceId = $.workspaceResourceId;
    }

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

    public static final class Builder {
        private DataExportRuleState $;

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

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

        /**
         * @param destinationResourceId The destination resource ID. It should be a storage account, an event hub namespace or an event hub. If the destination is an event hub namespace, an event hub would be created for each table automatically.
         * 
         * @return builder
         * 
         */
        public Builder destinationResourceId(@Nullable Output destinationResourceId) {
            $.destinationResourceId = destinationResourceId;
            return this;
        }

        /**
         * @param destinationResourceId The destination resource ID. It should be a storage account, an event hub namespace or an event hub. If the destination is an event hub namespace, an event hub would be created for each table automatically.
         * 
         * @return builder
         * 
         */
        public Builder destinationResourceId(String destinationResourceId) {
            return destinationResourceId(Output.of(destinationResourceId));
        }

        /**
         * @param enabled Is this Log Analytics Data Export Rule enabled? Possible values include `true` or `false`. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Is this Log Analytics Data Export Rule enabled? Possible values include `true` or `false`. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param exportRuleId The ID of the created Data Export Rule.
         * 
         * @return builder
         * 
         */
        public Builder exportRuleId(@Nullable Output exportRuleId) {
            $.exportRuleId = exportRuleId;
            return this;
        }

        /**
         * @param exportRuleId The ID of the created Data Export Rule.
         * 
         * @return builder
         * 
         */
        public Builder exportRuleId(String exportRuleId) {
            return exportRuleId(Output.of(exportRuleId));
        }

        /**
         * @param name The name of the Log Analytics Data Export Rule. Changing this forces a new Log Analytics Data Export Rule to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the Log Analytics Data Export Rule. Changing this forces a new Log Analytics Data Export Rule to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

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

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

        /**
         * @param tableNames A list of table names to export to the destination resource, for example: `["Heartbeat", "SecurityEvent"]`.
         * 
         * @return builder
         * 
         */
        public Builder tableNames(@Nullable Output> tableNames) {
            $.tableNames = tableNames;
            return this;
        }

        /**
         * @param tableNames A list of table names to export to the destination resource, for example: `["Heartbeat", "SecurityEvent"]`.
         * 
         * @return builder
         * 
         */
        public Builder tableNames(List tableNames) {
            return tableNames(Output.of(tableNames));
        }

        /**
         * @param tableNames A list of table names to export to the destination resource, for example: `["Heartbeat", "SecurityEvent"]`.
         * 
         * @return builder
         * 
         */
        public Builder tableNames(String... tableNames) {
            return tableNames(List.of(tableNames));
        }

        /**
         * @param workspaceResourceId The resource ID of the workspace. Changing this forces a new Log Analytics Data Export Rule to be created.
         * 
         * @return builder
         * 
         */
        public Builder workspaceResourceId(@Nullable Output workspaceResourceId) {
            $.workspaceResourceId = workspaceResourceId;
            return this;
        }

        /**
         * @param workspaceResourceId The resource ID of the workspace. Changing this forces a new Log Analytics Data Export Rule to be created.
         * 
         * @return builder
         * 
         */
        public Builder workspaceResourceId(String workspaceResourceId) {
            return workspaceResourceId(Output.of(workspaceResourceId));
        }

        public DataExportRuleState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy