com.pulumi.azure.monitoring.outputs.AadDiagnosticSettingEnabledLog Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
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.
// *** 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.AadDiagnosticSettingEnabledLogRetentionPolicy;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class AadDiagnosticSettingEnabledLog {
/**
* @return The log category for the Azure Active Directory Diagnostic.
*
*/
private String category;
/**
* @return A `retention_policy` block as defined below.
*
*/
private AadDiagnosticSettingEnabledLogRetentionPolicy retentionPolicy;
private AadDiagnosticSettingEnabledLog() {}
/**
* @return The log category for the Azure Active Directory Diagnostic.
*
*/
public String category() {
return this.category;
}
/**
* @return A `retention_policy` block as defined below.
*
*/
public AadDiagnosticSettingEnabledLogRetentionPolicy retentionPolicy() {
return this.retentionPolicy;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AadDiagnosticSettingEnabledLog defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String category;
private AadDiagnosticSettingEnabledLogRetentionPolicy retentionPolicy;
public Builder() {}
public Builder(AadDiagnosticSettingEnabledLog defaults) {
Objects.requireNonNull(defaults);
this.category = defaults.category;
this.retentionPolicy = defaults.retentionPolicy;
}
@CustomType.Setter
public Builder category(String category) {
if (category == null) {
throw new MissingRequiredPropertyException("AadDiagnosticSettingEnabledLog", "category");
}
this.category = category;
return this;
}
@CustomType.Setter
public Builder retentionPolicy(AadDiagnosticSettingEnabledLogRetentionPolicy retentionPolicy) {
if (retentionPolicy == null) {
throw new MissingRequiredPropertyException("AadDiagnosticSettingEnabledLog", "retentionPolicy");
}
this.retentionPolicy = retentionPolicy;
return this;
}
public AadDiagnosticSettingEnabledLog build() {
final var _resultValue = new AadDiagnosticSettingEnabledLog();
_resultValue.category = category;
_resultValue.retentionPolicy = retentionPolicy;
return _resultValue;
}
}
}