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

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

package com.pulumi.awsnative.location.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.location.RouteCalculatorArgs.builder
import com.pulumi.awsnative.location.kotlin.enums.RouteCalculatorPricingPlan
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::Location::RouteCalculator Resource Type
 * @property calculatorName The name of the route calculator resource.
 * Requirements:
 * - Can use alphanumeric characters (A–Z, a–z, 0–9) , hyphens (-), periods (.), and underscores (_).
 * - Must be a unique Route calculator resource name.
 * - No spaces allowed. For example, `ExampleRouteCalculator` .
 * @property dataSource Specifies the data provider of traffic and road network data.
 * > This field is case-sensitive. Enter the valid values as shown. For example, entering `HERE` returns an error.
 * Valid values include:
 * - `Esri` – For additional information about [Esri](https://docs.aws.amazon.com/location/latest/developerguide/esri.html) 's coverage in your region of interest, see [Esri details on street networks and traffic coverage](https://docs.aws.amazon.com/https://doc.arcgis.com/en/arcgis-online/reference/network-coverage.htm) .
 * Route calculators that use Esri as a data source only calculate routes that are shorter than 400 km.
 * - `Grab` – Grab provides routing functionality for Southeast Asia. For additional information about [GrabMaps](https://docs.aws.amazon.com/location/latest/developerguide/grab.html) ' coverage, see [GrabMaps countries and areas covered](https://docs.aws.amazon.com/location/latest/developerguide/grab.html#grab-coverage-area) .
 * - `Here` – For additional information about [HERE Technologies](https://docs.aws.amazon.com/location/latest/developerguide/HERE.html) ' coverage in your region of interest, see [HERE car routing coverage](https://docs.aws.amazon.com/https://developer.here.com/documentation/routing-api/dev_guide/topics/coverage/car-routing.html) and [HERE truck routing coverage](https://docs.aws.amazon.com/https://developer.here.com/documentation/routing-api/dev_guide/topics/coverage/truck-routing.html) .
 * For additional information , see [Data providers](https://docs.aws.amazon.com/location/latest/developerguide/what-is-data-provider.html) on the *Amazon Location Service Developer Guide* .
 * @property description The optional description for the route calculator resource.
 * @property pricingPlan No longer used. If included, the only allowed value is `RequestBasedUsage` .
 * *Allowed Values* : `RequestBasedUsage`
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class RouteCalculatorArgs(
    public val calculatorName: Output? = null,
    public val dataSource: Output? = null,
    public val description: Output? = null,
    public val pricingPlan: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.location.RouteCalculatorArgs =
        com.pulumi.awsnative.location.RouteCalculatorArgs.builder()
            .calculatorName(calculatorName?.applyValue({ args0 -> args0 }))
            .dataSource(dataSource?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .pricingPlan(pricingPlan?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [RouteCalculatorArgs].
 */
@PulumiTagMarker
public class RouteCalculatorArgsBuilder internal constructor() {
    private var calculatorName: Output? = null

    private var dataSource: Output? = null

    private var description: Output? = null

    private var pricingPlan: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The name of the route calculator resource.
     * Requirements:
     * - Can use alphanumeric characters (A–Z, a–z, 0–9) , hyphens (-), periods (.), and underscores (_).
     * - Must be a unique Route calculator resource name.
     * - No spaces allowed. For example, `ExampleRouteCalculator` .
     */
    @JvmName("wqfcwpmqhonkpehp")
    public suspend fun calculatorName(`value`: Output) {
        this.calculatorName = value
    }

    /**
     * @param value Specifies the data provider of traffic and road network data.
     * > This field is case-sensitive. Enter the valid values as shown. For example, entering `HERE` returns an error.
     * Valid values include:
     * - `Esri` – For additional information about [Esri](https://docs.aws.amazon.com/location/latest/developerguide/esri.html) 's coverage in your region of interest, see [Esri details on street networks and traffic coverage](https://docs.aws.amazon.com/https://doc.arcgis.com/en/arcgis-online/reference/network-coverage.htm) .
     * Route calculators that use Esri as a data source only calculate routes that are shorter than 400 km.
     * - `Grab` – Grab provides routing functionality for Southeast Asia. For additional information about [GrabMaps](https://docs.aws.amazon.com/location/latest/developerguide/grab.html) ' coverage, see [GrabMaps countries and areas covered](https://docs.aws.amazon.com/location/latest/developerguide/grab.html#grab-coverage-area) .
     * - `Here` – For additional information about [HERE Technologies](https://docs.aws.amazon.com/location/latest/developerguide/HERE.html) ' coverage in your region of interest, see [HERE car routing coverage](https://docs.aws.amazon.com/https://developer.here.com/documentation/routing-api/dev_guide/topics/coverage/car-routing.html) and [HERE truck routing coverage](https://docs.aws.amazon.com/https://developer.here.com/documentation/routing-api/dev_guide/topics/coverage/truck-routing.html) .
     * For additional information , see [Data providers](https://docs.aws.amazon.com/location/latest/developerguide/what-is-data-provider.html) on the *Amazon Location Service Developer Guide* .
     */
    @JvmName("uwxvljxjjtssbhpt")
    public suspend fun dataSource(`value`: Output) {
        this.dataSource = value
    }

    /**
     * @param value The optional description for the route calculator resource.
     */
    @JvmName("diwuklhaxsuuhlil")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value No longer used. If included, the only allowed value is `RequestBasedUsage` .
     * *Allowed Values* : `RequestBasedUsage`
     */
    @JvmName("etlfmgkowootnobe")
    public suspend fun pricingPlan(`value`: Output) {
        this.pricingPlan = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("murnickcwfsiirgy")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("gwntkuskbfudtbgt")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The name of the route calculator resource.
     * Requirements:
     * - Can use alphanumeric characters (A–Z, a–z, 0–9) , hyphens (-), periods (.), and underscores (_).
     * - Must be a unique Route calculator resource name.
     * - No spaces allowed. For example, `ExampleRouteCalculator` .
     */
    @JvmName("ffnasbtxwracelvh")
    public suspend fun calculatorName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.calculatorName = mapped
    }

    /**
     * @param value Specifies the data provider of traffic and road network data.
     * > This field is case-sensitive. Enter the valid values as shown. For example, entering `HERE` returns an error.
     * Valid values include:
     * - `Esri` – For additional information about [Esri](https://docs.aws.amazon.com/location/latest/developerguide/esri.html) 's coverage in your region of interest, see [Esri details on street networks and traffic coverage](https://docs.aws.amazon.com/https://doc.arcgis.com/en/arcgis-online/reference/network-coverage.htm) .
     * Route calculators that use Esri as a data source only calculate routes that are shorter than 400 km.
     * - `Grab` – Grab provides routing functionality for Southeast Asia. For additional information about [GrabMaps](https://docs.aws.amazon.com/location/latest/developerguide/grab.html) ' coverage, see [GrabMaps countries and areas covered](https://docs.aws.amazon.com/location/latest/developerguide/grab.html#grab-coverage-area) .
     * - `Here` – For additional information about [HERE Technologies](https://docs.aws.amazon.com/location/latest/developerguide/HERE.html) ' coverage in your region of interest, see [HERE car routing coverage](https://docs.aws.amazon.com/https://developer.here.com/documentation/routing-api/dev_guide/topics/coverage/car-routing.html) and [HERE truck routing coverage](https://docs.aws.amazon.com/https://developer.here.com/documentation/routing-api/dev_guide/topics/coverage/truck-routing.html) .
     * For additional information , see [Data providers](https://docs.aws.amazon.com/location/latest/developerguide/what-is-data-provider.html) on the *Amazon Location Service Developer Guide* .
     */
    @JvmName("gvukghjmahobsvcc")
    public suspend fun dataSource(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataSource = mapped
    }

    /**
     * @param value The optional description for the route calculator resource.
     */
    @JvmName("yrexwjodllgxytox")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value No longer used. If included, the only allowed value is `RequestBasedUsage` .
     * *Allowed Values* : `RequestBasedUsage`
     */
    @JvmName("bfjetqisbxdesfge")
    public suspend fun pricingPlan(`value`: RouteCalculatorPricingPlan?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pricingPlan = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("qosxesuothslkfhp")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("ileklvyilyitknph")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("nmcbacysxuwdrjkb")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("oefimqiuvdvxeelm")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("oafmbohrjgkltrck")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): RouteCalculatorArgs = RouteCalculatorArgs(
        calculatorName = calculatorName,
        dataSource = dataSource,
        description = description,
        pricingPlan = pricingPlan,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy