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

com.pulumi.awsnative.codegurureviewer.kotlin.RepositoryAssociationArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.codegurureviewer.kotlin

import com.pulumi.awsnative.codegurureviewer.RepositoryAssociationArgs.builder
import com.pulumi.awsnative.codegurureviewer.kotlin.enums.RepositoryAssociationType
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgs
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgsBuilder
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.collections.List
import kotlin.jvm.JvmName

/**
 * This resource schema represents the RepositoryAssociation resource in the Amazon CodeGuru Reviewer service.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property bucketName The name of the S3 bucket associated with an associated S3 repository. It must start with `codeguru-reviewer-`.
 * @property connectionArn The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
 * @property name Name of the repository to be associated.
 * @property owner The owner of the repository. For a Bitbucket repository, this is the username for the account that owns the repository.
 * @property tags The tags associated with a repository association.
 * @property type The type of repository to be associated.
 */
public data class RepositoryAssociationArgs(
    public val bucketName: Output? = null,
    public val connectionArn: Output? = null,
    public val name: Output? = null,
    public val owner: Output? = null,
    public val tags: Output>? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.codegurureviewer.RepositoryAssociationArgs =
        com.pulumi.awsnative.codegurureviewer.RepositoryAssociationArgs.builder()
            .bucketName(bucketName?.applyValue({ args0 -> args0 }))
            .connectionArn(connectionArn?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .owner(owner?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [RepositoryAssociationArgs].
 */
@PulumiTagMarker
public class RepositoryAssociationArgsBuilder internal constructor() {
    private var bucketName: Output? = null

    private var connectionArn: Output? = null

    private var name: Output? = null

    private var owner: Output? = null

    private var tags: Output>? = null

    private var type: Output? = null

    /**
     * @param value The name of the S3 bucket associated with an associated S3 repository. It must start with `codeguru-reviewer-`.
     */
    @JvmName("ebdnleogcpkdqcof")
    public suspend fun bucketName(`value`: Output) {
        this.bucketName = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
     */
    @JvmName("wjjjkwauvunfdixd")
    public suspend fun connectionArn(`value`: Output) {
        this.connectionArn = value
    }

    /**
     * @param value Name of the repository to be associated.
     */
    @JvmName("xvxkstpkmshpqgav")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The owner of the repository. For a Bitbucket repository, this is the username for the account that owns the repository.
     */
    @JvmName("yqnehrluprrmqrxi")
    public suspend fun owner(`value`: Output) {
        this.owner = value
    }

    /**
     * @param value The tags associated with a repository association.
     */
    @JvmName("oexhgdcqppwffgog")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("itoqnitaipvtmoqn")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values The tags associated with a repository association.
     */
    @JvmName("cjiwbskhfwqircyd")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The type of repository to be associated.
     */
    @JvmName("hccclbvlgcnqqneo")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The name of the S3 bucket associated with an associated S3 repository. It must start with `codeguru-reviewer-`.
     */
    @JvmName("xkcoqfuvtounnqbq")
    public suspend fun bucketName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bucketName = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.
     */
    @JvmName("hnqtxatryitqaqae")
    public suspend fun connectionArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connectionArn = mapped
    }

    /**
     * @param value Name of the repository to be associated.
     */
    @JvmName("wabagajtdnqwtpyu")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The owner of the repository. For a Bitbucket repository, this is the username for the account that owns the repository.
     */
    @JvmName("rfhbbivsnwytwyqi")
    public suspend fun owner(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.owner = mapped
    }

    /**
     * @param value The tags associated with a repository association.
     */
    @JvmName("mbnvdlspemptjkxy")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags associated with a repository association.
     */
    @JvmName("jvouwcolopjkbahb")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags associated with a repository association.
     */
    @JvmName("ycxxylwrmgkkfxft")
    public suspend fun tags(vararg argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags associated with a repository association.
     */
    @JvmName("jisyupktemjdrksd")
    public suspend fun tags(argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(CreateOnlyTagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags associated with a repository association.
     */
    @JvmName("eplajtjuulsbumix")
    public suspend fun tags(vararg values: CreateOnlyTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The type of repository to be associated.
     */
    @JvmName("yxevovantakdecjs")
    public suspend fun type(`value`: RepositoryAssociationType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): RepositoryAssociationArgs = RepositoryAssociationArgs(
        bucketName = bucketName,
        connectionArn = connectionArn,
        name = name,
        owner = owner,
        tags = tags,
        type = type,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy