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

com.pulumi.azure.containerservice.kotlin.inputs.GroupImageRegistryCredentialArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.containerservice.kotlin.inputs

import com.pulumi.azure.containerservice.inputs.GroupImageRegistryCredentialArgs.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

/**
 *
 * @property password The password with which to connect to the registry. Changing this forces a new resource to be created.
 * @property server The address to use to connect to the registry without protocol ("https"/"http"). For example: "myacr.acr.io". Changing this forces a new resource to be created.
 * @property userAssignedIdentityId The identity ID for the private registry. Changing this forces a new resource to be created.
 * @property username The username with which to connect to the registry. Changing this forces a new resource to be created.
 */
public data class GroupImageRegistryCredentialArgs(
    public val password: Output? = null,
    public val server: Output,
    public val userAssignedIdentityId: Output? = null,
    public val username: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.containerservice.inputs.GroupImageRegistryCredentialArgs =
        com.pulumi.azure.containerservice.inputs.GroupImageRegistryCredentialArgs.builder()
            .password(password?.applyValue({ args0 -> args0 }))
            .server(server.applyValue({ args0 -> args0 }))
            .userAssignedIdentityId(userAssignedIdentityId?.applyValue({ args0 -> args0 }))
            .username(username?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GroupImageRegistryCredentialArgs].
 */
@PulumiTagMarker
public class GroupImageRegistryCredentialArgsBuilder internal constructor() {
    private var password: Output? = null

    private var server: Output? = null

    private var userAssignedIdentityId: Output? = null

    private var username: Output? = null

    /**
     * @param value The password with which to connect to the registry. Changing this forces a new resource to be created.
     */
    @JvmName("xuufdtbocrkecvgf")
    public suspend fun password(`value`: Output) {
        this.password = value
    }

    /**
     * @param value The address to use to connect to the registry without protocol ("https"/"http"). For example: "myacr.acr.io". Changing this forces a new resource to be created.
     */
    @JvmName("pdvbwndicchnucqt")
    public suspend fun server(`value`: Output) {
        this.server = value
    }

    /**
     * @param value The identity ID for the private registry. Changing this forces a new resource to be created.
     */
    @JvmName("gfvbfveelpcasnlm")
    public suspend fun userAssignedIdentityId(`value`: Output) {
        this.userAssignedIdentityId = value
    }

    /**
     * @param value The username with which to connect to the registry. Changing this forces a new resource to be created.
     */
    @JvmName("wwqdflnonxlyakhw")
    public suspend fun username(`value`: Output) {
        this.username = value
    }

    /**
     * @param value The password with which to connect to the registry. Changing this forces a new resource to be created.
     */
    @JvmName("vhubdtpxcoupyjrw")
    public suspend fun password(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.password = mapped
    }

    /**
     * @param value The address to use to connect to the registry without protocol ("https"/"http"). For example: "myacr.acr.io". Changing this forces a new resource to be created.
     */
    @JvmName("iksfavpomfnpqgky")
    public suspend fun server(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.server = mapped
    }

    /**
     * @param value The identity ID for the private registry. Changing this forces a new resource to be created.
     */
    @JvmName("rvakltafytslrjqk")
    public suspend fun userAssignedIdentityId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userAssignedIdentityId = mapped
    }

    /**
     * @param value The username with which to connect to the registry. Changing this forces a new resource to be created.
     */
    @JvmName("ilowsdplfhufplhi")
    public suspend fun username(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.username = mapped
    }

    internal fun build(): GroupImageRegistryCredentialArgs = GroupImageRegistryCredentialArgs(
        password = password,
        server = server ?: throw PulumiNullFieldException("server"),
        userAssignedIdentityId = userAssignedIdentityId,
        username = username,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy