
commonMain.aws.sdk.kotlin.services.ivsrealtime.model.InternalServerException.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ivsrealtime.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.ServiceErrorMetadata
/**
*
*/
public class InternalServerException private constructor(builder: Builder) : IvsRealTimeException() {
/**
* Unexpected error during processing of request.
*/
public val exceptionMessage: kotlin.String? = builder.exceptionMessage
init {
sdkErrorMetadata.attributes[ServiceErrorMetadata.ErrorType] = ErrorType.Server
}
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ivsrealtime.model.InternalServerException = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InternalServerException(")
append("exceptionMessage=$exceptionMessage")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = exceptionMessage?.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 InternalServerException
if (exceptionMessage != other.exceptionMessage) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ivsrealtime.model.InternalServerException = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Unexpected error during processing of request.
*/
public var exceptionMessage: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ivsrealtime.model.InternalServerException) : this() {
this.exceptionMessage = x.exceptionMessage
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ivsrealtime.model.InternalServerException = InternalServerException(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy