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

com.pulumi.azure.monitoring.outputs.DiagnosticSettingEnabledLog 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.monitoring.outputs;

import com.pulumi.azure.monitoring.outputs.DiagnosticSettingEnabledLogRetentionPolicy;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DiagnosticSettingEnabledLog {
    /**
     * @return The name of a Diagnostic Log Category for this Resource.
     * 
     * > **NOTE:** The Log Categories available vary depending on the Resource being used. You may wish to use the `azure.monitoring.getDiagnosticCategories` Data Source or [list of service specific schemas](https://docs.microsoft.com/azure/azure-monitor/platform/resource-logs-schema#service-specific-schemas) to identify which categories are available for a given Resource.
     * 
     */
    private @Nullable String category;
    /**
     * @return The name of a Diagnostic Log Category Group for this Resource.
     * 
     * > **NOTE:** Not all resources have category groups available.
     * 
     * > **NOTE:** Exactly one of `category` or `category_group` must be specified.
     * 
     */
    private @Nullable String categoryGroup;
    /**
     * @deprecated
     * `retention_policy` has been deprecated in favor of `azure.storage.ManagementPolicy` resource - to learn more https://aka.ms/diagnostic_settings_log_retention
     * 
     */
    @Deprecated /* `retention_policy` has been deprecated in favor of `azure.storage.ManagementPolicy` resource - to learn more https://aka.ms/diagnostic_settings_log_retention */
    private @Nullable DiagnosticSettingEnabledLogRetentionPolicy retentionPolicy;

    private DiagnosticSettingEnabledLog() {}
    /**
     * @return The name of a Diagnostic Log Category for this Resource.
     * 
     * > **NOTE:** The Log Categories available vary depending on the Resource being used. You may wish to use the `azure.monitoring.getDiagnosticCategories` Data Source or [list of service specific schemas](https://docs.microsoft.com/azure/azure-monitor/platform/resource-logs-schema#service-specific-schemas) to identify which categories are available for a given Resource.
     * 
     */
    public Optional category() {
        return Optional.ofNullable(this.category);
    }
    /**
     * @return The name of a Diagnostic Log Category Group for this Resource.
     * 
     * > **NOTE:** Not all resources have category groups available.
     * 
     * > **NOTE:** Exactly one of `category` or `category_group` must be specified.
     * 
     */
    public Optional categoryGroup() {
        return Optional.ofNullable(this.categoryGroup);
    }
    /**
     * @deprecated
     * `retention_policy` has been deprecated in favor of `azure.storage.ManagementPolicy` resource - to learn more https://aka.ms/diagnostic_settings_log_retention
     * 
     */
    @Deprecated /* `retention_policy` has been deprecated in favor of `azure.storage.ManagementPolicy` resource - to learn more https://aka.ms/diagnostic_settings_log_retention */
    public Optional retentionPolicy() {
        return Optional.ofNullable(this.retentionPolicy);
    }

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

    public static Builder builder(DiagnosticSettingEnabledLog defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String category;
        private @Nullable String categoryGroup;
        private @Nullable DiagnosticSettingEnabledLogRetentionPolicy retentionPolicy;
        public Builder() {}
        public Builder(DiagnosticSettingEnabledLog defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.category = defaults.category;
    	      this.categoryGroup = defaults.categoryGroup;
    	      this.retentionPolicy = defaults.retentionPolicy;
        }

        @CustomType.Setter
        public Builder category(@Nullable String category) {

            this.category = category;
            return this;
        }
        @CustomType.Setter
        public Builder categoryGroup(@Nullable String categoryGroup) {

            this.categoryGroup = categoryGroup;
            return this;
        }
        @CustomType.Setter
        public Builder retentionPolicy(@Nullable DiagnosticSettingEnabledLogRetentionPolicy retentionPolicy) {

            this.retentionPolicy = retentionPolicy;
            return this;
        }
        public DiagnosticSettingEnabledLog build() {
            final var _resultValue = new DiagnosticSettingEnabledLog();
            _resultValue.category = category;
            _resultValue.categoryGroup = categoryGroup;
            _resultValue.retentionPolicy = retentionPolicy;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy