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

commonMain.aws.sdk.kotlin.services.appflow.model.DestinationConnectorProperties.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

/**
 * This stores the information that is required to query a particular connector.
 */
public class DestinationConnectorProperties private constructor(builder: Builder) {
    /**
     * The properties that are required to query the custom Connector.
     */
    public val customConnector: aws.sdk.kotlin.services.appflow.model.CustomConnectorDestinationProperties? = builder.customConnector
    /**
     * The properties required to query Amazon Connect Customer Profiles.
     */
    public val customerProfiles: aws.sdk.kotlin.services.appflow.model.CustomerProfilesDestinationProperties? = builder.customerProfiles
    /**
     * The properties required to query Amazon EventBridge.
     */
    public val eventBridge: aws.sdk.kotlin.services.appflow.model.EventBridgeDestinationProperties? = builder.eventBridge
    /**
     * The properties required to query Amazon Honeycode.
     */
    public val honeycode: aws.sdk.kotlin.services.appflow.model.HoneycodeDestinationProperties? = builder.honeycode
    /**
     * The properties required to query Amazon Lookout for Metrics.
     */
    public val lookoutMetrics: aws.sdk.kotlin.services.appflow.model.LookoutMetricsDestinationProperties? = builder.lookoutMetrics
    /**
     * The properties required to query Marketo.
     */
    public val marketo: aws.sdk.kotlin.services.appflow.model.MarketoDestinationProperties? = builder.marketo
    /**
     * The properties required to query Amazon Redshift.
     */
    public val redshift: aws.sdk.kotlin.services.appflow.model.RedshiftDestinationProperties? = builder.redshift
    /**
     * The properties required to query Amazon S3.
     */
    public val s3: aws.sdk.kotlin.services.appflow.model.S3DestinationProperties? = builder.s3
    /**
     * The properties required to query Salesforce.
     */
    public val salesforce: aws.sdk.kotlin.services.appflow.model.SalesforceDestinationProperties? = builder.salesforce
    /**
     * The properties required to query SAPOData.
     */
    public val sapoData: aws.sdk.kotlin.services.appflow.model.SapoDataDestinationProperties? = builder.sapoData
    /**
     * The properties required to query Snowflake.
     */
    public val snowflake: aws.sdk.kotlin.services.appflow.model.SnowflakeDestinationProperties? = builder.snowflake
    /**
     * The properties required to query Upsolver.
     */
    public val upsolver: aws.sdk.kotlin.services.appflow.model.UpsolverDestinationProperties? = builder.upsolver
    /**
     * The properties required to query Zendesk.
     */
    public val zendesk: aws.sdk.kotlin.services.appflow.model.ZendeskDestinationProperties? = builder.zendesk

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

    override fun toString(): kotlin.String = buildString {
        append("DestinationConnectorProperties(")
        append("customConnector=$customConnector,")
        append("customerProfiles=$customerProfiles,")
        append("eventBridge=$eventBridge,")
        append("honeycode=$honeycode,")
        append("lookoutMetrics=$lookoutMetrics,")
        append("marketo=$marketo,")
        append("redshift=$redshift,")
        append("s3=$s3,")
        append("salesforce=$salesforce,")
        append("sapoData=$sapoData,")
        append("snowflake=$snowflake,")
        append("upsolver=$upsolver,")
        append("zendesk=$zendesk")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = customConnector?.hashCode() ?: 0
        result = 31 * result + (customerProfiles?.hashCode() ?: 0)
        result = 31 * result + (eventBridge?.hashCode() ?: 0)
        result = 31 * result + (honeycode?.hashCode() ?: 0)
        result = 31 * result + (lookoutMetrics?.hashCode() ?: 0)
        result = 31 * result + (marketo?.hashCode() ?: 0)
        result = 31 * result + (redshift?.hashCode() ?: 0)
        result = 31 * result + (s3?.hashCode() ?: 0)
        result = 31 * result + (salesforce?.hashCode() ?: 0)
        result = 31 * result + (sapoData?.hashCode() ?: 0)
        result = 31 * result + (snowflake?.hashCode() ?: 0)
        result = 31 * result + (upsolver?.hashCode() ?: 0)
        result = 31 * result + (zendesk?.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 DestinationConnectorProperties

        if (customConnector != other.customConnector) return false
        if (customerProfiles != other.customerProfiles) return false
        if (eventBridge != other.eventBridge) return false
        if (honeycode != other.honeycode) return false
        if (lookoutMetrics != other.lookoutMetrics) return false
        if (marketo != other.marketo) return false
        if (redshift != other.redshift) return false
        if (s3 != other.s3) return false
        if (salesforce != other.salesforce) return false
        if (sapoData != other.sapoData) return false
        if (snowflake != other.snowflake) return false
        if (upsolver != other.upsolver) return false
        if (zendesk != other.zendesk) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The properties that are required to query the custom Connector.
         */
        public var customConnector: aws.sdk.kotlin.services.appflow.model.CustomConnectorDestinationProperties? = null
        /**
         * The properties required to query Amazon Connect Customer Profiles.
         */
        public var customerProfiles: aws.sdk.kotlin.services.appflow.model.CustomerProfilesDestinationProperties? = null
        /**
         * The properties required to query Amazon EventBridge.
         */
        public var eventBridge: aws.sdk.kotlin.services.appflow.model.EventBridgeDestinationProperties? = null
        /**
         * The properties required to query Amazon Honeycode.
         */
        public var honeycode: aws.sdk.kotlin.services.appflow.model.HoneycodeDestinationProperties? = null
        /**
         * The properties required to query Amazon Lookout for Metrics.
         */
        public var lookoutMetrics: aws.sdk.kotlin.services.appflow.model.LookoutMetricsDestinationProperties? = null
        /**
         * The properties required to query Marketo.
         */
        public var marketo: aws.sdk.kotlin.services.appflow.model.MarketoDestinationProperties? = null
        /**
         * The properties required to query Amazon Redshift.
         */
        public var redshift: aws.sdk.kotlin.services.appflow.model.RedshiftDestinationProperties? = null
        /**
         * The properties required to query Amazon S3.
         */
        public var s3: aws.sdk.kotlin.services.appflow.model.S3DestinationProperties? = null
        /**
         * The properties required to query Salesforce.
         */
        public var salesforce: aws.sdk.kotlin.services.appflow.model.SalesforceDestinationProperties? = null
        /**
         * The properties required to query SAPOData.
         */
        public var sapoData: aws.sdk.kotlin.services.appflow.model.SapoDataDestinationProperties? = null
        /**
         * The properties required to query Snowflake.
         */
        public var snowflake: aws.sdk.kotlin.services.appflow.model.SnowflakeDestinationProperties? = null
        /**
         * The properties required to query Upsolver.
         */
        public var upsolver: aws.sdk.kotlin.services.appflow.model.UpsolverDestinationProperties? = null
        /**
         * The properties required to query Zendesk.
         */
        public var zendesk: aws.sdk.kotlin.services.appflow.model.ZendeskDestinationProperties? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.appflow.model.DestinationConnectorProperties) : this() {
            this.customConnector = x.customConnector
            this.customerProfiles = x.customerProfiles
            this.eventBridge = x.eventBridge
            this.honeycode = x.honeycode
            this.lookoutMetrics = x.lookoutMetrics
            this.marketo = x.marketo
            this.redshift = x.redshift
            this.s3 = x.s3
            this.salesforce = x.salesforce
            this.sapoData = x.sapoData
            this.snowflake = x.snowflake
            this.upsolver = x.upsolver
            this.zendesk = x.zendesk
        }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy