
com.pulumi.azurenative.monitor.outputs.UdpReceiverResponse 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.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class UdpReceiverResponse {
/**
* @return The encoding of the stream being received.
*
*/
private @Nullable String encoding;
/**
* @return TCP endpoint definition. Example: 0.0.0.0:<port>.
*
*/
private String endpoint;
/**
* @return Max read queue length.
*
*/
private @Nullable Integer readQueueLength;
private UdpReceiverResponse() {}
/**
* @return The encoding of the stream being received.
*
*/
public Optional encoding() {
return Optional.ofNullable(this.encoding);
}
/**
* @return TCP endpoint definition. Example: 0.0.0.0:<port>.
*
*/
public String endpoint() {
return this.endpoint;
}
/**
* @return Max read queue length.
*
*/
public Optional readQueueLength() {
return Optional.ofNullable(this.readQueueLength);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(UdpReceiverResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String encoding;
private String endpoint;
private @Nullable Integer readQueueLength;
public Builder() {}
public Builder(UdpReceiverResponse defaults) {
Objects.requireNonNull(defaults);
this.encoding = defaults.encoding;
this.endpoint = defaults.endpoint;
this.readQueueLength = defaults.readQueueLength;
}
@CustomType.Setter
public Builder encoding(@Nullable String encoding) {
this.encoding = encoding;
return this;
}
@CustomType.Setter
public Builder endpoint(String endpoint) {
if (endpoint == null) {
throw new MissingRequiredPropertyException("UdpReceiverResponse", "endpoint");
}
this.endpoint = endpoint;
return this;
}
@CustomType.Setter
public Builder readQueueLength(@Nullable Integer readQueueLength) {
this.readQueueLength = readQueueLength;
return this;
}
public UdpReceiverResponse build() {
final var _resultValue = new UdpReceiverResponse();
_resultValue.encoding = encoding;
_resultValue.endpoint = endpoint;
_resultValue.readQueueLength = readQueueLength;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy