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

commonMain.aws.sdk.kotlin.services.datazone.model.StartDataSourceRunRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.datazone.model

import aws.smithy.kotlin.runtime.SdkDsl

public class StartDataSourceRunRequest private constructor(builder: Builder) {
    /**
     * A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * The identifier of the data source.
     */
    public val dataSourceIdentifier: kotlin.String? = builder.dataSourceIdentifier
    /**
     * The identifier of the Amazon DataZone domain in which to start a data source run.
     */
    public val domainIdentifier: kotlin.String? = builder.domainIdentifier

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

    override fun toString(): kotlin.String = buildString {
        append("StartDataSourceRunRequest(")
        append("clientToken=$clientToken,")
        append("dataSourceIdentifier=$dataSourceIdentifier,")
        append("domainIdentifier=$domainIdentifier")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientToken?.hashCode() ?: 0
        result = 31 * result + (dataSourceIdentifier?.hashCode() ?: 0)
        result = 31 * result + (domainIdentifier?.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 StartDataSourceRunRequest

        if (clientToken != other.clientToken) return false
        if (dataSourceIdentifier != other.dataSourceIdentifier) return false
        if (domainIdentifier != other.domainIdentifier) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
         */
        public var clientToken: kotlin.String? = null
        /**
         * The identifier of the data source.
         */
        public var dataSourceIdentifier: kotlin.String? = null
        /**
         * The identifier of the Amazon DataZone domain in which to start a data source run.
         */
        public var domainIdentifier: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.StartDataSourceRunRequest) : this() {
            this.clientToken = x.clientToken
            this.dataSourceIdentifier = x.dataSourceIdentifier
            this.domainIdentifier = x.domainIdentifier
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy