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

com.pulumi.gcp.artifactregistry.kotlin.inputs.GetRepositoryPlainArgs.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: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.artifactregistry.kotlin.inputs

import com.pulumi.gcp.artifactregistry.inputs.GetRepositoryPlainArgs.builder
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

/**
 * A collection of arguments for invoking getRepository.
 * @property location The location of the artifact registry repository. eg us-central1
 * - - -
 * @property project The project in which the resource belongs. If it
 * is not provided, the provider project is used.
 * @property repositoryId The last part of the repository name.
 */
public data class GetRepositoryPlainArgs(
    public val location: String,
    public val project: String? = null,
    public val repositoryId: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.artifactregistry.inputs.GetRepositoryPlainArgs =
        com.pulumi.gcp.artifactregistry.inputs.GetRepositoryPlainArgs.builder()
            .location(location.let({ args0 -> args0 }))
            .project(project?.let({ args0 -> args0 }))
            .repositoryId(repositoryId.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetRepositoryPlainArgs].
 */
@PulumiTagMarker
public class GetRepositoryPlainArgsBuilder internal constructor() {
    private var location: String? = null

    private var project: String? = null

    private var repositoryId: String? = null

    /**
     * @param value The location of the artifact registry repository. eg us-central1
     * - - -
     */
    @JvmName("jeidohiccfrgcldg")
    public suspend fun location(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.location = mapped
    }

    /**
     * @param value The project in which the resource belongs. If it
     * is not provided, the provider project is used.
     */
    @JvmName("gaioogiqerysorsm")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.project = mapped
    }

    /**
     * @param value The last part of the repository name.
     */
    @JvmName("pvmvpddkeiluooie")
    public suspend fun repositoryId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.repositoryId = mapped
    }

    internal fun build(): GetRepositoryPlainArgs = GetRepositoryPlainArgs(
        location = location ?: throw PulumiNullFieldException("location"),
        project = project,
        repositoryId = repositoryId ?: throw PulumiNullFieldException("repositoryId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy