All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.monitor.outputs.ReceiverResponse Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** 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.azurenative.monitor.outputs.OtlpReceiverResponse;
import com.pulumi.azurenative.monitor.outputs.SyslogReceiverResponse;
import com.pulumi.azurenative.monitor.outputs.UdpReceiverResponse;
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 ReceiverResponse {
    /**
     * @return The name of receiver.
     * 
     */
    private String name;
    /**
     * @return OTLP receiver configurations. This field is mandatory for OTLP and pipelineGroup receivers.
     * 
     */
    private @Nullable OtlpReceiverResponse otlp;
    /**
     * @return Syslog configurations. This field is mandatory for syslog type receivers.
     * 
     */
    private @Nullable SyslogReceiverResponse syslog;
    /**
     * @return The type of receiver.
     * 
     */
    private String type;
    /**
     * @return UDP receiver configurations. This field is mandatory for UDP receivers.
     * 
     */
    private @Nullable UdpReceiverResponse udp;

    private ReceiverResponse() {}
    /**
     * @return The name of receiver.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return OTLP receiver configurations. This field is mandatory for OTLP and pipelineGroup receivers.
     * 
     */
    public Optional otlp() {
        return Optional.ofNullable(this.otlp);
    }
    /**
     * @return Syslog configurations. This field is mandatory for syslog type receivers.
     * 
     */
    public Optional syslog() {
        return Optional.ofNullable(this.syslog);
    }
    /**
     * @return The type of receiver.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return UDP receiver configurations. This field is mandatory for UDP receivers.
     * 
     */
    public Optional udp() {
        return Optional.ofNullable(this.udp);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(ReceiverResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String name;
        private @Nullable OtlpReceiverResponse otlp;
        private @Nullable SyslogReceiverResponse syslog;
        private String type;
        private @Nullable UdpReceiverResponse udp;
        public Builder() {}
        public Builder(ReceiverResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.name = defaults.name;
    	      this.otlp = defaults.otlp;
    	      this.syslog = defaults.syslog;
    	      this.type = defaults.type;
    	      this.udp = defaults.udp;
        }

        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("ReceiverResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder otlp(@Nullable OtlpReceiverResponse otlp) {

            this.otlp = otlp;
            return this;
        }
        @CustomType.Setter
        public Builder syslog(@Nullable SyslogReceiverResponse syslog) {

            this.syslog = syslog;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("ReceiverResponse", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder udp(@Nullable UdpReceiverResponse udp) {

            this.udp = udp;
            return this;
        }
        public ReceiverResponse build() {
            final var _resultValue = new ReceiverResponse();
            _resultValue.name = name;
            _resultValue.otlp = otlp;
            _resultValue.syslog = syslog;
            _resultValue.type = type;
            _resultValue.udp = udp;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy