
commonMain.aws.sdk.kotlin.services.iot.model.TestAuthorizationResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class TestAuthorizationResponse private constructor(builder: Builder) {
/**
* The authentication results.
*/
public val authResults: List? = builder.authResults
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.TestAuthorizationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TestAuthorizationResponse(")
append("authResults=$authResults")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = authResults?.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 TestAuthorizationResponse
if (authResults != other.authResults) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.TestAuthorizationResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The authentication results.
*/
public var authResults: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.TestAuthorizationResponse) : this() {
this.authResults = x.authResults
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.TestAuthorizationResponse = TestAuthorizationResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy