
commonMain.aws.sdk.kotlin.services.bedrock.model.LoggingConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrock.model
/**
* Configuration fields for invokation logging.
*/
public class LoggingConfig private constructor(builder: Builder) {
/**
* CloudWatch logging configuration.
*/
public val cloudWatchConfig: aws.sdk.kotlin.services.bedrock.model.CloudWatchConfig? = builder.cloudWatchConfig
/**
* Set to include embeddings data in the log delivery.
*/
public val embeddingDataDeliveryEnabled: kotlin.Boolean? = builder.embeddingDataDeliveryEnabled
/**
* Set to include image data in the log delivery.
*/
public val imageDataDeliveryEnabled: kotlin.Boolean? = builder.imageDataDeliveryEnabled
/**
* S3 configuration for storing log data.
*/
public val s3Config: aws.sdk.kotlin.services.bedrock.model.S3Config? = builder.s3Config
/**
* Set to include text data in the log delivery.
*/
public val textDataDeliveryEnabled: kotlin.Boolean? = builder.textDataDeliveryEnabled
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.bedrock.model.LoggingConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LoggingConfig(")
append("cloudWatchConfig=$cloudWatchConfig,")
append("embeddingDataDeliveryEnabled=$embeddingDataDeliveryEnabled,")
append("imageDataDeliveryEnabled=$imageDataDeliveryEnabled,")
append("s3Config=$s3Config,")
append("textDataDeliveryEnabled=$textDataDeliveryEnabled")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cloudWatchConfig?.hashCode() ?: 0
result = 31 * result + (embeddingDataDeliveryEnabled?.hashCode() ?: 0)
result = 31 * result + (imageDataDeliveryEnabled?.hashCode() ?: 0)
result = 31 * result + (s3Config?.hashCode() ?: 0)
result = 31 * result + (textDataDeliveryEnabled?.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 LoggingConfig
if (cloudWatchConfig != other.cloudWatchConfig) return false
if (embeddingDataDeliveryEnabled != other.embeddingDataDeliveryEnabled) return false
if (imageDataDeliveryEnabled != other.imageDataDeliveryEnabled) return false
if (s3Config != other.s3Config) return false
if (textDataDeliveryEnabled != other.textDataDeliveryEnabled) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrock.model.LoggingConfig = Builder(this).apply(block).build()
public class Builder {
/**
* CloudWatch logging configuration.
*/
public var cloudWatchConfig: aws.sdk.kotlin.services.bedrock.model.CloudWatchConfig? = null
/**
* Set to include embeddings data in the log delivery.
*/
public var embeddingDataDeliveryEnabled: kotlin.Boolean? = null
/**
* Set to include image data in the log delivery.
*/
public var imageDataDeliveryEnabled: kotlin.Boolean? = null
/**
* S3 configuration for storing log data.
*/
public var s3Config: aws.sdk.kotlin.services.bedrock.model.S3Config? = null
/**
* Set to include text data in the log delivery.
*/
public var textDataDeliveryEnabled: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.bedrock.model.LoggingConfig) : this() {
this.cloudWatchConfig = x.cloudWatchConfig
this.embeddingDataDeliveryEnabled = x.embeddingDataDeliveryEnabled
this.imageDataDeliveryEnabled = x.imageDataDeliveryEnabled
this.s3Config = x.s3Config
this.textDataDeliveryEnabled = x.textDataDeliveryEnabled
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrock.model.LoggingConfig = LoggingConfig(this)
/**
* construct an [aws.sdk.kotlin.services.bedrock.model.CloudWatchConfig] inside the given [block]
*/
public fun cloudWatchConfig(block: aws.sdk.kotlin.services.bedrock.model.CloudWatchConfig.Builder.() -> kotlin.Unit) {
this.cloudWatchConfig = aws.sdk.kotlin.services.bedrock.model.CloudWatchConfig.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.bedrock.model.S3Config] inside the given [block]
*/
public fun s3Config(block: aws.sdk.kotlin.services.bedrock.model.S3Config.Builder.() -> kotlin.Unit) {
this.s3Config = aws.sdk.kotlin.services.bedrock.model.S3Config.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy