com.pulumi.azurenative.insights.outputs.IisLogsDataSourceResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.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 IisLogsDataSourceResponse {
/**
* @return Absolute paths file location
*
*/
private @Nullable List logDirectories;
/**
* @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 IIS streams
*
*/
private List streams;
private IisLogsDataSourceResponse() {}
/**
* @return Absolute paths file location
*
*/
public List logDirectories() {
return this.logDirectories == null ? List.of() : this.logDirectories;
}
/**
* @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 IIS streams
*
*/
public List streams() {
return this.streams;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(IisLogsDataSourceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List logDirectories;
private @Nullable String name;
private List streams;
public Builder() {}
public Builder(IisLogsDataSourceResponse defaults) {
Objects.requireNonNull(defaults);
this.logDirectories = defaults.logDirectories;
this.name = defaults.name;
this.streams = defaults.streams;
}
@CustomType.Setter
public Builder logDirectories(@Nullable List logDirectories) {
this.logDirectories = logDirectories;
return this;
}
public Builder logDirectories(String... logDirectories) {
return logDirectories(List.of(logDirectories));
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder streams(List streams) {
if (streams == null) {
throw new MissingRequiredPropertyException("IisLogsDataSourceResponse", "streams");
}
this.streams = streams;
return this;
}
public Builder streams(String... streams) {
return streams(List.of(streams));
}
public IisLogsDataSourceResponse build() {
final var _resultValue = new IisLogsDataSourceResponse();
_resultValue.logDirectories = logDirectories;
_resultValue.name = name;
_resultValue.streams = streams;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy