All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.iot.model.CreateMitigationActionResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.iot.model



public class CreateMitigationActionResponse private constructor(builder: Builder) {
    /**
     * The ARN for the new mitigation action.
     */
    public val actionArn: kotlin.String? = builder.actionArn
    /**
     * A unique identifier for the new 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.CreateMitigationActionResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CreateMitigationActionResponse(")
        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 CreateMitigationActionResponse

        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.CreateMitigationActionResponse = 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 new mitigation action.
         */
        public var actionId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.CreateMitigationActionResponse) : this() {
            this.actionArn = x.actionArn
            this.actionId = x.actionId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.iot.model.CreateMitigationActionResponse = CreateMitigationActionResponse(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy