
commonMain.aws.sdk.kotlin.services.iot.model.TestInvokeAuthorizerRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class TestInvokeAuthorizerRequest private constructor(builder: Builder) {
/**
* The custom authorizer name.
*/
public val authorizerName: kotlin.String? = builder.authorizerName
/**
* Specifies a test HTTP authorization request.
*/
public val httpContext: aws.sdk.kotlin.services.iot.model.HttpContext? = builder.httpContext
/**
* Specifies a test MQTT authorization request.
*/
public val mqttContext: aws.sdk.kotlin.services.iot.model.MqttContext? = builder.mqttContext
/**
* Specifies a test TLS authorization request.
*/
public val tlsContext: aws.sdk.kotlin.services.iot.model.TlsContext? = builder.tlsContext
/**
* The token returned by your custom authentication service.
*/
public val token: kotlin.String? = builder.token
/**
* The signature made with the token and your custom authentication service's private key. This value must be Base-64-encoded.
*/
public val tokenSignature: kotlin.String? = builder.tokenSignature
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.TestInvokeAuthorizerRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TestInvokeAuthorizerRequest(")
append("authorizerName=$authorizerName,")
append("httpContext=$httpContext,")
append("mqttContext=$mqttContext,")
append("tlsContext=$tlsContext,")
append("token=$token,")
append("tokenSignature=$tokenSignature")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = authorizerName?.hashCode() ?: 0
result = 31 * result + (httpContext?.hashCode() ?: 0)
result = 31 * result + (mqttContext?.hashCode() ?: 0)
result = 31 * result + (tlsContext?.hashCode() ?: 0)
result = 31 * result + (token?.hashCode() ?: 0)
result = 31 * result + (tokenSignature?.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 TestInvokeAuthorizerRequest
if (authorizerName != other.authorizerName) return false
if (httpContext != other.httpContext) return false
if (mqttContext != other.mqttContext) return false
if (tlsContext != other.tlsContext) return false
if (token != other.token) return false
if (tokenSignature != other.tokenSignature) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.TestInvokeAuthorizerRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The custom authorizer name.
*/
public var authorizerName: kotlin.String? = null
/**
* Specifies a test HTTP authorization request.
*/
public var httpContext: aws.sdk.kotlin.services.iot.model.HttpContext? = null
/**
* Specifies a test MQTT authorization request.
*/
public var mqttContext: aws.sdk.kotlin.services.iot.model.MqttContext? = null
/**
* Specifies a test TLS authorization request.
*/
public var tlsContext: aws.sdk.kotlin.services.iot.model.TlsContext? = null
/**
* The token returned by your custom authentication service.
*/
public var token: kotlin.String? = null
/**
* The signature made with the token and your custom authentication service's private key. This value must be Base-64-encoded.
*/
public var tokenSignature: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.TestInvokeAuthorizerRequest) : this() {
this.authorizerName = x.authorizerName
this.httpContext = x.httpContext
this.mqttContext = x.mqttContext
this.tlsContext = x.tlsContext
this.token = x.token
this.tokenSignature = x.tokenSignature
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.TestInvokeAuthorizerRequest = TestInvokeAuthorizerRequest(this)
/**
* construct an [aws.sdk.kotlin.services.iot.model.HttpContext] inside the given [block]
*/
public fun httpContext(block: aws.sdk.kotlin.services.iot.model.HttpContext.Builder.() -> kotlin.Unit) {
this.httpContext = aws.sdk.kotlin.services.iot.model.HttpContext.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.iot.model.MqttContext] inside the given [block]
*/
public fun mqttContext(block: aws.sdk.kotlin.services.iot.model.MqttContext.Builder.() -> kotlin.Unit) {
this.mqttContext = aws.sdk.kotlin.services.iot.model.MqttContext.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.iot.model.TlsContext] inside the given [block]
*/
public fun tlsContext(block: aws.sdk.kotlin.services.iot.model.TlsContext.Builder.() -> kotlin.Unit) {
this.tlsContext = aws.sdk.kotlin.services.iot.model.TlsContext.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy