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

com.pulumi.azure.monitoring.inputs.AadDiagnosticSettingEnabledLogArgs 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.inputs;

import com.pulumi.azure.monitoring.inputs.AadDiagnosticSettingEnabledLogRetentionPolicyArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


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

    public static final AadDiagnosticSettingEnabledLogArgs Empty = new AadDiagnosticSettingEnabledLogArgs();

    /**
     * The log category for the Azure Active Directory Diagnostic.
     * 
     */
    @Import(name="category", required=true)
    private Output category;

    /**
     * @return The log category for the Azure Active Directory Diagnostic.
     * 
     */
    public Output category() {
        return this.category;
    }

    /**
     * A `retention_policy` block as defined below.
     * 
     */
    @Import(name="retentionPolicy", required=true)
    private Output retentionPolicy;

    /**
     * @return A `retention_policy` block as defined below.
     * 
     */
    public Output retentionPolicy() {
        return this.retentionPolicy;
    }

    private AadDiagnosticSettingEnabledLogArgs() {}

    private AadDiagnosticSettingEnabledLogArgs(AadDiagnosticSettingEnabledLogArgs $) {
        this.category = $.category;
        this.retentionPolicy = $.retentionPolicy;
    }

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

    public static final class Builder {
        private AadDiagnosticSettingEnabledLogArgs $;

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

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

        /**
         * @param category The log category for the Azure Active Directory Diagnostic.
         * 
         * @return builder
         * 
         */
        public Builder category(Output category) {
            $.category = category;
            return this;
        }

        /**
         * @param category The log category for the Azure Active Directory Diagnostic.
         * 
         * @return builder
         * 
         */
        public Builder category(String category) {
            return category(Output.of(category));
        }

        /**
         * @param retentionPolicy A `retention_policy` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder retentionPolicy(Output retentionPolicy) {
            $.retentionPolicy = retentionPolicy;
            return this;
        }

        /**
         * @param retentionPolicy A `retention_policy` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder retentionPolicy(AadDiagnosticSettingEnabledLogRetentionPolicyArgs retentionPolicy) {
            return retentionPolicy(Output.of(retentionPolicy));
        }

        public AadDiagnosticSettingEnabledLogArgs build() {
            if ($.category == null) {
                throw new MissingRequiredPropertyException("AadDiagnosticSettingEnabledLogArgs", "category");
            }
            if ($.retentionPolicy == null) {
                throw new MissingRequiredPropertyException("AadDiagnosticSettingEnabledLogArgs", "retentionPolicy");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy