![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.dataprotection.kotlin.inputs.DatasourceSetArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.dataprotection.kotlin.inputs
import com.pulumi.azurenative.dataprotection.inputs.DatasourceSetArgs.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
/**
* DatasourceSet details of datasource to be backed up
* @property datasourceType DatasourceType of the resource.
* @property objectType Type of Datasource object, used to initialize the right inherited type
* @property resourceID Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault.
* @property resourceLocation Location of datasource.
* @property resourceName Unique identifier of the resource in the context of parent.
* @property resourceType Resource Type of Datasource.
* @property resourceUri Uri of the resource.
*/
public data class DatasourceSetArgs(
public val datasourceType: Output? = null,
public val objectType: Output? = null,
public val resourceID: Output,
public val resourceLocation: Output? = null,
public val resourceName: Output? = null,
public val resourceType: Output? = null,
public val resourceUri: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.dataprotection.inputs.DatasourceSetArgs =
com.pulumi.azurenative.dataprotection.inputs.DatasourceSetArgs.builder()
.datasourceType(datasourceType?.applyValue({ args0 -> args0 }))
.objectType(objectType?.applyValue({ args0 -> args0 }))
.resourceID(resourceID.applyValue({ args0 -> args0 }))
.resourceLocation(resourceLocation?.applyValue({ args0 -> args0 }))
.resourceName(resourceName?.applyValue({ args0 -> args0 }))
.resourceType(resourceType?.applyValue({ args0 -> args0 }))
.resourceUri(resourceUri?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DatasourceSetArgs].
*/
@PulumiTagMarker
public class DatasourceSetArgsBuilder internal constructor() {
private var datasourceType: Output? = null
private var objectType: Output? = null
private var resourceID: Output? = null
private var resourceLocation: Output? = null
private var resourceName: Output? = null
private var resourceType: Output? = null
private var resourceUri: Output? = null
/**
* @param value DatasourceType of the resource.
*/
@JvmName("ynijevntovlvyemi")
public suspend fun datasourceType(`value`: Output) {
this.datasourceType = value
}
/**
* @param value Type of Datasource object, used to initialize the right inherited type
*/
@JvmName("cfgmhxtlympibdvj")
public suspend fun objectType(`value`: Output) {
this.objectType = value
}
/**
* @param value Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault.
*/
@JvmName("hauqncusxnutptvx")
public suspend fun resourceID(`value`: Output) {
this.resourceID = value
}
/**
* @param value Location of datasource.
*/
@JvmName("ugebibcpfyrtvacw")
public suspend fun resourceLocation(`value`: Output) {
this.resourceLocation = value
}
/**
* @param value Unique identifier of the resource in the context of parent.
*/
@JvmName("gocvaevdyqosheub")
public suspend fun resourceName(`value`: Output) {
this.resourceName = value
}
/**
* @param value Resource Type of Datasource.
*/
@JvmName("qlknotghcexbamjp")
public suspend fun resourceType(`value`: Output) {
this.resourceType = value
}
/**
* @param value Uri of the resource.
*/
@JvmName("nqrfgnlnrbqedkqp")
public suspend fun resourceUri(`value`: Output) {
this.resourceUri = value
}
/**
* @param value DatasourceType of the resource.
*/
@JvmName("lpugpjjtsbgnkuqx")
public suspend fun datasourceType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.datasourceType = mapped
}
/**
* @param value Type of Datasource object, used to initialize the right inherited type
*/
@JvmName("ilawligqkjyssbwp")
public suspend fun objectType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.objectType = mapped
}
/**
* @param value Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault.
*/
@JvmName("exxweokdgnediila")
public suspend fun resourceID(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.resourceID = mapped
}
/**
* @param value Location of datasource.
*/
@JvmName("wqywqlaxcapjgfjd")
public suspend fun resourceLocation(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceLocation = mapped
}
/**
* @param value Unique identifier of the resource in the context of parent.
*/
@JvmName("xvfehinrodvfbbtv")
public suspend fun resourceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceName = mapped
}
/**
* @param value Resource Type of Datasource.
*/
@JvmName("gxawpxbmdmssgxpm")
public suspend fun resourceType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceType = mapped
}
/**
* @param value Uri of the resource.
*/
@JvmName("qrddebcgbbadyftm")
public suspend fun resourceUri(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceUri = mapped
}
internal fun build(): DatasourceSetArgs = DatasourceSetArgs(
datasourceType = datasourceType,
objectType = objectType,
resourceID = resourceID ?: throw PulumiNullFieldException("resourceID"),
resourceLocation = resourceLocation,
resourceName = resourceName,
resourceType = resourceType,
resourceUri = resourceUri,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy