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

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

The 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 connector-specific credentials required by a connector.
 */
public class ConnectorProfileCredentials private constructor(builder: Builder) {
    /**
     * The connector-specific credentials required when using Amplitude.
     */
    public val amplitude: aws.sdk.kotlin.services.appflow.model.AmplitudeConnectorProfileCredentials? = builder.amplitude
    /**
     * The connector-specific profile credentials that are required when using the custom connector.
     */
    public val customConnector: aws.sdk.kotlin.services.appflow.model.CustomConnectorProfileCredentials? = builder.customConnector
    /**
     * The connector-specific credentials required when using Datadog.
     */
    public val datadog: aws.sdk.kotlin.services.appflow.model.DatadogConnectorProfileCredentials? = builder.datadog
    /**
     * The connector-specific credentials required when using Dynatrace.
     */
    public val dynatrace: aws.sdk.kotlin.services.appflow.model.DynatraceConnectorProfileCredentials? = builder.dynatrace
    /**
     * The connector-specific credentials required when using Google Analytics.
     */
    public val googleAnalytics: aws.sdk.kotlin.services.appflow.model.GoogleAnalyticsConnectorProfileCredentials? = builder.googleAnalytics
    /**
     * The connector-specific credentials required when using Amazon Honeycode.
     */
    public val honeycode: aws.sdk.kotlin.services.appflow.model.HoneycodeConnectorProfileCredentials? = builder.honeycode
    /**
     * The connector-specific credentials required when using Infor Nexus.
     */
    public val inforNexus: aws.sdk.kotlin.services.appflow.model.InforNexusConnectorProfileCredentials? = builder.inforNexus
    /**
     * The connector-specific credentials required when using Marketo.
     */
    public val marketo: aws.sdk.kotlin.services.appflow.model.MarketoConnectorProfileCredentials? = builder.marketo
    /**
     * The connector-specific credentials required when using Salesforce Pardot.
     */
    public val pardot: aws.sdk.kotlin.services.appflow.model.PardotConnectorProfileCredentials? = builder.pardot
    /**
     * The connector-specific credentials required when using Amazon Redshift.
     */
    public val redshift: aws.sdk.kotlin.services.appflow.model.RedshiftConnectorProfileCredentials? = builder.redshift
    /**
     * The connector-specific credentials required when using Salesforce.
     */
    public val salesforce: aws.sdk.kotlin.services.appflow.model.SalesforceConnectorProfileCredentials? = builder.salesforce
    /**
     * The connector-specific profile credentials required when using SAPOData.
     */
    public val sapoData: aws.sdk.kotlin.services.appflow.model.SapoDataConnectorProfileCredentials? = builder.sapoData
    /**
     * The connector-specific credentials required when using ServiceNow.
     */
    public val serviceNow: aws.sdk.kotlin.services.appflow.model.ServiceNowConnectorProfileCredentials? = builder.serviceNow
    /**
     * The connector-specific credentials required when using Singular.
     */
    public val singular: aws.sdk.kotlin.services.appflow.model.SingularConnectorProfileCredentials? = builder.singular
    /**
     * The connector-specific credentials required when using Slack.
     */
    public val slack: aws.sdk.kotlin.services.appflow.model.SlackConnectorProfileCredentials? = builder.slack
    /**
     * The connector-specific credentials required when using Snowflake.
     */
    public val snowflake: aws.sdk.kotlin.services.appflow.model.SnowflakeConnectorProfileCredentials? = builder.snowflake
    /**
     * The connector-specific credentials required when using Trend Micro.
     */
    public val trendmicro: aws.sdk.kotlin.services.appflow.model.TrendmicroConnectorProfileCredentials? = builder.trendmicro
    /**
     * The connector-specific credentials required when using Veeva.
     */
    public val veeva: aws.sdk.kotlin.services.appflow.model.VeevaConnectorProfileCredentials? = builder.veeva
    /**
     * The connector-specific credentials required when using Zendesk.
     */
    public val zendesk: aws.sdk.kotlin.services.appflow.model.ZendeskConnectorProfileCredentials? = builder.zendesk

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

    override fun toString(): kotlin.String = buildString {
        append("ConnectorProfileCredentials(")
        append("amplitude=$amplitude,")
        append("customConnector=$customConnector,")
        append("datadog=$datadog,")
        append("dynatrace=$dynatrace,")
        append("googleAnalytics=$googleAnalytics,")
        append("honeycode=$honeycode,")
        append("inforNexus=$inforNexus,")
        append("marketo=$marketo,")
        append("pardot=$pardot,")
        append("redshift=$redshift,")
        append("salesforce=$salesforce,")
        append("sapoData=$sapoData,")
        append("serviceNow=$serviceNow,")
        append("singular=$singular,")
        append("slack=$slack,")
        append("snowflake=$snowflake,")
        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 + (honeycode?.hashCode() ?: 0)
        result = 31 * result + (inforNexus?.hashCode() ?: 0)
        result = 31 * result + (marketo?.hashCode() ?: 0)
        result = 31 * result + (pardot?.hashCode() ?: 0)
        result = 31 * result + (redshift?.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 + (snowflake?.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 ConnectorProfileCredentials

        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 (honeycode != other.honeycode) return false
        if (inforNexus != other.inforNexus) return false
        if (marketo != other.marketo) return false
        if (pardot != other.pardot) return false
        if (redshift != other.redshift) 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 (snowflake != other.snowflake) 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.ConnectorProfileCredentials = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The connector-specific credentials required when using Amplitude.
         */
        public var amplitude: aws.sdk.kotlin.services.appflow.model.AmplitudeConnectorProfileCredentials? = null
        /**
         * The connector-specific profile credentials that are required when using the custom connector.
         */
        public var customConnector: aws.sdk.kotlin.services.appflow.model.CustomConnectorProfileCredentials? = null
        /**
         * The connector-specific credentials required when using Datadog.
         */
        public var datadog: aws.sdk.kotlin.services.appflow.model.DatadogConnectorProfileCredentials? = null
        /**
         * The connector-specific credentials required when using Dynatrace.
         */
        public var dynatrace: aws.sdk.kotlin.services.appflow.model.DynatraceConnectorProfileCredentials? = null
        /**
         * The connector-specific credentials required when using Google Analytics.
         */
        public var googleAnalytics: aws.sdk.kotlin.services.appflow.model.GoogleAnalyticsConnectorProfileCredentials? = null
        /**
         * The connector-specific credentials required when using Amazon Honeycode.
         */
        public var honeycode: aws.sdk.kotlin.services.appflow.model.HoneycodeConnectorProfileCredentials? = null
        /**
         * The connector-specific credentials required when using Infor Nexus.
         */
        public var inforNexus: aws.sdk.kotlin.services.appflow.model.InforNexusConnectorProfileCredentials? = null
        /**
         * The connector-specific credentials required when using Marketo.
         */
        public var marketo: aws.sdk.kotlin.services.appflow.model.MarketoConnectorProfileCredentials? = null
        /**
         * The connector-specific credentials required when using Salesforce Pardot.
         */
        public var pardot: aws.sdk.kotlin.services.appflow.model.PardotConnectorProfileCredentials? = null
        /**
         * The connector-specific credentials required when using Amazon Redshift.
         */
        public var redshift: aws.sdk.kotlin.services.appflow.model.RedshiftConnectorProfileCredentials? = null
        /**
         * The connector-specific credentials required when using Salesforce.
         */
        public var salesforce: aws.sdk.kotlin.services.appflow.model.SalesforceConnectorProfileCredentials? = null
        /**
         * The connector-specific profile credentials required when using SAPOData.
         */
        public var sapoData: aws.sdk.kotlin.services.appflow.model.SapoDataConnectorProfileCredentials? = null
        /**
         * The connector-specific credentials required when using ServiceNow.
         */
        public var serviceNow: aws.sdk.kotlin.services.appflow.model.ServiceNowConnectorProfileCredentials? = null
        /**
         * The connector-specific credentials required when using Singular.
         */
        public var singular: aws.sdk.kotlin.services.appflow.model.SingularConnectorProfileCredentials? = null
        /**
         * The connector-specific credentials required when using Slack.
         */
        public var slack: aws.sdk.kotlin.services.appflow.model.SlackConnectorProfileCredentials? = null
        /**
         * The connector-specific credentials required when using Snowflake.
         */
        public var snowflake: aws.sdk.kotlin.services.appflow.model.SnowflakeConnectorProfileCredentials? = null
        /**
         * The connector-specific credentials required when using Trend Micro.
         */
        public var trendmicro: aws.sdk.kotlin.services.appflow.model.TrendmicroConnectorProfileCredentials? = null
        /**
         * The connector-specific credentials required when using Veeva.
         */
        public var veeva: aws.sdk.kotlin.services.appflow.model.VeevaConnectorProfileCredentials? = null
        /**
         * The connector-specific credentials required when using Zendesk.
         */
        public var zendesk: aws.sdk.kotlin.services.appflow.model.ZendeskConnectorProfileCredentials? = null

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy