commonMain.aws.sdk.kotlin.services.connect.model.MonitorContactResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connect.model
public class MonitorContactResponse private constructor(builder: Builder) {
/**
* The ARN of the contact.
*/
public val contactArn: kotlin.String? = builder.contactArn
/**
* The identifier of the contact.
*/
public val contactId: kotlin.String? = builder.contactId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connect.model.MonitorContactResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MonitorContactResponse(")
append("contactArn=$contactArn,")
append("contactId=$contactId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = contactArn?.hashCode() ?: 0
result = 31 * result + (contactId?.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 MonitorContactResponse
if (contactArn != other.contactArn) return false
if (contactId != other.contactId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connect.model.MonitorContactResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The ARN of the contact.
*/
public var contactArn: kotlin.String? = null
/**
* The identifier of the contact.
*/
public var contactId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connect.model.MonitorContactResponse) : this() {
this.contactArn = x.contactArn
this.contactId = x.contactId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connect.model.MonitorContactResponse = MonitorContactResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy