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

com.pulumi.azurenative.containerinstance.kotlin.inputs.ImageRegistryCredentialArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.containerinstance.kotlin.inputs

import com.pulumi.azurenative.containerinstance.inputs.ImageRegistryCredentialArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Image registry credential.
 * @property identity The identity for the private registry.
 * @property identityUrl The identity URL for the private registry.
 * @property password The password for the private registry.
 * @property server The Docker image registry server without a protocol such as "http" and "https".
 * @property username The username for the private registry.
 */
public data class ImageRegistryCredentialArgs(
    public val identity: Output? = null,
    public val identityUrl: Output? = null,
    public val password: Output? = null,
    public val server: Output,
    public val username: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.containerinstance.inputs.ImageRegistryCredentialArgs = com.pulumi.azurenative.containerinstance.inputs.ImageRegistryCredentialArgs.builder()
        .identity(identity?.applyValue({ args0 -> args0 }))
        .identityUrl(identityUrl?.applyValue({ args0 -> args0 }))
        .password(password?.applyValue({ args0 -> args0 }))
        .server(server.applyValue({ args0 -> args0 }))
        .username(username?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ImageRegistryCredentialArgs].
 */
@PulumiTagMarker
public class ImageRegistryCredentialArgsBuilder internal constructor() {
    private var identity: Output? = null

    private var identityUrl: Output? = null

    private var password: Output? = null

    private var server: Output? = null

    private var username: Output? = null

    /**
     * @param value The identity for the private registry.
     */
    @JvmName("sguaygfogfrfcdaq")
    public suspend fun identity(`value`: Output) {
        this.identity = value
    }

    /**
     * @param value The identity URL for the private registry.
     */
    @JvmName("dyqqeppmdsirqccs")
    public suspend fun identityUrl(`value`: Output) {
        this.identityUrl = value
    }

    /**
     * @param value The password for the private registry.
     */
    @JvmName("apmptfewydpwjjuq")
    public suspend fun password(`value`: Output) {
        this.password = value
    }

    /**
     * @param value The Docker image registry server without a protocol such as "http" and "https".
     */
    @JvmName("behitrimiffgyyoe")
    public suspend fun server(`value`: Output) {
        this.server = value
    }

    /**
     * @param value The username for the private registry.
     */
    @JvmName("rfxysiiadmpmltap")
    public suspend fun username(`value`: Output) {
        this.username = value
    }

    /**
     * @param value The identity for the private registry.
     */
    @JvmName("tbstkefncpnwrrml")
    public suspend fun identity(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identity = mapped
    }

    /**
     * @param value The identity URL for the private registry.
     */
    @JvmName("gltwncuhhdjoykra")
    public suspend fun identityUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identityUrl = mapped
    }

    /**
     * @param value The password for the private registry.
     */
    @JvmName("nxdqhkctcyyesfxl")
    public suspend fun password(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.password = mapped
    }

    /**
     * @param value The Docker image registry server without a protocol such as "http" and "https".
     */
    @JvmName("vkxqnelxxjdfnmmf")
    public suspend fun server(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.server = mapped
    }

    /**
     * @param value The username for the private registry.
     */
    @JvmName("iftgjvasxfukfxes")
    public suspend fun username(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.username = mapped
    }

    internal fun build(): ImageRegistryCredentialArgs = ImageRegistryCredentialArgs(
        identity = identity,
        identityUrl = identityUrl,
        password = password,
        server = server ?: throw PulumiNullFieldException("server"),
        username = username,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy