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

commonMain.aws.sdk.kotlin.services.entityresolution.model.GetMatchingWorkflowResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.entityresolution.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

public class GetMatchingWorkflowResponse private constructor(builder: Builder) {
    /**
     * The timestamp of when the workflow was created.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.createdAt) { "A non-null value must be provided for createdAt" }
    /**
     * A description of the workflow.
     */
    public val description: kotlin.String? = builder.description
    /**
     * An object which defines an incremental run type and has only `incrementalRunType` as a field.
     */
    public val incrementalRunConfig: aws.sdk.kotlin.services.entityresolution.model.IncrementalRunConfig? = builder.incrementalRunConfig
    /**
     * A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName`.
     */
    public val inputSourceConfig: List = requireNotNull(builder.inputSourceConfig) { "A non-null value must be provided for inputSourceConfig" }
    /**
     * A list of `OutputSource` objects, each of which contains fields `OutputS3Path`, `ApplyNormalization`, and `Output`.
     */
    public val outputSourceConfig: List = requireNotNull(builder.outputSourceConfig) { "A non-null value must be provided for outputSourceConfig" }
    /**
     * An object which defines the `resolutionType` and the `ruleBasedProperties`.
     */
    public val resolutionTechniques: aws.sdk.kotlin.services.entityresolution.model.ResolutionTechniques? = builder.resolutionTechniques
    /**
     * The Amazon Resource Name (ARN) of the IAM role. Entity Resolution assumes this role to access Amazon Web Services resources on your behalf.
     */
    public val roleArn: kotlin.String = requireNotNull(builder.roleArn) { "A non-null value must be provided for roleArn" }
    /**
     * The tags used to organize, track, or control access for this resource.
     */
    public val tags: Map? = builder.tags
    /**
     * The timestamp of when the workflow was last updated.
     */
    public val updatedAt: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.updatedAt) { "A non-null value must be provided for updatedAt" }
    /**
     * The ARN (Amazon Resource Name) that Entity Resolution generated for the `MatchingWorkflow`.
     */
    public val workflowArn: kotlin.String = requireNotNull(builder.workflowArn) { "A non-null value must be provided for workflowArn" }
    /**
     * The name of the workflow.
     */
    public val workflowName: kotlin.String = requireNotNull(builder.workflowName) { "A non-null value must be provided for workflowName" }

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

    override fun toString(): kotlin.String = buildString {
        append("GetMatchingWorkflowResponse(")
        append("createdAt=$createdAt,")
        append("description=$description,")
        append("incrementalRunConfig=$incrementalRunConfig,")
        append("inputSourceConfig=$inputSourceConfig,")
        append("outputSourceConfig=$outputSourceConfig,")
        append("resolutionTechniques=$resolutionTechniques,")
        append("roleArn=$roleArn,")
        append("tags=$tags,")
        append("updatedAt=$updatedAt,")
        append("workflowArn=$workflowArn,")
        append("workflowName=$workflowName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createdAt.hashCode()
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (incrementalRunConfig?.hashCode() ?: 0)
        result = 31 * result + (inputSourceConfig.hashCode())
        result = 31 * result + (outputSourceConfig.hashCode())
        result = 31 * result + (resolutionTechniques?.hashCode() ?: 0)
        result = 31 * result + (roleArn.hashCode())
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (updatedAt.hashCode())
        result = 31 * result + (workflowArn.hashCode())
        result = 31 * result + (workflowName.hashCode())
        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 GetMatchingWorkflowResponse

        if (createdAt != other.createdAt) return false
        if (description != other.description) return false
        if (incrementalRunConfig != other.incrementalRunConfig) return false
        if (inputSourceConfig != other.inputSourceConfig) return false
        if (outputSourceConfig != other.outputSourceConfig) return false
        if (resolutionTechniques != other.resolutionTechniques) return false
        if (roleArn != other.roleArn) return false
        if (tags != other.tags) return false
        if (updatedAt != other.updatedAt) return false
        if (workflowArn != other.workflowArn) return false
        if (workflowName != other.workflowName) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The timestamp of when the workflow was created.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * A description of the workflow.
         */
        public var description: kotlin.String? = null
        /**
         * An object which defines an incremental run type and has only `incrementalRunType` as a field.
         */
        public var incrementalRunConfig: aws.sdk.kotlin.services.entityresolution.model.IncrementalRunConfig? = null
        /**
         * A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName`.
         */
        public var inputSourceConfig: List? = null
        /**
         * A list of `OutputSource` objects, each of which contains fields `OutputS3Path`, `ApplyNormalization`, and `Output`.
         */
        public var outputSourceConfig: List? = null
        /**
         * An object which defines the `resolutionType` and the `ruleBasedProperties`.
         */
        public var resolutionTechniques: aws.sdk.kotlin.services.entityresolution.model.ResolutionTechniques? = null
        /**
         * The Amazon Resource Name (ARN) of the IAM role. Entity Resolution assumes this role to access Amazon Web Services resources on your behalf.
         */
        public var roleArn: kotlin.String? = null
        /**
         * The tags used to organize, track, or control access for this resource.
         */
        public var tags: Map? = null
        /**
         * The timestamp of when the workflow was last updated.
         */
        public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The ARN (Amazon Resource Name) that Entity Resolution generated for the `MatchingWorkflow`.
         */
        public var workflowArn: kotlin.String? = null
        /**
         * The name of the workflow.
         */
        public var workflowName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.entityresolution.model.GetMatchingWorkflowResponse) : this() {
            this.createdAt = x.createdAt
            this.description = x.description
            this.incrementalRunConfig = x.incrementalRunConfig
            this.inputSourceConfig = x.inputSourceConfig
            this.outputSourceConfig = x.outputSourceConfig
            this.resolutionTechniques = x.resolutionTechniques
            this.roleArn = x.roleArn
            this.tags = x.tags
            this.updatedAt = x.updatedAt
            this.workflowArn = x.workflowArn
            this.workflowName = x.workflowName
        }

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

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

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

        internal fun correctErrors(): Builder {
            if (createdAt == null) createdAt = Instant.fromEpochSeconds(0)
            if (inputSourceConfig == null) inputSourceConfig = emptyList()
            if (outputSourceConfig == null) outputSourceConfig = emptyList()
            if (roleArn == null) roleArn = ""
            if (updatedAt == null) updatedAt = Instant.fromEpochSeconds(0)
            if (workflowArn == null) workflowArn = ""
            if (workflowName == null) workflowName = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy