
commonMain.aws.sdk.kotlin.services.iot.model.UpdateMitigationActionResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class UpdateMitigationActionResponse private constructor(builder: Builder) {
/**
* The ARN for the new mitigation action.
*/
public val actionArn: kotlin.String? = builder.actionArn
/**
* A unique identifier for the mitigation action.
*/
public val actionId: kotlin.String? = builder.actionId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.UpdateMitigationActionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateMitigationActionResponse(")
append("actionArn=$actionArn,")
append("actionId=$actionId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = actionArn?.hashCode() ?: 0
result = 31 * result + (actionId?.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 UpdateMitigationActionResponse
if (actionArn != other.actionArn) return false
if (actionId != other.actionId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.UpdateMitigationActionResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The ARN for the new mitigation action.
*/
public var actionArn: kotlin.String? = null
/**
* A unique identifier for the mitigation action.
*/
public var actionId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.UpdateMitigationActionResponse) : this() {
this.actionArn = x.actionArn
this.actionId = x.actionId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.UpdateMitigationActionResponse = UpdateMitigationActionResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy