commonMain.aws.sdk.kotlin.services.connect.model.UserPhoneConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connect.model
/**
* Contains information about the phone configuration settings for a user.
*/
public class UserPhoneConfig private constructor(builder: Builder) {
/**
* The After Call Work (ACW) timeout setting, in seconds.
*
* When returned by a `SearchUsers` call, `AfterContactWorkTimeLimit` is returned in milliseconds.
*/
public val afterContactWorkTimeLimit: kotlin.Int = builder.afterContactWorkTimeLimit
/**
* The Auto accept setting.
*/
public val autoAccept: kotlin.Boolean = builder.autoAccept
/**
* The phone number for the user's desk phone.
*/
public val deskPhoneNumber: kotlin.String? = builder.deskPhoneNumber
/**
* The phone type.
*/
public val phoneType: aws.sdk.kotlin.services.connect.model.PhoneType? = builder.phoneType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connect.model.UserPhoneConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UserPhoneConfig(")
append("afterContactWorkTimeLimit=$afterContactWorkTimeLimit,")
append("autoAccept=$autoAccept,")
append("deskPhoneNumber=$deskPhoneNumber,")
append("phoneType=$phoneType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = afterContactWorkTimeLimit
result = 31 * result + (autoAccept.hashCode())
result = 31 * result + (deskPhoneNumber?.hashCode() ?: 0)
result = 31 * result + (phoneType?.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 UserPhoneConfig
if (afterContactWorkTimeLimit != other.afterContactWorkTimeLimit) return false
if (autoAccept != other.autoAccept) return false
if (deskPhoneNumber != other.deskPhoneNumber) return false
if (phoneType != other.phoneType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connect.model.UserPhoneConfig = Builder(this).apply(block).build()
public class Builder {
/**
* The After Call Work (ACW) timeout setting, in seconds.
*
* When returned by a `SearchUsers` call, `AfterContactWorkTimeLimit` is returned in milliseconds.
*/
public var afterContactWorkTimeLimit: kotlin.Int = 0
/**
* The Auto accept setting.
*/
public var autoAccept: kotlin.Boolean = false
/**
* The phone number for the user's desk phone.
*/
public var deskPhoneNumber: kotlin.String? = null
/**
* The phone type.
*/
public var phoneType: aws.sdk.kotlin.services.connect.model.PhoneType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connect.model.UserPhoneConfig) : this() {
this.afterContactWorkTimeLimit = x.afterContactWorkTimeLimit
this.autoAccept = x.autoAccept
this.deskPhoneNumber = x.deskPhoneNumber
this.phoneType = x.phoneType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connect.model.UserPhoneConfig = UserPhoneConfig(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy