commonMain.aws.sdk.kotlin.services.connect.model.DescribeContactFlowRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connect.model
public class DescribeContactFlowRequest private constructor(builder: Builder) {
/**
* The identifier of the flow.
*/
public val contactFlowId: kotlin.String? = requireNotNull(builder.contactFlowId) { "A non-null value must be provided for contactFlowId" }
/**
* The identifier of the Amazon Connect 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.DescribeContactFlowRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeContactFlowRequest(")
append("contactFlowId=$contactFlowId,")
append("instanceId=$instanceId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = contactFlowId?.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 DescribeContactFlowRequest
if (contactFlowId != other.contactFlowId) return false
if (instanceId != other.instanceId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connect.model.DescribeContactFlowRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The identifier of the flow.
*/
public var contactFlowId: kotlin.String? = null
/**
* The identifier of the Amazon Connect instance.
*/
public var instanceId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connect.model.DescribeContactFlowRequest) : this() {
this.contactFlowId = x.contactFlowId
this.instanceId = x.instanceId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connect.model.DescribeContactFlowRequest = DescribeContactFlowRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy