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

com.pulumi.azurenative.insights.inputs.LogSettingsArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
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.azurenative.insights.inputs;

import com.pulumi.azurenative.insights.inputs.RetentionPolicyArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log.
 * 
 */
public final class LogSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final LogSettingsArgs Empty = new LogSettingsArgs();

    /**
     * Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.
     * 
     */
    @Import(name="category")
    private @Nullable Output category;

    /**
     * @return Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.
     * 
     */
    public Optional> category() {
        return Optional.ofNullable(this.category);
    }

    /**
     * Name of a Diagnostic Log category group for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.
     * 
     */
    @Import(name="categoryGroup")
    private @Nullable Output categoryGroup;

    /**
     * @return Name of a Diagnostic Log category group for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.
     * 
     */
    public Optional> categoryGroup() {
        return Optional.ofNullable(this.categoryGroup);
    }

    /**
     * a value indicating whether this log is enabled.
     * 
     */
    @Import(name="enabled", required=true)
    private Output enabled;

    /**
     * @return a value indicating whether this log is enabled.
     * 
     */
    public Output enabled() {
        return this.enabled;
    }

    /**
     * the retention policy for this log.
     * 
     */
    @Import(name="retentionPolicy")
    private @Nullable Output retentionPolicy;

    /**
     * @return the retention policy for this log.
     * 
     */
    public Optional> retentionPolicy() {
        return Optional.ofNullable(this.retentionPolicy);
    }

    private LogSettingsArgs() {}

    private LogSettingsArgs(LogSettingsArgs $) {
        this.category = $.category;
        this.categoryGroup = $.categoryGroup;
        this.enabled = $.enabled;
        this.retentionPolicy = $.retentionPolicy;
    }

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

    public static final class Builder {
        private LogSettingsArgs $;

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

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

        /**
         * @param category Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.
         * 
         * @return builder
         * 
         */
        public Builder category(@Nullable Output category) {
            $.category = category;
            return this;
        }

        /**
         * @param category Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.
         * 
         * @return builder
         * 
         */
        public Builder category(String category) {
            return category(Output.of(category));
        }

        /**
         * @param categoryGroup Name of a Diagnostic Log category group for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.
         * 
         * @return builder
         * 
         */
        public Builder categoryGroup(@Nullable Output categoryGroup) {
            $.categoryGroup = categoryGroup;
            return this;
        }

        /**
         * @param categoryGroup Name of a Diagnostic Log category group for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.
         * 
         * @return builder
         * 
         */
        public Builder categoryGroup(String categoryGroup) {
            return categoryGroup(Output.of(categoryGroup));
        }

        /**
         * @param enabled a value indicating whether this log is enabled.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled a value indicating whether this log is enabled.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param retentionPolicy the retention policy for this log.
         * 
         * @return builder
         * 
         */
        public Builder retentionPolicy(@Nullable Output retentionPolicy) {
            $.retentionPolicy = retentionPolicy;
            return this;
        }

        /**
         * @param retentionPolicy the retention policy for this log.
         * 
         * @return builder
         * 
         */
        public Builder retentionPolicy(RetentionPolicyArgs retentionPolicy) {
            return retentionPolicy(Output.of(retentionPolicy));
        }

        public LogSettingsArgs build() {
            if ($.enabled == null) {
                throw new MissingRequiredPropertyException("LogSettingsArgs", "enabled");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy