
commonMain.aws.sdk.kotlin.services.customerprofiles.model.SourceConnectorProperties.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.customerprofiles.model
/**
* Specifies the information that is required to query a particular Amazon AppFlow connector. Customer Profiles supports Salesforce, Zendesk, Marketo, ServiceNow and Amazon S3.
*/
public class SourceConnectorProperties private constructor(builder: Builder) {
/**
* The properties that are applied when Marketo is being used as a source.
*/
public val marketo: aws.sdk.kotlin.services.customerprofiles.model.MarketoSourceProperties? = builder.marketo
/**
* The properties that are applied when Amazon S3 is being used as the flow source.
*/
public val s3: aws.sdk.kotlin.services.customerprofiles.model.S3SourceProperties? = builder.s3
/**
* The properties that are applied when Salesforce is being used as a source.
*/
public val salesforce: aws.sdk.kotlin.services.customerprofiles.model.SalesforceSourceProperties? = builder.salesforce
/**
* The properties that are applied when ServiceNow is being used as a source.
*/
public val serviceNow: aws.sdk.kotlin.services.customerprofiles.model.ServiceNowSourceProperties? = builder.serviceNow
/**
* The properties that are applied when using Zendesk as a flow source.
*/
public val zendesk: aws.sdk.kotlin.services.customerprofiles.model.ZendeskSourceProperties? = builder.zendesk
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.customerprofiles.model.SourceConnectorProperties = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SourceConnectorProperties(")
append("marketo=$marketo,")
append("s3=$s3,")
append("salesforce=$salesforce,")
append("serviceNow=$serviceNow,")
append("zendesk=$zendesk")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = marketo?.hashCode() ?: 0
result = 31 * result + (s3?.hashCode() ?: 0)
result = 31 * result + (salesforce?.hashCode() ?: 0)
result = 31 * result + (serviceNow?.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 (marketo != other.marketo) return false
if (s3 != other.s3) return false
if (salesforce != other.salesforce) return false
if (serviceNow != other.serviceNow) return false
if (zendesk != other.zendesk) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.customerprofiles.model.SourceConnectorProperties = Builder(this).apply(block).build()
public class Builder {
/**
* The properties that are applied when Marketo is being used as a source.
*/
public var marketo: aws.sdk.kotlin.services.customerprofiles.model.MarketoSourceProperties? = null
/**
* The properties that are applied when Amazon S3 is being used as the flow source.
*/
public var s3: aws.sdk.kotlin.services.customerprofiles.model.S3SourceProperties? = null
/**
* The properties that are applied when Salesforce is being used as a source.
*/
public var salesforce: aws.sdk.kotlin.services.customerprofiles.model.SalesforceSourceProperties? = null
/**
* The properties that are applied when ServiceNow is being used as a source.
*/
public var serviceNow: aws.sdk.kotlin.services.customerprofiles.model.ServiceNowSourceProperties? = null
/**
* The properties that are applied when using Zendesk as a flow source.
*/
public var zendesk: aws.sdk.kotlin.services.customerprofiles.model.ZendeskSourceProperties? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.customerprofiles.model.SourceConnectorProperties) : this() {
this.marketo = x.marketo
this.s3 = x.s3
this.salesforce = x.salesforce
this.serviceNow = x.serviceNow
this.zendesk = x.zendesk
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.customerprofiles.model.SourceConnectorProperties = SourceConnectorProperties(this)
/**
* construct an [aws.sdk.kotlin.services.customerprofiles.model.MarketoSourceProperties] inside the given [block]
*/
public fun marketo(block: aws.sdk.kotlin.services.customerprofiles.model.MarketoSourceProperties.Builder.() -> kotlin.Unit) {
this.marketo = aws.sdk.kotlin.services.customerprofiles.model.MarketoSourceProperties.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.customerprofiles.model.S3SourceProperties] inside the given [block]
*/
public fun s3(block: aws.sdk.kotlin.services.customerprofiles.model.S3SourceProperties.Builder.() -> kotlin.Unit) {
this.s3 = aws.sdk.kotlin.services.customerprofiles.model.S3SourceProperties.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.customerprofiles.model.SalesforceSourceProperties] inside the given [block]
*/
public fun salesforce(block: aws.sdk.kotlin.services.customerprofiles.model.SalesforceSourceProperties.Builder.() -> kotlin.Unit) {
this.salesforce = aws.sdk.kotlin.services.customerprofiles.model.SalesforceSourceProperties.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.customerprofiles.model.ServiceNowSourceProperties] inside the given [block]
*/
public fun serviceNow(block: aws.sdk.kotlin.services.customerprofiles.model.ServiceNowSourceProperties.Builder.() -> kotlin.Unit) {
this.serviceNow = aws.sdk.kotlin.services.customerprofiles.model.ServiceNowSourceProperties.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.customerprofiles.model.ZendeskSourceProperties] inside the given [block]
*/
public fun zendesk(block: aws.sdk.kotlin.services.customerprofiles.model.ZendeskSourceProperties.Builder.() -> kotlin.Unit) {
this.zendesk = aws.sdk.kotlin.services.customerprofiles.model.ZendeskSourceProperties.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy