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

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

There is a newer version: 2.72.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.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 Management Group diagnostic setting. Specifies the settings for a particular log.
 * 
 */
public final class ManagementGroupLogSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final ManagementGroupLogSettingsArgs Empty = new ManagementGroupLogSettingsArgs();

    /**
     * Name of a Management Group Diagnostic Log category for a resource type this setting is applied to.
     * 
     */
    @Import(name="category")
    private @Nullable Output category;

    /**
     * @return Name of a Management Group Diagnostic Log category for a resource type this setting is applied to.
     * 
     */
    public Optional> category() {
        return Optional.ofNullable(this.category);
    }

    /**
     * Name of a Management Group Diagnostic Log category group for a resource type this setting is applied to.
     * 
     */
    @Import(name="categoryGroup")
    private @Nullable Output categoryGroup;

    /**
     * @return Name of a Management Group Diagnostic Log category group for a resource type this setting is applied to.
     * 
     */
    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;
    }

    private ManagementGroupLogSettingsArgs() {}

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

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

    public static final class Builder {
        private ManagementGroupLogSettingsArgs $;

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

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

        /**
         * @param category Name of a Management Group Diagnostic Log category for a resource type this setting is applied to.
         * 
         * @return builder
         * 
         */
        public Builder category(@Nullable Output category) {
            $.category = category;
            return this;
        }

        /**
         * @param category Name of a Management Group Diagnostic Log category for a resource type this setting is applied to.
         * 
         * @return builder
         * 
         */
        public Builder category(String category) {
            return category(Output.of(category));
        }

        /**
         * @param categoryGroup Name of a Management Group Diagnostic Log category group for a resource type this setting is applied to.
         * 
         * @return builder
         * 
         */
        public Builder categoryGroup(@Nullable Output categoryGroup) {
            $.categoryGroup = categoryGroup;
            return this;
        }

        /**
         * @param categoryGroup Name of a Management Group Diagnostic Log category group for a resource type this setting is applied to.
         * 
         * @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));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy