
com.pulumi.azurenative.apimanagement.kotlin.inputs.ResourceLocationDataContractArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.apimanagement.kotlin.inputs
import com.pulumi.azurenative.apimanagement.inputs.ResourceLocationDataContractArgs.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
/**
* Resource location data properties.
* @property city The city or locality where the resource is located.
* @property countryOrRegion The country or region where the resource is located.
* @property district The district, state, or province where the resource is located.
* @property name A canonical name for the geographic or physical location.
*/
public data class ResourceLocationDataContractArgs(
public val city: Output? = null,
public val countryOrRegion: Output? = null,
public val district: Output? = null,
public val name: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.apimanagement.inputs.ResourceLocationDataContractArgs =
com.pulumi.azurenative.apimanagement.inputs.ResourceLocationDataContractArgs.builder()
.city(city?.applyValue({ args0 -> args0 }))
.countryOrRegion(countryOrRegion?.applyValue({ args0 -> args0 }))
.district(district?.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ResourceLocationDataContractArgs].
*/
@PulumiTagMarker
public class ResourceLocationDataContractArgsBuilder internal constructor() {
private var city: Output? = null
private var countryOrRegion: Output? = null
private var district: Output? = null
private var name: Output? = null
/**
* @param value The city or locality where the resource is located.
*/
@JvmName("hsdkshmgytorgckt")
public suspend fun city(`value`: Output) {
this.city = value
}
/**
* @param value The country or region where the resource is located.
*/
@JvmName("bcxpwpleejimbpni")
public suspend fun countryOrRegion(`value`: Output) {
this.countryOrRegion = value
}
/**
* @param value The district, state, or province where the resource is located.
*/
@JvmName("ucoxdcjafcbufdtt")
public suspend fun district(`value`: Output) {
this.district = value
}
/**
* @param value A canonical name for the geographic or physical location.
*/
@JvmName("vrxpeyibacivbgtd")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The city or locality where the resource is located.
*/
@JvmName("vidmwkvvptsfrymq")
public suspend fun city(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.city = mapped
}
/**
* @param value The country or region where the resource is located.
*/
@JvmName("xcubrvbbeaodudyb")
public suspend fun countryOrRegion(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.countryOrRegion = mapped
}
/**
* @param value The district, state, or province where the resource is located.
*/
@JvmName("gllnrxgfgstihmti")
public suspend fun district(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.district = mapped
}
/**
* @param value A canonical name for the geographic or physical location.
*/
@JvmName("ebtilcsxtxjyqlfs")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): ResourceLocationDataContractArgs = ResourceLocationDataContractArgs(
city = city,
countryOrRegion = countryOrRegion,
district = district,
name = name ?: throw PulumiNullFieldException("name"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy