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

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

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

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



/**
 * Information about the resource that was noncompliant with the audit check.
 */
public class NonCompliantResource private constructor(builder: Builder) {
    /**
     * Other information about the noncompliant resource.
     */
    public val additionalInfo: Map? = builder.additionalInfo
    /**
     * Information that identifies the noncompliant resource.
     */
    public val resourceIdentifier: aws.sdk.kotlin.services.iot.model.ResourceIdentifier? = builder.resourceIdentifier
    /**
     * The type of the noncompliant resource.
     */
    public val resourceType: aws.sdk.kotlin.services.iot.model.ResourceType? = builder.resourceType

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

    override fun toString(): kotlin.String = buildString {
        append("NonCompliantResource(")
        append("additionalInfo=$additionalInfo,")
        append("resourceIdentifier=$resourceIdentifier,")
        append("resourceType=$resourceType")
        append(")")
    }

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

        if (additionalInfo != other.additionalInfo) return false
        if (resourceIdentifier != other.resourceIdentifier) return false
        if (resourceType != other.resourceType) return false

        return true
    }

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

    public class Builder {
        /**
         * Other information about the noncompliant resource.
         */
        public var additionalInfo: Map? = null
        /**
         * Information that identifies the noncompliant resource.
         */
        public var resourceIdentifier: aws.sdk.kotlin.services.iot.model.ResourceIdentifier? = null
        /**
         * The type of the noncompliant resource.
         */
        public var resourceType: aws.sdk.kotlin.services.iot.model.ResourceType? = null

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

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.iot.model.NonCompliantResource = NonCompliantResource(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