
commonMain.aws.sdk.kotlin.services.connectcases.model.GetDomainResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connectcases.model
import aws.smithy.kotlin.runtime.time.Instant
public class GetDomainResponse private constructor(builder: Builder) {
/**
* The timestamp when the Cases domain was created.
*/
public val createdTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.createdTime) { "A non-null value must be provided for createdTime" }
/**
* 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 Cases domain.
*/
public val domainStatus: aws.sdk.kotlin.services.connectcases.model.DomainStatus = requireNotNull(builder.domainStatus) { "A non-null value must be provided for domainStatus" }
/**
* The name of the Cases domain.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connectcases.model.GetDomainResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDomainResponse(")
append("createdTime=$createdTime,")
append("domainArn=$domainArn,")
append("domainId=$domainId,")
append("domainStatus=$domainStatus,")
append("name=$name,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdTime.hashCode()
result = 31 * result + (domainArn.hashCode())
result = 31 * result + (domainId.hashCode())
result = 31 * result + (domainStatus.hashCode())
result = 31 * result + (name.hashCode())
result = 31 * result + (tags?.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 GetDomainResponse
if (createdTime != other.createdTime) return false
if (domainArn != other.domainArn) return false
if (domainId != other.domainId) return false
if (domainStatus != other.domainStatus) return false
if (name != other.name) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connectcases.model.GetDomainResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The timestamp when the Cases domain was created.
*/
public var createdTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* 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 Cases domain.
*/
public var domainStatus: aws.sdk.kotlin.services.connectcases.model.DomainStatus? = null
/**
* The name of the Cases domain.
*/
public var name: kotlin.String? = null
/**
* A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connectcases.model.GetDomainResponse) : this() {
this.createdTime = x.createdTime
this.domainArn = x.domainArn
this.domainId = x.domainId
this.domainStatus = x.domainStatus
this.name = x.name
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connectcases.model.GetDomainResponse = GetDomainResponse(this)
internal fun correctErrors(): Builder {
if (createdTime == null) createdTime = Instant.fromEpochSeconds(0)
if (domainArn == null) domainArn = ""
if (domainId == null) domainId = ""
if (domainStatus == null) domainStatus = DomainStatus.SdkUnknown("no value provided")
if (name == null) name = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy