
commonMain.aws.sdk.kotlin.services.iot.model.TestInvokeAuthorizerResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class TestInvokeAuthorizerResponse private constructor(builder: Builder) {
/**
* The number of seconds after which the connection is terminated.
*/
public val disconnectAfterInSeconds: kotlin.Int? = builder.disconnectAfterInSeconds
/**
* True if the token is authenticated, otherwise false.
*/
public val isAuthenticated: kotlin.Boolean? = builder.isAuthenticated
/**
* IAM policy documents.
*/
public val policyDocuments: List? = builder.policyDocuments
/**
* The principal ID.
*/
public val principalId: kotlin.String? = builder.principalId
/**
* The number of seconds after which the temporary credentials are refreshed.
*/
public val refreshAfterInSeconds: kotlin.Int? = builder.refreshAfterInSeconds
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.TestInvokeAuthorizerResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TestInvokeAuthorizerResponse(")
append("disconnectAfterInSeconds=$disconnectAfterInSeconds,")
append("isAuthenticated=$isAuthenticated,")
append("policyDocuments=$policyDocuments,")
append("principalId=$principalId,")
append("refreshAfterInSeconds=$refreshAfterInSeconds")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = disconnectAfterInSeconds ?: 0
result = 31 * result + (isAuthenticated?.hashCode() ?: 0)
result = 31 * result + (policyDocuments?.hashCode() ?: 0)
result = 31 * result + (principalId?.hashCode() ?: 0)
result = 31 * result + (refreshAfterInSeconds ?: 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 TestInvokeAuthorizerResponse
if (disconnectAfterInSeconds != other.disconnectAfterInSeconds) return false
if (isAuthenticated != other.isAuthenticated) return false
if (policyDocuments != other.policyDocuments) return false
if (principalId != other.principalId) return false
if (refreshAfterInSeconds != other.refreshAfterInSeconds) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.TestInvokeAuthorizerResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The number of seconds after which the connection is terminated.
*/
public var disconnectAfterInSeconds: kotlin.Int? = null
/**
* True if the token is authenticated, otherwise false.
*/
public var isAuthenticated: kotlin.Boolean? = null
/**
* IAM policy documents.
*/
public var policyDocuments: List? = null
/**
* The principal ID.
*/
public var principalId: kotlin.String? = null
/**
* The number of seconds after which the temporary credentials are refreshed.
*/
public var refreshAfterInSeconds: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.TestInvokeAuthorizerResponse) : this() {
this.disconnectAfterInSeconds = x.disconnectAfterInSeconds
this.isAuthenticated = x.isAuthenticated
this.policyDocuments = x.policyDocuments
this.principalId = x.principalId
this.refreshAfterInSeconds = x.refreshAfterInSeconds
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.TestInvokeAuthorizerResponse = TestInvokeAuthorizerResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy