
commonMain.aws.sdk.kotlin.services.iot.model.DeleteOtaUpdateRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class DeleteOtaUpdateRequest private constructor(builder: Builder) {
/**
* When true, the stream created by the OTAUpdate process is deleted when the OTA update is deleted. Ignored if the stream specified in the OTAUpdate is supplied by the user.
*/
public val deleteStream: kotlin.Boolean? = builder.deleteStream
/**
* When true, deletes the IoT job created by the OTAUpdate process even if it is "IN_PROGRESS". Otherwise, if the job is not in a terminal state ("COMPLETED" or "CANCELED") an exception will occur. The default is false.
*/
public val forceDeleteAwsJob: kotlin.Boolean? = builder.forceDeleteAwsJob
/**
* The ID of the OTA update to delete.
*/
public val otaUpdateId: kotlin.String? = builder.otaUpdateId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.DeleteOtaUpdateRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteOtaUpdateRequest(")
append("deleteStream=$deleteStream,")
append("forceDeleteAwsJob=$forceDeleteAwsJob,")
append("otaUpdateId=$otaUpdateId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deleteStream?.hashCode() ?: 0
result = 31 * result + (forceDeleteAwsJob?.hashCode() ?: 0)
result = 31 * result + (otaUpdateId?.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 DeleteOtaUpdateRequest
if (deleteStream != other.deleteStream) return false
if (forceDeleteAwsJob != other.forceDeleteAwsJob) return false
if (otaUpdateId != other.otaUpdateId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.DeleteOtaUpdateRequest = Builder(this).apply(block).build()
public class Builder {
/**
* When true, the stream created by the OTAUpdate process is deleted when the OTA update is deleted. Ignored if the stream specified in the OTAUpdate is supplied by the user.
*/
public var deleteStream: kotlin.Boolean? = null
/**
* When true, deletes the IoT job created by the OTAUpdate process even if it is "IN_PROGRESS". Otherwise, if the job is not in a terminal state ("COMPLETED" or "CANCELED") an exception will occur. The default is false.
*/
public var forceDeleteAwsJob: kotlin.Boolean? = null
/**
* The ID of the OTA update to delete.
*/
public var otaUpdateId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.DeleteOtaUpdateRequest) : this() {
this.deleteStream = x.deleteStream
this.forceDeleteAwsJob = x.forceDeleteAwsJob
this.otaUpdateId = x.otaUpdateId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.DeleteOtaUpdateRequest = DeleteOtaUpdateRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy