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

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

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

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



/**
 * The target of a mitigation action task.
 */
public class DetectMitigationActionsTaskTarget private constructor(builder: Builder) {
    /**
     * The name of the behavior.
     */
    public val behaviorName: kotlin.String? = builder.behaviorName
    /**
     * The name of the security profile.
     */
    public val securityProfileName: kotlin.String? = builder.securityProfileName
    /**
     * The unique identifiers of the violations.
     */
    public val violationIds: List? = builder.violationIds

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.DetectMitigationActionsTaskTarget = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DetectMitigationActionsTaskTarget(")
        append("behaviorName=$behaviorName,")
        append("securityProfileName=$securityProfileName,")
        append("violationIds=$violationIds")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = behaviorName?.hashCode() ?: 0
        result = 31 * result + (securityProfileName?.hashCode() ?: 0)
        result = 31 * result + (violationIds?.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 DetectMitigationActionsTaskTarget

        if (behaviorName != other.behaviorName) return false
        if (securityProfileName != other.securityProfileName) return false
        if (violationIds != other.violationIds) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.DetectMitigationActionsTaskTarget = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The name of the behavior.
         */
        public var behaviorName: kotlin.String? = null
        /**
         * The name of the security profile.
         */
        public var securityProfileName: kotlin.String? = null
        /**
         * The unique identifiers of the violations.
         */
        public var violationIds: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.DetectMitigationActionsTaskTarget) : this() {
            this.behaviorName = x.behaviorName
            this.securityProfileName = x.securityProfileName
            this.violationIds = x.violationIds
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy