commonMain.aws.sdk.kotlin.services.glue.model.StartWorkflowRunRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
public class StartWorkflowRunRequest private constructor(builder: Builder) {
/**
* The name of the workflow to start.
*/
public val name: kotlin.String? = builder.name
/**
* The workflow run properties for the new workflow run.
*/
public val runProperties: Map? = builder.runProperties
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.StartWorkflowRunRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartWorkflowRunRequest(")
append("name=$name,")
append("runProperties=$runProperties")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = name?.hashCode() ?: 0
result = 31 * result + (runProperties?.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 StartWorkflowRunRequest
if (name != other.name) return false
if (runProperties != other.runProperties) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.StartWorkflowRunRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the workflow to start.
*/
public var name: kotlin.String? = null
/**
* The workflow run properties for the new workflow run.
*/
public var runProperties: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.StartWorkflowRunRequest) : this() {
this.name = x.name
this.runProperties = x.runProperties
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.StartWorkflowRunRequest = StartWorkflowRunRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}