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

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

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

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



public class DeleteAuditSuppressionRequest private constructor(builder: Builder) {
    /**
     * An audit check name. Checks must be enabled for your account. (Use `DescribeAccountAuditConfiguration` to see the list of all checks, including those that are enabled or use `UpdateAccountAuditConfiguration` to select which checks are enabled.)
     */
    public val checkName: kotlin.String? = builder.checkName
    /**
     * Information that identifies the noncompliant resource.
     */
    public val resourceIdentifier: aws.sdk.kotlin.services.iot.model.ResourceIdentifier? = builder.resourceIdentifier

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteAuditSuppressionRequest(")
        append("checkName=$checkName,")
        append("resourceIdentifier=$resourceIdentifier")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = checkName?.hashCode() ?: 0
        result = 31 * result + (resourceIdentifier?.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 DeleteAuditSuppressionRequest

        if (checkName != other.checkName) return false
        if (resourceIdentifier != other.resourceIdentifier) return false

        return true
    }

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

    public class Builder {
        /**
         * An audit check name. Checks must be enabled for your account. (Use `DescribeAccountAuditConfiguration` to see the list of all checks, including those that are enabled or use `UpdateAccountAuditConfiguration` to select which checks are enabled.)
         */
        public var checkName: kotlin.String? = null
        /**
         * Information that identifies the noncompliant resource.
         */
        public var resourceIdentifier: aws.sdk.kotlin.services.iot.model.ResourceIdentifier? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.DeleteAuditSuppressionRequest) : this() {
            this.checkName = x.checkName
            this.resourceIdentifier = x.resourceIdentifier
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.iot.model.ResourceIdentifier] inside the given [block]
         */
        public fun resourceIdentifier(block: aws.sdk.kotlin.services.iot.model.ResourceIdentifier.Builder.() -> kotlin.Unit) {
            this.resourceIdentifier = aws.sdk.kotlin.services.iot.model.ResourceIdentifier.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy