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

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

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

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



public class PutIntegrationRequest private constructor(builder: Builder) {
    /**
     * The unique name of the domain.
     */
    public val domainName: kotlin.String? = requireNotNull(builder.domainName) { "A non-null value must be provided for domainName" }
    /**
     * The configuration that controls how Customer Profiles retrieves data from the source.
     */
    public val flowDefinition: aws.sdk.kotlin.services.customerprofiles.model.FlowDefinition? = builder.flowDefinition
    /**
     * The name of the profile object type.
     */
    public val objectTypeName: kotlin.String? = builder.objectTypeName
    /**
     * A map in which each key is an event type from an external application such as Segment or Shopify, and each value is an `ObjectTypeName` (template) used to ingest the event. It supports the following event types: `SegmentIdentify`, `ShopifyCreateCustomers`, `ShopifyUpdateCustomers`, `ShopifyCreateDraftOrders`, `ShopifyUpdateDraftOrders`, `ShopifyCreateOrders`, and `ShopifyUpdatedOrders`.
     */
    public val objectTypeNames: Map? = builder.objectTypeNames
    /**
     * The tags used to organize, track, or control access for this resource.
     */
    public val tags: Map? = builder.tags
    /**
     * The URI of the S3 bucket or any other type of data source.
     */
    public val uri: kotlin.String? = builder.uri

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

    override fun toString(): kotlin.String = buildString {
        append("PutIntegrationRequest(")
        append("domainName=$domainName,")
        append("flowDefinition=$flowDefinition,")
        append("objectTypeName=$objectTypeName,")
        append("objectTypeNames=$objectTypeNames,")
        append("tags=$tags,")
        append("uri=$uri")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = domainName?.hashCode() ?: 0
        result = 31 * result + (flowDefinition?.hashCode() ?: 0)
        result = 31 * result + (objectTypeName?.hashCode() ?: 0)
        result = 31 * result + (objectTypeNames?.hashCode() ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (uri?.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 PutIntegrationRequest

        if (domainName != other.domainName) return false
        if (flowDefinition != other.flowDefinition) return false
        if (objectTypeName != other.objectTypeName) return false
        if (objectTypeNames != other.objectTypeNames) return false
        if (tags != other.tags) return false
        if (uri != other.uri) return false

        return true
    }

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

    public class Builder {
        /**
         * The unique name of the domain.
         */
        public var domainName: kotlin.String? = null
        /**
         * The configuration that controls how Customer Profiles retrieves data from the source.
         */
        public var flowDefinition: aws.sdk.kotlin.services.customerprofiles.model.FlowDefinition? = null
        /**
         * The name of the profile object type.
         */
        public var objectTypeName: kotlin.String? = null
        /**
         * A map in which each key is an event type from an external application such as Segment or Shopify, and each value is an `ObjectTypeName` (template) used to ingest the event. It supports the following event types: `SegmentIdentify`, `ShopifyCreateCustomers`, `ShopifyUpdateCustomers`, `ShopifyCreateDraftOrders`, `ShopifyUpdateDraftOrders`, `ShopifyCreateOrders`, and `ShopifyUpdatedOrders`.
         */
        public var objectTypeNames: Map? = null
        /**
         * The tags used to organize, track, or control access for this resource.
         */
        public var tags: Map? = null
        /**
         * The URI of the S3 bucket or any other type of data source.
         */
        public var uri: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.customerprofiles.model.PutIntegrationRequest) : this() {
            this.domainName = x.domainName
            this.flowDefinition = x.flowDefinition
            this.objectTypeName = x.objectTypeName
            this.objectTypeNames = x.objectTypeNames
            this.tags = x.tags
            this.uri = x.uri
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy