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