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