commonMain.aws.sdk.kotlin.services.bedrock.model.GuardrailSensitiveInformationPolicyConfig.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
/**
* Contains details about PII entities and regular expressions to configure for the guardrail.
*/
public class GuardrailSensitiveInformationPolicyConfig private constructor(builder: Builder) {
/**
* A list of PII entities to configure to the guardrail.
*/
public val piiEntitiesConfig: List? = builder.piiEntitiesConfig
/**
* A list of regular expressions to configure to the guardrail.
*/
public val regexesConfig: List? = builder.regexesConfig
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.bedrock.model.GuardrailSensitiveInformationPolicyConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GuardrailSensitiveInformationPolicyConfig(")
append("piiEntitiesConfig=$piiEntitiesConfig,")
append("regexesConfig=$regexesConfig")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = piiEntitiesConfig?.hashCode() ?: 0
result = 31 * result + (regexesConfig?.hashCode() ?: 0)
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 GuardrailSensitiveInformationPolicyConfig
if (piiEntitiesConfig != other.piiEntitiesConfig) return false
if (regexesConfig != other.regexesConfig) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrock.model.GuardrailSensitiveInformationPolicyConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of PII entities to configure to the guardrail.
*/
public var piiEntitiesConfig: List? = null
/**
* A list of regular expressions to configure to the guardrail.
*/
public var regexesConfig: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.bedrock.model.GuardrailSensitiveInformationPolicyConfig) : this() {
this.piiEntitiesConfig = x.piiEntitiesConfig
this.regexesConfig = x.regexesConfig
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrock.model.GuardrailSensitiveInformationPolicyConfig = GuardrailSensitiveInformationPolicyConfig(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy