com.pulumi.digitalocean.kotlin.inputs.GetVolumePlainArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.inputs
import com.pulumi.digitalocean.inputs.GetVolumePlainArgs.builder
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
/**
* A collection of arguments for invoking getVolume.
* @property description Text describing a block storage volume.
* @property name The name of block storage volume.
* @property region The region the block storage volume is provisioned in.
*/
public data class GetVolumePlainArgs(
public val description: String? = null,
public val name: String,
public val region: String? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.GetVolumePlainArgs =
com.pulumi.digitalocean.inputs.GetVolumePlainArgs.builder()
.description(description?.let({ args0 -> args0 }))
.name(name.let({ args0 -> args0 }))
.region(region?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetVolumePlainArgs].
*/
@PulumiTagMarker
public class GetVolumePlainArgsBuilder internal constructor() {
private var description: String? = null
private var name: String? = null
private var region: String? = null
/**
* @param value Text describing a block storage volume.
*/
@JvmName("kkveknwalxgcmiqr")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.description = mapped
}
/**
* @param value The name of block storage volume.
*/
@JvmName("mlmqjmlruisdnfod")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.name = mapped
}
/**
* @param value The region the block storage volume is provisioned in.
*/
@JvmName("vsackyfbiarahkle")
public suspend fun region(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.region = mapped
}
internal fun build(): GetVolumePlainArgs = GetVolumePlainArgs(
description = description,
name = name ?: throw PulumiNullFieldException("name"),
region = region,
)
}