commonMain.aws.sdk.kotlin.services.connect.model.StartContactEvaluationRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connect.model
public class StartContactEvaluationRequest private constructor(builder: Builder) {
/**
* A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see [Making retries safe with idempotent APIs](https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/).
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The identifier of the contact in this instance of Amazon Connect.
*/
public val contactId: kotlin.String? = builder.contactId
/**
* The unique identifier for the evaluation form.
*/
public val evaluationFormId: kotlin.String? = builder.evaluationFormId
/**
* The identifier of the Amazon Connect instance. You can [find the instance ID](https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html) in the Amazon Resource Name (ARN) of the instance.
*/
public val instanceId: kotlin.String? = requireNotNull(builder.instanceId) { "A non-null value must be provided for instanceId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connect.model.StartContactEvaluationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartContactEvaluationRequest(")
append("clientToken=$clientToken,")
append("contactId=$contactId,")
append("evaluationFormId=$evaluationFormId,")
append("instanceId=$instanceId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (contactId?.hashCode() ?: 0)
result = 31 * result + (evaluationFormId?.hashCode() ?: 0)
result = 31 * result + (instanceId?.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 StartContactEvaluationRequest
if (clientToken != other.clientToken) return false
if (contactId != other.contactId) return false
if (evaluationFormId != other.evaluationFormId) return false
if (instanceId != other.instanceId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connect.model.StartContactEvaluationRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see [Making retries safe with idempotent APIs](https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/).
*/
public var clientToken: kotlin.String? = null
/**
* The identifier of the contact in this instance of Amazon Connect.
*/
public var contactId: kotlin.String? = null
/**
* The unique identifier for the evaluation form.
*/
public var evaluationFormId: kotlin.String? = null
/**
* The identifier of the Amazon Connect instance. You can [find the instance ID](https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html) in the Amazon Resource Name (ARN) of the instance.
*/
public var instanceId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connect.model.StartContactEvaluationRequest) : this() {
this.clientToken = x.clientToken
this.contactId = x.contactId
this.evaluationFormId = x.evaluationFormId
this.instanceId = x.instanceId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connect.model.StartContactEvaluationRequest = StartContactEvaluationRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy