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