commonMain.aws.sdk.kotlin.services.iot.model.FileLocation.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iot Show documentation
Show all versions of iot Show documentation
The AWS SDK for Kotlin client for IoT
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* The location of the OTA update.
*/
public class FileLocation private constructor(builder: Builder) {
/**
* The location of the updated firmware in S3.
*/
public val s3Location: aws.sdk.kotlin.services.iot.model.S3Location? = builder.s3Location
/**
* The stream that contains the OTA update.
*/
public val stream: aws.sdk.kotlin.services.iot.model.Stream? = builder.stream
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.FileLocation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FileLocation(")
append("s3Location=$s3Location,")
append("stream=$stream")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = s3Location?.hashCode() ?: 0
result = 31 * result + (stream?.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 FileLocation
if (s3Location != other.s3Location) return false
if (stream != other.stream) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.FileLocation = Builder(this).apply(block).build()
public class Builder {
/**
* The location of the updated firmware in S3.
*/
public var s3Location: aws.sdk.kotlin.services.iot.model.S3Location? = null
/**
* The stream that contains the OTA update.
*/
public var stream: aws.sdk.kotlin.services.iot.model.Stream? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.FileLocation) : this() {
this.s3Location = x.s3Location
this.stream = x.stream
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.FileLocation = FileLocation(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)
}
/**
* construct an [aws.sdk.kotlin.services.iot.model.Stream] inside the given [block]
*/
public fun stream(block: aws.sdk.kotlin.services.iot.model.Stream.Builder.() -> kotlin.Unit) {
this.stream = aws.sdk.kotlin.services.iot.model.Stream.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy