commonMain.aws.sdk.kotlin.services.bedrock.model.GetGuardrailRequest.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
public class GetGuardrailRequest private constructor(builder: Builder) {
/**
* The unique identifier of the guardrail for which to get details.
*/
public val guardrailIdentifier: kotlin.String? = builder.guardrailIdentifier
/**
* The version of the guardrail for which to get details. If you don't specify a version, the response returns details for the `DRAFT` version.
*/
public val guardrailVersion: kotlin.String? = builder.guardrailVersion
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.bedrock.model.GetGuardrailRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetGuardrailRequest(")
append("guardrailIdentifier=$guardrailIdentifier,")
append("guardrailVersion=$guardrailVersion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = guardrailIdentifier?.hashCode() ?: 0
result = 31 * result + (guardrailVersion?.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 GetGuardrailRequest
if (guardrailIdentifier != other.guardrailIdentifier) return false
if (guardrailVersion != other.guardrailVersion) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrock.model.GetGuardrailRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique identifier of the guardrail for which to get details.
*/
public var guardrailIdentifier: kotlin.String? = null
/**
* The version of the guardrail for which to get details. If you don't specify a version, the response returns details for the `DRAFT` version.
*/
public var guardrailVersion: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.bedrock.model.GetGuardrailRequest) : this() {
this.guardrailIdentifier = x.guardrailIdentifier
this.guardrailVersion = x.guardrailVersion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrock.model.GetGuardrailRequest = GetGuardrailRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy