
commonMain.aws.sdk.kotlin.services.connectcases.model.CreateTemplateResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connectcases.model
public class CreateTemplateResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the newly created template.
*/
public val templateArn: kotlin.String = requireNotNull(builder.templateArn) { "A non-null value must be provided for templateArn" }
/**
* A unique identifier of a template.
*/
public val templateId: kotlin.String = requireNotNull(builder.templateId) { "A non-null value must be provided for templateId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connectcases.model.CreateTemplateResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateTemplateResponse(")
append("templateArn=$templateArn,")
append("templateId=$templateId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = templateArn.hashCode()
result = 31 * result + (templateId.hashCode())
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 CreateTemplateResponse
if (templateArn != other.templateArn) return false
if (templateId != other.templateId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connectcases.model.CreateTemplateResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Resource Name (ARN) of the newly created template.
*/
public var templateArn: kotlin.String? = null
/**
* A unique identifier of a template.
*/
public var templateId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connectcases.model.CreateTemplateResponse) : this() {
this.templateArn = x.templateArn
this.templateId = x.templateId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connectcases.model.CreateTemplateResponse = CreateTemplateResponse(this)
internal fun correctErrors(): Builder {
if (templateArn == null) templateArn = ""
if (templateId == null) templateId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy