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

commonMain.aws.sdk.kotlin.services.verifiedpermissions.model.BatchIsAuthorizedResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.verifiedpermissions.model



public class BatchIsAuthorizedResponse private constructor(builder: Builder) {
    /**
     * A series of `Allow` or `Deny` decisions for each request, and the policies that produced them.
     */
    public val results: List = requireNotNull(builder.results) { "A non-null value must be provided for results" }

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

    override fun toString(): kotlin.String = buildString {
        append("BatchIsAuthorizedResponse(")
        append("results=$results")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = results.hashCode()
        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 BatchIsAuthorizedResponse

        if (results != other.results) return false

        return true
    }

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

    public class Builder {
        /**
         * A series of `Allow` or `Deny` decisions for each request, and the policies that produced them.
         */
        public var results: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.verifiedpermissions.model.BatchIsAuthorizedResponse) : this() {
            this.results = x.results
        }

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

        internal fun correctErrors(): Builder {
            if (results == null) results = emptyList()
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy