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

com.pulumi.azurenative.migrate.kotlin.inputs.CollectorAgentPropertiesBaseArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.migrate.kotlin.inputs

import com.pulumi.azurenative.migrate.inputs.CollectorAgentPropertiesBaseArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Collector agent property class.
 * @property id Gets the collector agent id.
 * @property lastHeartbeatUtc Gets the collector last heartbeat time.
 * @property spnDetails Gets or sets the SPN details.
 * @property version Gets the collector agent version.
 */
public data class CollectorAgentPropertiesBaseArgs(
    public val id: Output? = null,
    public val lastHeartbeatUtc: Output? = null,
    public val spnDetails: Output? = null,
    public val version: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.migrate.inputs.CollectorAgentPropertiesBaseArgs =
        com.pulumi.azurenative.migrate.inputs.CollectorAgentPropertiesBaseArgs.builder()
            .id(id?.applyValue({ args0 -> args0 }))
            .lastHeartbeatUtc(lastHeartbeatUtc?.applyValue({ args0 -> args0 }))
            .spnDetails(spnDetails?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .version(version?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CollectorAgentPropertiesBaseArgs].
 */
@PulumiTagMarker
public class CollectorAgentPropertiesBaseArgsBuilder internal constructor() {
    private var id: Output? = null

    private var lastHeartbeatUtc: Output? = null

    private var spnDetails: Output? = null

    private var version: Output? = null

    /**
     * @param value Gets the collector agent id.
     */
    @JvmName("rdayamdobwlhfuln")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value Gets the collector last heartbeat time.
     */
    @JvmName("habmamcpxrkwoydc")
    public suspend fun lastHeartbeatUtc(`value`: Output) {
        this.lastHeartbeatUtc = value
    }

    /**
     * @param value Gets or sets the SPN details.
     */
    @JvmName("saqfsxcjtxuphgry")
    public suspend fun spnDetails(`value`: Output) {
        this.spnDetails = value
    }

    /**
     * @param value Gets the collector agent version.
     */
    @JvmName("boifgsmkbtlhtayl")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value Gets the collector agent id.
     */
    @JvmName("gtmbruipipjasebw")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value Gets the collector last heartbeat time.
     */
    @JvmName("djwnedtomhtgsbss")
    public suspend fun lastHeartbeatUtc(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lastHeartbeatUtc = mapped
    }

    /**
     * @param value Gets or sets the SPN details.
     */
    @JvmName("mvhijahwuykpddsu")
    public suspend fun spnDetails(`value`: CollectorAgentSpnPropertiesBaseArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.spnDetails = mapped
    }

    /**
     * @param argument Gets or sets the SPN details.
     */
    @JvmName("kuwjigbuveqyfxcq")
    public suspend fun spnDetails(argument: suspend CollectorAgentSpnPropertiesBaseArgsBuilder.() -> Unit) {
        val toBeMapped = CollectorAgentSpnPropertiesBaseArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.spnDetails = mapped
    }

    /**
     * @param value Gets the collector agent version.
     */
    @JvmName("bmftftcjnugxriqs")
    public suspend fun version(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): CollectorAgentPropertiesBaseArgs = CollectorAgentPropertiesBaseArgs(
        id = id,
        lastHeartbeatUtc = lastHeartbeatUtc,
        spnDetails = spnDetails,
        version = version,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy