
commonMain.aws.sdk.kotlin.services.ses.model.TemplateDoesNotExistException.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ses.model
import aws.smithy.kotlin.runtime.ServiceErrorMetadata
/**
* Indicates that the Template object you specified does not exist in your Amazon SES account.
*/
public class TemplateDoesNotExistException private constructor(builder: Builder) : SesException() {
override val message: kotlin.String? = builder.message
public val templateName: kotlin.String? = builder.templateName
init {
sdkErrorMetadata.attributes[ServiceErrorMetadata.ErrorType] = ErrorType.Client
}
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ses.model.TemplateDoesNotExistException = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TemplateDoesNotExistException(")
append("message=$message,")
append("templateName=$templateName)")
}
override fun hashCode(): kotlin.Int {
var result = message?.hashCode() ?: 0
result = 31 * result + (templateName?.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 TemplateDoesNotExistException
if (message != other.message) return false
if (templateName != other.templateName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ses.model.TemplateDoesNotExistException = Builder(this).apply(block).build()
public class Builder {
public var message: kotlin.String? = null
public var templateName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ses.model.TemplateDoesNotExistException) : this() {
this.message = x.message
this.templateName = x.templateName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ses.model.TemplateDoesNotExistException = TemplateDoesNotExistException(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy