
commonMain.aws.sdk.kotlin.services.iot.model.StreamSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* A summary of a stream.
*/
public class StreamSummary private constructor(builder: Builder) {
/**
* A description of the stream.
*/
public val description: kotlin.String? = builder.description
/**
* The stream ARN.
*/
public val streamArn: kotlin.String? = builder.streamArn
/**
* The stream ID.
*/
public val streamId: kotlin.String? = builder.streamId
/**
* The stream version.
*/
public val streamVersion: kotlin.Int? = builder.streamVersion
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.StreamSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StreamSummary(")
append("description=$description,")
append("streamArn=$streamArn,")
append("streamId=$streamId,")
append("streamVersion=$streamVersion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (streamArn?.hashCode() ?: 0)
result = 31 * result + (streamId?.hashCode() ?: 0)
result = 31 * result + (streamVersion ?: 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 StreamSummary
if (description != other.description) return false
if (streamArn != other.streamArn) return false
if (streamId != other.streamId) return false
if (streamVersion != other.streamVersion) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.StreamSummary = Builder(this).apply(block).build()
public class Builder {
/**
* A description of the stream.
*/
public var description: kotlin.String? = null
/**
* The stream ARN.
*/
public var streamArn: kotlin.String? = null
/**
* The stream ID.
*/
public var streamId: kotlin.String? = null
/**
* The stream version.
*/
public var streamVersion: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.StreamSummary) : this() {
this.description = x.description
this.streamArn = x.streamArn
this.streamId = x.streamId
this.streamVersion = x.streamVersion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.StreamSummary = StreamSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy