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