
com.pulumi.azurenative.insights.outputs.LogFilesDataSourceResponse Maven / Gradle / Ivy
// *** 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.outputs;
import com.pulumi.azurenative.insights.outputs.LogFilesDataSourceResponseSettings;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class LogFilesDataSourceResponse {
/**
* @return File Patterns where the log files are located
*
*/
private List filePatterns;
/**
* @return The data format of the log files
*
*/
private String format;
/**
* @return A friendly name for the data source.
* This name should be unique across all data sources (regardless of type) within the data collection rule.
*
*/
private @Nullable String name;
/**
* @return The log files specific settings.
*
*/
private @Nullable LogFilesDataSourceResponseSettings settings;
/**
* @return List of streams that this data source will be sent to.
* A stream indicates what schema will be used for this data source
*
*/
private List streams;
private LogFilesDataSourceResponse() {}
/**
* @return File Patterns where the log files are located
*
*/
public List filePatterns() {
return this.filePatterns;
}
/**
* @return The data format of the log files
*
*/
public String format() {
return this.format;
}
/**
* @return A friendly name for the data source.
* This name should be unique across all data sources (regardless of type) within the data collection rule.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return The log files specific settings.
*
*/
public Optional settings() {
return Optional.ofNullable(this.settings);
}
/**
* @return List of streams that this data source will be sent to.
* A stream indicates what schema will be used for this data source
*
*/
public List streams() {
return this.streams;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LogFilesDataSourceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List filePatterns;
private String format;
private @Nullable String name;
private @Nullable LogFilesDataSourceResponseSettings settings;
private List streams;
public Builder() {}
public Builder(LogFilesDataSourceResponse defaults) {
Objects.requireNonNull(defaults);
this.filePatterns = defaults.filePatterns;
this.format = defaults.format;
this.name = defaults.name;
this.settings = defaults.settings;
this.streams = defaults.streams;
}
@CustomType.Setter
public Builder filePatterns(List filePatterns) {
if (filePatterns == null) {
throw new MissingRequiredPropertyException("LogFilesDataSourceResponse", "filePatterns");
}
this.filePatterns = filePatterns;
return this;
}
public Builder filePatterns(String... filePatterns) {
return filePatterns(List.of(filePatterns));
}
@CustomType.Setter
public Builder format(String format) {
if (format == null) {
throw new MissingRequiredPropertyException("LogFilesDataSourceResponse", "format");
}
this.format = format;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder settings(@Nullable LogFilesDataSourceResponseSettings settings) {
this.settings = settings;
return this;
}
@CustomType.Setter
public Builder streams(List streams) {
if (streams == null) {
throw new MissingRequiredPropertyException("LogFilesDataSourceResponse", "streams");
}
this.streams = streams;
return this;
}
public Builder streams(String... streams) {
return streams(List.of(streams));
}
public LogFilesDataSourceResponse build() {
final var _resultValue = new LogFilesDataSourceResponse();
_resultValue.filePatterns = filePatterns;
_resultValue.format = format;
_resultValue.name = name;
_resultValue.settings = settings;
_resultValue.streams = streams;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy