
com.pulumi.awsnative.opensearchserverless.kotlin.inputs.GetLifecyclePolicyPlainArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.opensearchserverless.kotlin.inputs
import com.pulumi.awsnative.opensearchserverless.inputs.GetLifecyclePolicyPlainArgs.builder
import com.pulumi.awsnative.opensearchserverless.kotlin.enums.LifecyclePolicyType
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
/**
*
* @property name The name of the policy
* @property type The type of lifecycle policy.
*/
public data class GetLifecyclePolicyPlainArgs(
public val name: String,
public val type: LifecyclePolicyType,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.opensearchserverless.inputs.GetLifecyclePolicyPlainArgs =
com.pulumi.awsnative.opensearchserverless.inputs.GetLifecyclePolicyPlainArgs.builder()
.name(name.let({ args0 -> args0 }))
.type(type.let({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [GetLifecyclePolicyPlainArgs].
*/
@PulumiTagMarker
public class GetLifecyclePolicyPlainArgsBuilder internal constructor() {
private var name: String? = null
private var type: LifecyclePolicyType? = null
/**
* @param value The name of the policy
*/
@JvmName("ghgsvltgqqbrlsbc")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.name = mapped
}
/**
* @param value The type of lifecycle policy.
*/
@JvmName("jqifrgpbncvcpkkd")
public suspend fun type(`value`: LifecyclePolicyType) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.type = mapped
}
internal fun build(): GetLifecyclePolicyPlainArgs = GetLifecyclePolicyPlainArgs(
name = name ?: throw PulumiNullFieldException("name"),
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy