com.ovhcloud.pulumi.ovh.Dbaas.outputs.LogsInputConfigurationLogstash Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-ovh Show documentation
Show all versions of pulumi-ovh Show documentation
A Pulumi package for creating and managing OVH 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.ovhcloud.pulumi.ovh.Dbaas.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class LogsInputConfigurationLogstash {
/**
* @return The filter section of logstash.conf
*
*/
private @Nullable String filterSection;
/**
* @return The filter section of logstash.conf
*
*/
private String inputSection;
/**
* @return The list of customs Grok patterns
*
*/
private @Nullable String patternSection;
private LogsInputConfigurationLogstash() {}
/**
* @return The filter section of logstash.conf
*
*/
public Optional filterSection() {
return Optional.ofNullable(this.filterSection);
}
/**
* @return The filter section of logstash.conf
*
*/
public String inputSection() {
return this.inputSection;
}
/**
* @return The list of customs Grok patterns
*
*/
public Optional patternSection() {
return Optional.ofNullable(this.patternSection);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LogsInputConfigurationLogstash defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String filterSection;
private String inputSection;
private @Nullable String patternSection;
public Builder() {}
public Builder(LogsInputConfigurationLogstash defaults) {
Objects.requireNonNull(defaults);
this.filterSection = defaults.filterSection;
this.inputSection = defaults.inputSection;
this.patternSection = defaults.patternSection;
}
@CustomType.Setter
public Builder filterSection(@Nullable String filterSection) {
this.filterSection = filterSection;
return this;
}
@CustomType.Setter
public Builder inputSection(String inputSection) {
if (inputSection == null) {
throw new MissingRequiredPropertyException("LogsInputConfigurationLogstash", "inputSection");
}
this.inputSection = inputSection;
return this;
}
@CustomType.Setter
public Builder patternSection(@Nullable String patternSection) {
this.patternSection = patternSection;
return this;
}
public LogsInputConfigurationLogstash build() {
final var _resultValue = new LogsInputConfigurationLogstash();
_resultValue.filterSection = filterSection;
_resultValue.inputSection = inputSection;
_resultValue.patternSection = patternSection;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy