com.pulumi.azure.monitoring.outputs.DataCollectionRuleDataSourcesSyslog 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.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class DataCollectionRuleDataSourcesSyslog {
/**
* @return Specifies a list of facility names. Use a wildcard `*` to collect logs for all facility names. Possible values are `alert`, `*`, `audit`, `auth`, `authpriv`, `clock`, `cron`, `daemon`, `ftp`, `kern`, `local5`, `local4`, `local1`, `local7`, `local6`, `local3`, `local2`, `local0`, `lpr`, `mail`, `mark`, `news`, `nopri`, `ntp`, `syslog`, `user` and `uucp`.
*
*/
private List facilityNames;
/**
* @return Specifies a list of log levels. Use a wildcard `*` to collect logs for all log levels. Possible values are `Debug`, `Info`, `Notice`, `Warning`, `Error`, `Critical`, `Alert`, `Emergency`,and `*`.
*
*/
private List logLevels;
/**
* @return The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
*
*/
private String name;
/**
* @return Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to `Microsoft-Syslog`,and `Microsoft-CiscoAsa`, and `Microsoft-CommonSecurityLog`.
*
*/
private List streams;
private DataCollectionRuleDataSourcesSyslog() {}
/**
* @return Specifies a list of facility names. Use a wildcard `*` to collect logs for all facility names. Possible values are `alert`, `*`, `audit`, `auth`, `authpriv`, `clock`, `cron`, `daemon`, `ftp`, `kern`, `local5`, `local4`, `local1`, `local7`, `local6`, `local3`, `local2`, `local0`, `lpr`, `mail`, `mark`, `news`, `nopri`, `ntp`, `syslog`, `user` and `uucp`.
*
*/
public List facilityNames() {
return this.facilityNames;
}
/**
* @return Specifies a list of log levels. Use a wildcard `*` to collect logs for all log levels. Possible values are `Debug`, `Info`, `Notice`, `Warning`, `Error`, `Critical`, `Alert`, `Emergency`,and `*`.
*
*/
public List logLevels() {
return this.logLevels;
}
/**
* @return The name which should be used for this data source. This name should be unique across all data sources regardless of type within the Data Collection Rule.
*
*/
public String name() {
return this.name;
}
/**
* @return Specifies a list of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to. Possible values include but not limited to `Microsoft-Syslog`,and `Microsoft-CiscoAsa`, and `Microsoft-CommonSecurityLog`.
*
*/
public List streams() {
return this.streams;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DataCollectionRuleDataSourcesSyslog defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List facilityNames;
private List logLevels;
private String name;
private List streams;
public Builder() {}
public Builder(DataCollectionRuleDataSourcesSyslog defaults) {
Objects.requireNonNull(defaults);
this.facilityNames = defaults.facilityNames;
this.logLevels = defaults.logLevels;
this.name = defaults.name;
this.streams = defaults.streams;
}
@CustomType.Setter
public Builder facilityNames(List facilityNames) {
if (facilityNames == null) {
throw new MissingRequiredPropertyException("DataCollectionRuleDataSourcesSyslog", "facilityNames");
}
this.facilityNames = facilityNames;
return this;
}
public Builder facilityNames(String... facilityNames) {
return facilityNames(List.of(facilityNames));
}
@CustomType.Setter
public Builder logLevels(List logLevels) {
if (logLevels == null) {
throw new MissingRequiredPropertyException("DataCollectionRuleDataSourcesSyslog", "logLevels");
}
this.logLevels = logLevels;
return this;
}
public Builder logLevels(String... logLevels) {
return logLevels(List.of(logLevels));
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("DataCollectionRuleDataSourcesSyslog", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder streams(List streams) {
if (streams == null) {
throw new MissingRequiredPropertyException("DataCollectionRuleDataSourcesSyslog", "streams");
}
this.streams = streams;
return this;
}
public Builder streams(String... streams) {
return streams(List.of(streams));
}
public DataCollectionRuleDataSourcesSyslog build() {
final var _resultValue = new DataCollectionRuleDataSourcesSyslog();
_resultValue.facilityNames = facilityNames;
_resultValue.logLevels = logLevels;
_resultValue.name = name;
_resultValue.streams = streams;
return _resultValue;
}
}
}