All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.appflow.model.SapoDataSourceProperties.kt Maven / Gradle / Ivy

There is a newer version: 1.3.79
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.appflow.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The properties that are applied when using SAPOData as a flow source.
 */
public class SapoDataSourceProperties private constructor(builder: Builder) {
    /**
     * The object path specified in the SAPOData flow source.
     */
    public val objectPath: kotlin.String? = builder.objectPath
    /**
     * Sets the page size for each concurrent process that transfers OData records from your SAP instance.
     */
    public val paginationConfig: aws.sdk.kotlin.services.appflow.model.SapoDataPaginationConfig? = builder.paginationConfig
    /**
     * Sets the number of concurrent processes that transfers OData records from your SAP instance.
     */
    public val parallelismConfig: aws.sdk.kotlin.services.appflow.model.SapoDataParallelismConfig? = builder.parallelismConfig

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appflow.model.SapoDataSourceProperties = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("SapoDataSourceProperties(")
        append("objectPath=$objectPath,")
        append("paginationConfig=$paginationConfig,")
        append("parallelismConfig=$parallelismConfig")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = objectPath?.hashCode() ?: 0
        result = 31 * result + (paginationConfig?.hashCode() ?: 0)
        result = 31 * result + (parallelismConfig?.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 SapoDataSourceProperties

        if (objectPath != other.objectPath) return false
        if (paginationConfig != other.paginationConfig) return false
        if (parallelismConfig != other.parallelismConfig) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appflow.model.SapoDataSourceProperties = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The object path specified in the SAPOData flow source.
         */
        public var objectPath: kotlin.String? = null
        /**
         * Sets the page size for each concurrent process that transfers OData records from your SAP instance.
         */
        public var paginationConfig: aws.sdk.kotlin.services.appflow.model.SapoDataPaginationConfig? = null
        /**
         * Sets the number of concurrent processes that transfers OData records from your SAP instance.
         */
        public var parallelismConfig: aws.sdk.kotlin.services.appflow.model.SapoDataParallelismConfig? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.appflow.model.SapoDataSourceProperties) : this() {
            this.objectPath = x.objectPath
            this.paginationConfig = x.paginationConfig
            this.parallelismConfig = x.parallelismConfig
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.appflow.model.SapoDataSourceProperties = SapoDataSourceProperties(this)

        /**
         * construct an [aws.sdk.kotlin.services.appflow.model.SapoDataPaginationConfig] inside the given [block]
         */
        public fun paginationConfig(block: aws.sdk.kotlin.services.appflow.model.SapoDataPaginationConfig.Builder.() -> kotlin.Unit) {
            this.paginationConfig = aws.sdk.kotlin.services.appflow.model.SapoDataPaginationConfig.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.appflow.model.SapoDataParallelismConfig] inside the given [block]
         */
        public fun parallelismConfig(block: aws.sdk.kotlin.services.appflow.model.SapoDataParallelismConfig.Builder.() -> kotlin.Unit) {
            this.parallelismConfig = aws.sdk.kotlin.services.appflow.model.SapoDataParallelismConfig.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy