
commonMain.aws.sdk.kotlin.services.ivschat.model.FirehoseDestinationConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ivschat.model
/**
* Specifies a Kinesis Firehose location where chat logs will be stored.
*/
public class FirehoseDestinationConfiguration private constructor(builder: Builder) {
/**
* Name of the Amazon Kinesis Firehose delivery stream where chat activity will be logged.
*/
public val deliveryStreamName: kotlin.String = requireNotNull(builder.deliveryStreamName) { "A non-null value must be provided for deliveryStreamName" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ivschat.model.FirehoseDestinationConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FirehoseDestinationConfiguration(")
append("deliveryStreamName=$deliveryStreamName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deliveryStreamName.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 FirehoseDestinationConfiguration
if (deliveryStreamName != other.deliveryStreamName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ivschat.model.FirehoseDestinationConfiguration = Builder(this).apply(block).build()
public class Builder {
/**
* Name of the Amazon Kinesis Firehose delivery stream where chat activity will be logged.
*/
public var deliveryStreamName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ivschat.model.FirehoseDestinationConfiguration) : this() {
this.deliveryStreamName = x.deliveryStreamName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ivschat.model.FirehoseDestinationConfiguration = FirehoseDestinationConfiguration(this)
internal fun correctErrors(): Builder {
if (deliveryStreamName == null) deliveryStreamName = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy