
commonMain.aws.sdk.kotlin.services.iot.model.StreamFile.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* Represents a file to stream.
*/
public class StreamFile private constructor(builder: Builder) {
/**
* The file ID.
*/
public val fileId: kotlin.Int? = builder.fileId
/**
* The location of the file in S3.
*/
public val s3Location: aws.sdk.kotlin.services.iot.model.S3Location? = builder.s3Location
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.StreamFile = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StreamFile(")
append("fileId=$fileId,")
append("s3Location=$s3Location")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = fileId ?: 0
result = 31 * result + (s3Location?.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 StreamFile
if (fileId != other.fileId) return false
if (s3Location != other.s3Location) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.StreamFile = Builder(this).apply(block).build()
public class Builder {
/**
* The file ID.
*/
public var fileId: kotlin.Int? = null
/**
* The location of the file in S3.
*/
public var s3Location: aws.sdk.kotlin.services.iot.model.S3Location? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.StreamFile) : this() {
this.fileId = x.fileId
this.s3Location = x.s3Location
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.StreamFile = StreamFile(this)
/**
* construct an [aws.sdk.kotlin.services.iot.model.S3Location] inside the given [block]
*/
public fun s3Location(block: aws.sdk.kotlin.services.iot.model.S3Location.Builder.() -> kotlin.Unit) {
this.s3Location = aws.sdk.kotlin.services.iot.model.S3Location.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy