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

com.pulumi.awsnative.refactorspaces.kotlin.RouteArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.refactorspaces.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.refactorspaces.RouteArgs.builder
import com.pulumi.awsnative.refactorspaces.kotlin.enums.RouteType
import com.pulumi.awsnative.refactorspaces.kotlin.inputs.RouteDefaultRouteInputArgs
import com.pulumi.awsnative.refactorspaces.kotlin.inputs.RouteDefaultRouteInputArgsBuilder
import com.pulumi.awsnative.refactorspaces.kotlin.inputs.RouteUriPathRouteInputArgs
import com.pulumi.awsnative.refactorspaces.kotlin.inputs.RouteUriPathRouteInputArgsBuilder
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

/**
 * Definition of AWS::RefactorSpaces::Route Resource Type
 * @property applicationIdentifier The unique identifier of the application.
 * @property defaultRoute Configuration for the default route type.
 * @property environmentIdentifier The unique identifier of the environment.
 * @property routeType The route type of the route.
 * @property serviceIdentifier The unique identifier of the service.
 * @property tags Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
 * @property uriPathRoute The configuration for the URI path route type.
 */
public data class RouteArgs(
    public val applicationIdentifier: Output? = null,
    public val defaultRoute: Output? = null,
    public val environmentIdentifier: Output? = null,
    public val routeType: Output? = null,
    public val serviceIdentifier: Output? = null,
    public val tags: Output>? = null,
    public val uriPathRoute: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.refactorspaces.RouteArgs =
        com.pulumi.awsnative.refactorspaces.RouteArgs.builder()
            .applicationIdentifier(applicationIdentifier?.applyValue({ args0 -> args0 }))
            .defaultRoute(defaultRoute?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .environmentIdentifier(environmentIdentifier?.applyValue({ args0 -> args0 }))
            .routeType(routeType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .serviceIdentifier(serviceIdentifier?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .uriPathRoute(uriPathRoute?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [RouteArgs].
 */
@PulumiTagMarker
public class RouteArgsBuilder internal constructor() {
    private var applicationIdentifier: Output? = null

    private var defaultRoute: Output? = null

    private var environmentIdentifier: Output? = null

    private var routeType: Output? = null

    private var serviceIdentifier: Output? = null

    private var tags: Output>? = null

    private var uriPathRoute: Output? = null

    /**
     * @param value The unique identifier of the application.
     */
    @JvmName("bifvdqvecwdyrovj")
    public suspend fun applicationIdentifier(`value`: Output) {
        this.applicationIdentifier = value
    }

    /**
     * @param value Configuration for the default route type.
     */
    @JvmName("ylvjjmpkversgjys")
    public suspend fun defaultRoute(`value`: Output) {
        this.defaultRoute = value
    }

    /**
     * @param value The unique identifier of the environment.
     */
    @JvmName("yjheuckepgmpoxkk")
    public suspend fun environmentIdentifier(`value`: Output) {
        this.environmentIdentifier = value
    }

    /**
     * @param value The route type of the route.
     */
    @JvmName("nrugglhfuvsomdmu")
    public suspend fun routeType(`value`: Output) {
        this.routeType = value
    }

    /**
     * @param value The unique identifier of the service.
     */
    @JvmName("tqbfmbofrexasydh")
    public suspend fun serviceIdentifier(`value`: Output) {
        this.serviceIdentifier = value
    }

    /**
     * @param value Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("sfvkryhwhxlwarxj")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("hnokkoteufsrllei")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The configuration for the URI path route type.
     */
    @JvmName("dndihphfxbqxbsbu")
    public suspend fun uriPathRoute(`value`: Output) {
        this.uriPathRoute = value
    }

    /**
     * @param value The unique identifier of the application.
     */
    @JvmName("qsnjrfgjtuvthlnr")
    public suspend fun applicationIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationIdentifier = mapped
    }

    /**
     * @param value Configuration for the default route type.
     */
    @JvmName("haftchkciknjdyfq")
    public suspend fun defaultRoute(`value`: RouteDefaultRouteInputArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultRoute = mapped
    }

    /**
     * @param argument Configuration for the default route type.
     */
    @JvmName("ruclvbknywivirte")
    public suspend fun defaultRoute(argument: suspend RouteDefaultRouteInputArgsBuilder.() -> Unit) {
        val toBeMapped = RouteDefaultRouteInputArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.defaultRoute = mapped
    }

    /**
     * @param value The unique identifier of the environment.
     */
    @JvmName("pgfpaemrkfbxinoq")
    public suspend fun environmentIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environmentIdentifier = mapped
    }

    /**
     * @param value The route type of the route.
     */
    @JvmName("ponflynuvvlhksfx")
    public suspend fun routeType(`value`: RouteType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.routeType = mapped
    }

    /**
     * @param value The unique identifier of the service.
     */
    @JvmName("akxjnavursjfbvke")
    public suspend fun serviceIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceIdentifier = mapped
    }

    /**
     * @param value Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("qavskpmybmoqtqvh")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("mvujpngxwdpyrypf")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("pgteuayrjoixsxne")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("ynvcyfbdunkyusbo")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
     */
    @JvmName("issbvurmkljqujrp")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The configuration for the URI path route type.
     */
    @JvmName("ffpuycewllhreowd")
    public suspend fun uriPathRoute(`value`: RouteUriPathRouteInputArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.uriPathRoute = mapped
    }

    /**
     * @param argument The configuration for the URI path route type.
     */
    @JvmName("havajybxjuufssib")
    public suspend fun uriPathRoute(argument: suspend RouteUriPathRouteInputArgsBuilder.() -> Unit) {
        val toBeMapped = RouteUriPathRouteInputArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.uriPathRoute = mapped
    }

    internal fun build(): RouteArgs = RouteArgs(
        applicationIdentifier = applicationIdentifier,
        defaultRoute = defaultRoute,
        environmentIdentifier = environmentIdentifier,
        routeType = routeType,
        serviceIdentifier = serviceIdentifier,
        tags = tags,
        uriPathRoute = uriPathRoute,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy