
commonMain.aws.sdk.kotlin.services.iot.model.StreamInfo.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* Information about a stream.
*/
public class StreamInfo private constructor(builder: Builder) {
/**
* The date when the stream was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The description of the stream.
*/
public val description: kotlin.String? = builder.description
/**
* The files to stream.
*/
public val files: List? = builder.files
/**
* The date when the stream was last updated.
*/
public val lastUpdatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedAt
/**
* An IAM role IoT assumes to access your S3 files.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* 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.StreamInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StreamInfo(")
append("createdAt=$createdAt,")
append("description=$description,")
append("files=$files,")
append("lastUpdatedAt=$lastUpdatedAt,")
append("roleArn=$roleArn,")
append("streamArn=$streamArn,")
append("streamId=$streamId,")
append("streamVersion=$streamVersion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdAt?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (files?.hashCode() ?: 0)
result = 31 * result + (lastUpdatedAt?.hashCode() ?: 0)
result = 31 * result + (roleArn?.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 StreamInfo
if (createdAt != other.createdAt) return false
if (description != other.description) return false
if (files != other.files) return false
if (lastUpdatedAt != other.lastUpdatedAt) return false
if (roleArn != other.roleArn) 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.StreamInfo = Builder(this).apply(block).build()
public class Builder {
/**
* The date when the stream was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The description of the stream.
*/
public var description: kotlin.String? = null
/**
* The files to stream.
*/
public var files: List? = null
/**
* The date when the stream was last updated.
*/
public var lastUpdatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* An IAM role IoT assumes to access your S3 files.
*/
public var roleArn: 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.StreamInfo) : this() {
this.createdAt = x.createdAt
this.description = x.description
this.files = x.files
this.lastUpdatedAt = x.lastUpdatedAt
this.roleArn = x.roleArn
this.streamArn = x.streamArn
this.streamId = x.streamId
this.streamVersion = x.streamVersion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.StreamInfo = StreamInfo(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy