commonMain.aws.sdk.kotlin.services.appflow.model.SapoDataParallelismConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appflow-jvm Show documentation
Show all versions of appflow-jvm Show documentation
The AWS SDK for Kotlin client for Appflow
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appflow.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Sets the number of *concurrent processes* that transfer OData records from your SAP instance. A concurrent process is query that retrieves a batch of records as part of a flow run. Amazon AppFlow can run multiple concurrent processes in parallel to transfer data faster.
*/
public class SapoDataParallelismConfig private constructor(builder: Builder) {
/**
* The maximum number of processes that Amazon AppFlow runs at the same time when it retrieves your data from your SAP application.
*/
public val maxParallelism: kotlin.Int = requireNotNull(builder.maxParallelism) { "A non-null value must be provided for maxParallelism" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appflow.model.SapoDataParallelismConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SapoDataParallelismConfig(")
append("maxParallelism=$maxParallelism")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = maxParallelism
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 SapoDataParallelismConfig
if (maxParallelism != other.maxParallelism) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appflow.model.SapoDataParallelismConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The maximum number of processes that Amazon AppFlow runs at the same time when it retrieves your data from your SAP application.
*/
public var maxParallelism: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appflow.model.SapoDataParallelismConfig) : this() {
this.maxParallelism = x.maxParallelism
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appflow.model.SapoDataParallelismConfig = SapoDataParallelismConfig(this)
internal fun correctErrors(): Builder {
if (maxParallelism == null) maxParallelism = 0
return this
}
}
}