
com.pulumi.azurenative.monitor.outputs.SyslogReceiverResponse 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.monitor.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 SyslogReceiverResponse {
/**
* @return Syslog receiver endpoint definition. Example: 0.0.0.0:<port>.
*
*/
private String endpoint;
/**
* @return Protocol to parse syslog messages. Default rfc3164
*
*/
private @Nullable String protocol;
private SyslogReceiverResponse() {}
/**
* @return Syslog receiver endpoint definition. Example: 0.0.0.0:<port>.
*
*/
public String endpoint() {
return this.endpoint;
}
/**
* @return Protocol to parse syslog messages. Default rfc3164
*
*/
public Optional protocol() {
return Optional.ofNullable(this.protocol);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SyslogReceiverResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String endpoint;
private @Nullable String protocol;
public Builder() {}
public Builder(SyslogReceiverResponse defaults) {
Objects.requireNonNull(defaults);
this.endpoint = defaults.endpoint;
this.protocol = defaults.protocol;
}
@CustomType.Setter
public Builder endpoint(String endpoint) {
if (endpoint == null) {
throw new MissingRequiredPropertyException("SyslogReceiverResponse", "endpoint");
}
this.endpoint = endpoint;
return this;
}
@CustomType.Setter
public Builder protocol(@Nullable String protocol) {
this.protocol = protocol;
return this;
}
public SyslogReceiverResponse build() {
final var _resultValue = new SyslogReceiverResponse();
_resultValue.endpoint = endpoint;
_resultValue.protocol = protocol;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy