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

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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.monitor.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 * Receiver Info.
 * @property name The name of receiver.
 * @property otlp OTLP receiver configurations. This field is mandatory for OTLP and pipelineGroup receivers.
 * @property syslog Syslog configurations. This field is mandatory for syslog type receivers.
 * @property type The type of receiver.
 * @property udp UDP receiver configurations. This field is mandatory for UDP receivers.
 */
public data class ReceiverResponse(
    public val name: String,
    public val otlp: OtlpReceiverResponse? = null,
    public val syslog: SyslogReceiverResponse? = null,
    public val type: String,
    public val udp: UdpReceiverResponse? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azurenative.monitor.outputs.ReceiverResponse): ReceiverResponse = ReceiverResponse(
            name = javaType.name(),
            otlp = javaType.otlp().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azurenative.monitor.kotlin.outputs.OtlpReceiverResponse.Companion.toKotlin(args0)
                })
            }).orElse(null),
            syslog = javaType.syslog().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azurenative.monitor.kotlin.outputs.SyslogReceiverResponse.Companion.toKotlin(args0)
                })
            }).orElse(null),
            type = javaType.type(),
            udp = javaType.udp().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azurenative.monitor.kotlin.outputs.UdpReceiverResponse.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy