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

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

/**
 * Specifies the information that is required to query a particular connector.
 */
public class SourceConnectorProperties private constructor(builder: Builder) {
    /**
     * Specifies the information that is required for querying Amplitude.
     */
    public val amplitude: aws.sdk.kotlin.services.appflow.model.AmplitudeSourceProperties? = builder.amplitude
    /**
     * The properties that are applied when the custom connector is being used as a source.
     */
    public val customConnector: aws.sdk.kotlin.services.appflow.model.CustomConnectorSourceProperties? = builder.customConnector
    /**
     * Specifies the information that is required for querying Datadog.
     */
    public val datadog: aws.sdk.kotlin.services.appflow.model.DatadogSourceProperties? = builder.datadog
    /**
     * Specifies the information that is required for querying Dynatrace.
     */
    public val dynatrace: aws.sdk.kotlin.services.appflow.model.DynatraceSourceProperties? = builder.dynatrace
    /**
     * Specifies the information that is required for querying Google Analytics.
     */
    public val googleAnalytics: aws.sdk.kotlin.services.appflow.model.GoogleAnalyticsSourceProperties? = builder.googleAnalytics
    /**
     * Specifies the information that is required for querying Infor Nexus.
     */
    public val inforNexus: aws.sdk.kotlin.services.appflow.model.InforNexusSourceProperties? = builder.inforNexus
    /**
     * Specifies the information that is required for querying Marketo.
     */
    public val marketo: aws.sdk.kotlin.services.appflow.model.MarketoSourceProperties? = builder.marketo
    /**
     * Specifies the information that is required for querying Salesforce Pardot.
     */
    public val pardot: aws.sdk.kotlin.services.appflow.model.PardotSourceProperties? = builder.pardot
    /**
     * Specifies the information that is required for querying Amazon S3.
     */
    public val s3: aws.sdk.kotlin.services.appflow.model.S3SourceProperties? = builder.s3
    /**
     * Specifies the information that is required for querying Salesforce.
     */
    public val salesforce: aws.sdk.kotlin.services.appflow.model.SalesforceSourceProperties? = builder.salesforce
    /**
     * The properties that are applied when using SAPOData as a flow source.
     */
    public val sapoData: aws.sdk.kotlin.services.appflow.model.SapoDataSourceProperties? = builder.sapoData
    /**
     * Specifies the information that is required for querying ServiceNow.
     */
    public val serviceNow: aws.sdk.kotlin.services.appflow.model.ServiceNowSourceProperties? = builder.serviceNow
    /**
     * Specifies the information that is required for querying Singular.
     */
    public val singular: aws.sdk.kotlin.services.appflow.model.SingularSourceProperties? = builder.singular
    /**
     * Specifies the information that is required for querying Slack.
     */
    public val slack: aws.sdk.kotlin.services.appflow.model.SlackSourceProperties? = builder.slack
    /**
     * Specifies the information that is required for querying Trend Micro.
     */
    public val trendmicro: aws.sdk.kotlin.services.appflow.model.TrendmicroSourceProperties? = builder.trendmicro
    /**
     * Specifies the information that is required for querying Veeva.
     */
    public val veeva: aws.sdk.kotlin.services.appflow.model.VeevaSourceProperties? = builder.veeva
    /**
     * Specifies the information that is required for querying Zendesk.
     */
    public val zendesk: aws.sdk.kotlin.services.appflow.model.ZendeskSourceProperties? = builder.zendesk

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

    override fun toString(): kotlin.String = buildString {
        append("SourceConnectorProperties(")
        append("amplitude=$amplitude,")
        append("customConnector=$customConnector,")
        append("datadog=$datadog,")
        append("dynatrace=$dynatrace,")
        append("googleAnalytics=$googleAnalytics,")
        append("inforNexus=$inforNexus,")
        append("marketo=$marketo,")
        append("pardot=$pardot,")
        append("s3=$s3,")
        append("salesforce=$salesforce,")
        append("sapoData=$sapoData,")
        append("serviceNow=$serviceNow,")
        append("singular=$singular,")
        append("slack=$slack,")
        append("trendmicro=$trendmicro,")
        append("veeva=$veeva,")
        append("zendesk=$zendesk")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = amplitude?.hashCode() ?: 0
        result = 31 * result + (customConnector?.hashCode() ?: 0)
        result = 31 * result + (datadog?.hashCode() ?: 0)
        result = 31 * result + (dynatrace?.hashCode() ?: 0)
        result = 31 * result + (googleAnalytics?.hashCode() ?: 0)
        result = 31 * result + (inforNexus?.hashCode() ?: 0)
        result = 31 * result + (marketo?.hashCode() ?: 0)
        result = 31 * result + (pardot?.hashCode() ?: 0)
        result = 31 * result + (s3?.hashCode() ?: 0)
        result = 31 * result + (salesforce?.hashCode() ?: 0)
        result = 31 * result + (sapoData?.hashCode() ?: 0)
        result = 31 * result + (serviceNow?.hashCode() ?: 0)
        result = 31 * result + (singular?.hashCode() ?: 0)
        result = 31 * result + (slack?.hashCode() ?: 0)
        result = 31 * result + (trendmicro?.hashCode() ?: 0)
        result = 31 * result + (veeva?.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 SourceConnectorProperties

        if (amplitude != other.amplitude) return false
        if (customConnector != other.customConnector) return false
        if (datadog != other.datadog) return false
        if (dynatrace != other.dynatrace) return false
        if (googleAnalytics != other.googleAnalytics) return false
        if (inforNexus != other.inforNexus) return false
        if (marketo != other.marketo) return false
        if (pardot != other.pardot) return false
        if (s3 != other.s3) return false
        if (salesforce != other.salesforce) return false
        if (sapoData != other.sapoData) return false
        if (serviceNow != other.serviceNow) return false
        if (singular != other.singular) return false
        if (slack != other.slack) return false
        if (trendmicro != other.trendmicro) return false
        if (veeva != other.veeva) return false
        if (zendesk != other.zendesk) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Specifies the information that is required for querying Amplitude.
         */
        public var amplitude: aws.sdk.kotlin.services.appflow.model.AmplitudeSourceProperties? = null
        /**
         * The properties that are applied when the custom connector is being used as a source.
         */
        public var customConnector: aws.sdk.kotlin.services.appflow.model.CustomConnectorSourceProperties? = null
        /**
         * Specifies the information that is required for querying Datadog.
         */
        public var datadog: aws.sdk.kotlin.services.appflow.model.DatadogSourceProperties? = null
        /**
         * Specifies the information that is required for querying Dynatrace.
         */
        public var dynatrace: aws.sdk.kotlin.services.appflow.model.DynatraceSourceProperties? = null
        /**
         * Specifies the information that is required for querying Google Analytics.
         */
        public var googleAnalytics: aws.sdk.kotlin.services.appflow.model.GoogleAnalyticsSourceProperties? = null
        /**
         * Specifies the information that is required for querying Infor Nexus.
         */
        public var inforNexus: aws.sdk.kotlin.services.appflow.model.InforNexusSourceProperties? = null
        /**
         * Specifies the information that is required for querying Marketo.
         */
        public var marketo: aws.sdk.kotlin.services.appflow.model.MarketoSourceProperties? = null
        /**
         * Specifies the information that is required for querying Salesforce Pardot.
         */
        public var pardot: aws.sdk.kotlin.services.appflow.model.PardotSourceProperties? = null
        /**
         * Specifies the information that is required for querying Amazon S3.
         */
        public var s3: aws.sdk.kotlin.services.appflow.model.S3SourceProperties? = null
        /**
         * Specifies the information that is required for querying Salesforce.
         */
        public var salesforce: aws.sdk.kotlin.services.appflow.model.SalesforceSourceProperties? = null
        /**
         * The properties that are applied when using SAPOData as a flow source.
         */
        public var sapoData: aws.sdk.kotlin.services.appflow.model.SapoDataSourceProperties? = null
        /**
         * Specifies the information that is required for querying ServiceNow.
         */
        public var serviceNow: aws.sdk.kotlin.services.appflow.model.ServiceNowSourceProperties? = null
        /**
         * Specifies the information that is required for querying Singular.
         */
        public var singular: aws.sdk.kotlin.services.appflow.model.SingularSourceProperties? = null
        /**
         * Specifies the information that is required for querying Slack.
         */
        public var slack: aws.sdk.kotlin.services.appflow.model.SlackSourceProperties? = null
        /**
         * Specifies the information that is required for querying Trend Micro.
         */
        public var trendmicro: aws.sdk.kotlin.services.appflow.model.TrendmicroSourceProperties? = null
        /**
         * Specifies the information that is required for querying Veeva.
         */
        public var veeva: aws.sdk.kotlin.services.appflow.model.VeevaSourceProperties? = null
        /**
         * Specifies the information that is required for querying Zendesk.
         */
        public var zendesk: aws.sdk.kotlin.services.appflow.model.ZendeskSourceProperties? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.appflow.model.SourceConnectorProperties) : this() {
            this.amplitude = x.amplitude
            this.customConnector = x.customConnector
            this.datadog = x.datadog
            this.dynatrace = x.dynatrace
            this.googleAnalytics = x.googleAnalytics
            this.inforNexus = x.inforNexus
            this.marketo = x.marketo
            this.pardot = x.pardot
            this.s3 = x.s3
            this.salesforce = x.salesforce
            this.sapoData = x.sapoData
            this.serviceNow = x.serviceNow
            this.singular = x.singular
            this.slack = x.slack
            this.trendmicro = x.trendmicro
            this.veeva = x.veeva
            this.zendesk = x.zendesk
        }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy