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

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

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

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



/**
 * Structure to hold workflow attributes.
 */
public class WorkflowAttributes private constructor(builder: Builder) {
    /**
     * Workflow attributes specific to `APPFLOW_INTEGRATION` workflow.
     */
    public val appflowIntegration: aws.sdk.kotlin.services.customerprofiles.model.AppflowIntegrationWorkflowAttributes? = builder.appflowIntegration

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

    override fun toString(): kotlin.String = buildString {
        append("WorkflowAttributes(")
        append("appflowIntegration=$appflowIntegration")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = appflowIntegration?.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 WorkflowAttributes

        if (appflowIntegration != other.appflowIntegration) return false

        return true
    }

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

    public class Builder {
        /**
         * Workflow attributes specific to `APPFLOW_INTEGRATION` workflow.
         */
        public var appflowIntegration: aws.sdk.kotlin.services.customerprofiles.model.AppflowIntegrationWorkflowAttributes? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.customerprofiles.model.WorkflowAttributes) : this() {
            this.appflowIntegration = x.appflowIntegration
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy