commonMain.aws.sdk.kotlin.services.bedrock.model.GuardrailManagedWords.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bedrock-jvm Show documentation
Show all versions of bedrock-jvm Show documentation
The AWS SDK for Kotlin client for Bedrock
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrock.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The managed word list that was configured for the guardrail. (This is a list of words that are pre-defined and managed by Guardrails only.)
*/
public class GuardrailManagedWords private constructor(builder: Builder) {
/**
* ManagedWords$type The managed word type that was configured for the guardrail. (For now, we only offer profanity word list)
*/
public val type: aws.sdk.kotlin.services.bedrock.model.GuardrailManagedWordsType = requireNotNull(builder.type) { "A non-null value must be provided for type" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.bedrock.model.GuardrailManagedWords = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GuardrailManagedWords(")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = type.hashCode()
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as GuardrailManagedWords
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrock.model.GuardrailManagedWords = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* ManagedWords$type The managed word type that was configured for the guardrail. (For now, we only offer profanity word list)
*/
public var type: aws.sdk.kotlin.services.bedrock.model.GuardrailManagedWordsType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.bedrock.model.GuardrailManagedWords) : this() {
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrock.model.GuardrailManagedWords = GuardrailManagedWords(this)
internal fun correctErrors(): Builder {
if (type == null) type = GuardrailManagedWordsType.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy