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

commonMain.aws.sdk.kotlin.services.customerprofiles.model.SalesforceSourceProperties.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.customerprofiles.model



/**
 * The properties that are applied when Salesforce is being used as a source.
 */
public class SalesforceSourceProperties private constructor(builder: Builder) {
    /**
     * The flag that enables dynamic fetching of new (recently added) fields in the Salesforce objects while running a flow.
     */
    public val enableDynamicFieldUpdate: kotlin.Boolean = builder.enableDynamicFieldUpdate
    /**
     * Indicates whether Amazon AppFlow includes deleted files in the flow run.
     */
    public val includeDeletedRecords: kotlin.Boolean = builder.includeDeletedRecords
    /**
     * The object specified in the Salesforce flow source.
     */
    public val `object`: kotlin.String? = builder.`object`

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

    override fun toString(): kotlin.String = buildString {
        append("SalesforceSourceProperties(")
        append("enableDynamicFieldUpdate=$enableDynamicFieldUpdate,")
        append("includeDeletedRecords=$includeDeletedRecords,")
        append("object=$`object`")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = enableDynamicFieldUpdate.hashCode()
        result = 31 * result + (includeDeletedRecords.hashCode())
        result = 31 * result + (`object`?.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 SalesforceSourceProperties

        if (enableDynamicFieldUpdate != other.enableDynamicFieldUpdate) return false
        if (includeDeletedRecords != other.includeDeletedRecords) return false
        if (`object` != other.`object`) return false

        return true
    }

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

    public class Builder {
        /**
         * The flag that enables dynamic fetching of new (recently added) fields in the Salesforce objects while running a flow.
         */
        public var enableDynamicFieldUpdate: kotlin.Boolean = false
        /**
         * Indicates whether Amazon AppFlow includes deleted files in the flow run.
         */
        public var includeDeletedRecords: kotlin.Boolean = false
        /**
         * The object specified in the Salesforce flow source.
         */
        public var `object`: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.customerprofiles.model.SalesforceSourceProperties) : this() {
            this.enableDynamicFieldUpdate = x.enableDynamicFieldUpdate
            this.includeDeletedRecords = x.includeDeletedRecords
            this.`object` = x.`object`
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.customerprofiles.model.SalesforceSourceProperties = SalesforceSourceProperties(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy