
commonMain.aws.sdk.kotlin.services.iot.model.AuthorizerConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* An object that specifies the authorization service for a domain.
*/
public class AuthorizerConfig private constructor(builder: Builder) {
/**
* A Boolean that specifies whether the domain configuration's authorization service can be overridden.
*/
public val allowAuthorizerOverride: kotlin.Boolean? = builder.allowAuthorizerOverride
/**
* The name of the authorization service for a domain configuration.
*/
public val defaultAuthorizerName: kotlin.String? = builder.defaultAuthorizerName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.AuthorizerConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AuthorizerConfig(")
append("allowAuthorizerOverride=$allowAuthorizerOverride,")
append("defaultAuthorizerName=$defaultAuthorizerName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = allowAuthorizerOverride?.hashCode() ?: 0
result = 31 * result + (defaultAuthorizerName?.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 AuthorizerConfig
if (allowAuthorizerOverride != other.allowAuthorizerOverride) return false
if (defaultAuthorizerName != other.defaultAuthorizerName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.AuthorizerConfig = Builder(this).apply(block).build()
public class Builder {
/**
* A Boolean that specifies whether the domain configuration's authorization service can be overridden.
*/
public var allowAuthorizerOverride: kotlin.Boolean? = null
/**
* The name of the authorization service for a domain configuration.
*/
public var defaultAuthorizerName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.AuthorizerConfig) : this() {
this.allowAuthorizerOverride = x.allowAuthorizerOverride
this.defaultAuthorizerName = x.defaultAuthorizerName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.AuthorizerConfig = AuthorizerConfig(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy