
commonMain.aws.sdk.kotlin.services.iot.model.CreateOtaUpdateResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class CreateOtaUpdateResponse private constructor(builder: Builder) {
/**
* The IoT job ARN associated with the OTA update.
*/
public val awsIotJobArn: kotlin.String? = builder.awsIotJobArn
/**
* The IoT job ID associated with the OTA update.
*/
public val awsIotJobId: kotlin.String? = builder.awsIotJobId
/**
* The OTA update ARN.
*/
public val otaUpdateArn: kotlin.String? = builder.otaUpdateArn
/**
* The OTA update ID.
*/
public val otaUpdateId: kotlin.String? = builder.otaUpdateId
/**
* The OTA update status.
*/
public val otaUpdateStatus: aws.sdk.kotlin.services.iot.model.OtaUpdateStatus? = builder.otaUpdateStatus
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.CreateOtaUpdateResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateOtaUpdateResponse(")
append("awsIotJobArn=$awsIotJobArn,")
append("awsIotJobId=$awsIotJobId,")
append("otaUpdateArn=$otaUpdateArn,")
append("otaUpdateId=$otaUpdateId,")
append("otaUpdateStatus=$otaUpdateStatus")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = awsIotJobArn?.hashCode() ?: 0
result = 31 * result + (awsIotJobId?.hashCode() ?: 0)
result = 31 * result + (otaUpdateArn?.hashCode() ?: 0)
result = 31 * result + (otaUpdateId?.hashCode() ?: 0)
result = 31 * result + (otaUpdateStatus?.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 CreateOtaUpdateResponse
if (awsIotJobArn != other.awsIotJobArn) return false
if (awsIotJobId != other.awsIotJobId) return false
if (otaUpdateArn != other.otaUpdateArn) return false
if (otaUpdateId != other.otaUpdateId) return false
if (otaUpdateStatus != other.otaUpdateStatus) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.CreateOtaUpdateResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The IoT job ARN associated with the OTA update.
*/
public var awsIotJobArn: kotlin.String? = null
/**
* The IoT job ID associated with the OTA update.
*/
public var awsIotJobId: kotlin.String? = null
/**
* The OTA update ARN.
*/
public var otaUpdateArn: kotlin.String? = null
/**
* The OTA update ID.
*/
public var otaUpdateId: kotlin.String? = null
/**
* The OTA update status.
*/
public var otaUpdateStatus: aws.sdk.kotlin.services.iot.model.OtaUpdateStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.CreateOtaUpdateResponse) : this() {
this.awsIotJobArn = x.awsIotJobArn
this.awsIotJobId = x.awsIotJobId
this.otaUpdateArn = x.otaUpdateArn
this.otaUpdateId = x.otaUpdateId
this.otaUpdateStatus = x.otaUpdateStatus
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.CreateOtaUpdateResponse = CreateOtaUpdateResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy