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

com.pulumi.azurenative.powerbidedicated.kotlin.inputs.SystemDataArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.powerbidedicated.kotlin.inputs

import com.pulumi.azurenative.powerbidedicated.inputs.SystemDataArgs.builder
import com.pulumi.azurenative.powerbidedicated.kotlin.enums.IdentityType
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Metadata pertaining to creation and last modification of the resource.
 * @property createdAt The timestamp of resource creation (UTC)
 * @property createdBy An identifier for the identity that created the resource
 * @property createdByType The type of identity that created the resource
 * @property lastModifiedAt The timestamp of resource last modification (UTC)
 * @property lastModifiedBy An identifier for the identity that last modified the resource
 * @property lastModifiedByType The type of identity that last modified the resource
 */
public data class SystemDataArgs(
    public val createdAt: Output? = null,
    public val createdBy: Output? = null,
    public val createdByType: Output>? = null,
    public val lastModifiedAt: Output? = null,
    public val lastModifiedBy: Output? = null,
    public val lastModifiedByType: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.powerbidedicated.inputs.SystemDataArgs =
        com.pulumi.azurenative.powerbidedicated.inputs.SystemDataArgs.builder()
            .createdAt(createdAt?.applyValue({ args0 -> args0 }))
            .createdBy(createdBy?.applyValue({ args0 -> args0 }))
            .createdByType(
                createdByType?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .lastModifiedAt(lastModifiedAt?.applyValue({ args0 -> args0 }))
            .lastModifiedBy(lastModifiedBy?.applyValue({ args0 -> args0 }))
            .lastModifiedByType(
                lastModifiedByType?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            ).build()
}

/**
 * Builder for [SystemDataArgs].
 */
@PulumiTagMarker
public class SystemDataArgsBuilder internal constructor() {
    private var createdAt: Output? = null

    private var createdBy: Output? = null

    private var createdByType: Output>? = null

    private var lastModifiedAt: Output? = null

    private var lastModifiedBy: Output? = null

    private var lastModifiedByType: Output>? = null

    /**
     * @param value The timestamp of resource creation (UTC)
     */
    @JvmName("lbpkldabicrkphuh")
    public suspend fun createdAt(`value`: Output) {
        this.createdAt = value
    }

    /**
     * @param value An identifier for the identity that created the resource
     */
    @JvmName("gpxpsgaxbfcjqqyv")
    public suspend fun createdBy(`value`: Output) {
        this.createdBy = value
    }

    /**
     * @param value The type of identity that created the resource
     */
    @JvmName("kklvpfcqddjkadbi")
    public suspend fun createdByType(`value`: Output>) {
        this.createdByType = value
    }

    /**
     * @param value The timestamp of resource last modification (UTC)
     */
    @JvmName("rfdhvimdlifbjoqn")
    public suspend fun lastModifiedAt(`value`: Output) {
        this.lastModifiedAt = value
    }

    /**
     * @param value An identifier for the identity that last modified the resource
     */
    @JvmName("hfnjyuitxgtrdmjl")
    public suspend fun lastModifiedBy(`value`: Output) {
        this.lastModifiedBy = value
    }

    /**
     * @param value The type of identity that last modified the resource
     */
    @JvmName("xvjfnopkvvxendgu")
    public suspend fun lastModifiedByType(`value`: Output>) {
        this.lastModifiedByType = value
    }

    /**
     * @param value The timestamp of resource creation (UTC)
     */
    @JvmName("nhwjxtsgfciakfnc")
    public suspend fun createdAt(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.createdAt = mapped
    }

    /**
     * @param value An identifier for the identity that created the resource
     */
    @JvmName("rkrppifkjfqqrhob")
    public suspend fun createdBy(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.createdBy = mapped
    }

    /**
     * @param value The type of identity that created the resource
     */
    @JvmName("oocwrickvicibawc")
    public suspend fun createdByType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.createdByType = mapped
    }

    /**
     * @param value The type of identity that created the resource
     */
    @JvmName("pejmrbfwbrorycxc")
    public fun createdByType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.createdByType = mapped
    }

    /**
     * @param value The type of identity that created the resource
     */
    @JvmName("comkihjaucpsextu")
    public fun createdByType(`value`: IdentityType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.createdByType = mapped
    }

    /**
     * @param value The timestamp of resource last modification (UTC)
     */
    @JvmName("lsaqscgtpoeyqmhe")
    public suspend fun lastModifiedAt(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lastModifiedAt = mapped
    }

    /**
     * @param value An identifier for the identity that last modified the resource
     */
    @JvmName("hyptyeupybtiwpub")
    public suspend fun lastModifiedBy(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lastModifiedBy = mapped
    }

    /**
     * @param value The type of identity that last modified the resource
     */
    @JvmName("wgqejgxwihhcpryx")
    public suspend fun lastModifiedByType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lastModifiedByType = mapped
    }

    /**
     * @param value The type of identity that last modified the resource
     */
    @JvmName("jrrkyyjgkqddwlvq")
    public fun lastModifiedByType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.lastModifiedByType = mapped
    }

    /**
     * @param value The type of identity that last modified the resource
     */
    @JvmName("nooahfqdqjawxltf")
    public fun lastModifiedByType(`value`: IdentityType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.lastModifiedByType = mapped
    }

    internal fun build(): SystemDataArgs = SystemDataArgs(
        createdAt = createdAt,
        createdBy = createdBy,
        createdByType = createdByType,
        lastModifiedAt = lastModifiedAt,
        lastModifiedBy = lastModifiedBy,
        lastModifiedByType = lastModifiedByType,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy