
commonMain.aws.sdk.kotlin.services.appfabric.model.FirehoseStream.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appfabric.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains information about an Amazon Kinesis Data Firehose delivery stream.
*/
public class FirehoseStream private constructor(builder: Builder) {
/**
* The name of the Amazon Kinesis Data Firehose delivery stream.
*/
public val streamName: kotlin.String = requireNotNull(builder.streamName) { "A non-null value must be provided for streamName" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appfabric.model.FirehoseStream = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FirehoseStream(")
append("streamName=$streamName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = streamName.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 FirehoseStream
if (streamName != other.streamName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appfabric.model.FirehoseStream = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the Amazon Kinesis Data Firehose delivery stream.
*/
public var streamName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appfabric.model.FirehoseStream) : this() {
this.streamName = x.streamName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appfabric.model.FirehoseStream = FirehoseStream(this)
internal fun correctErrors(): Builder {
if (streamName == null) streamName = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy